/* Automatic Testimonials Lite — front-end styles
   Feel free to override any of this in Divi's Theme Options > Custom CSS,
   or in a page's Divi "Custom CSS" box, to match your site's branding. */

/* ---------- Submission form ---------- */
.adt-form {
	max-width: 600px;
	margin: 0 auto;
}

.adt-field {
	margin-bottom: 1.2em;
}

.adt-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4em;
}

.adt-req {
	color: #c0392b;
}

.adt-field input[type="text"],
.adt-field input[type="email"],
.adt-field input[type="file"],
.adt-field textarea {
	width: 100%;
	padding: 0.6em 0.8em;
	border: 1px solid #d5d5d5;
	border-radius: 4px;
	font-size: 1em;
	box-sizing: border-box;
}

.adt-field textarea {
	resize: vertical;
}

.adt-button {
	background: #2ea3f2;
	color: #fff;
	border: none;
	padding: 0.75em 1.75em;
	border-radius: 4px;
	font-size: 1em;
	cursor: pointer;
}

.adt-button:hover {
	background: #1c8fd9;
}

.adt-notice {
	padding: 0.9em 1.2em;
	border-radius: 4px;
	margin-bottom: 1.2em;
	font-weight: 600;
}

.adt-notice-success {
	background: #e5f7ec;
	color: #1f7a45;
	border: 1px solid #b8e6cc;
}

.adt-notice-error {
	background: #fdecea;
	color: #a33028;
	border: 1px solid #f4c2bd;
}

/* Honeypot field: hidden from real visitors, left visible to bots that ignore CSS */
.adt-hp-field {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	overflow: hidden;
}

/* Star rating input, rendered right-to-left so CSS-only hover fill works */
.adt-star-rating {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	font-size: 1.6em;
}

.adt-star-rating input[type="radio"] {
	display: none;
}

.adt-star-rating label {
	color: #ccc;
	cursor: pointer;
	padding: 0 0.05em;
	font-weight: normal;
	margin: 0;
	display: inline;
}

.adt-star-rating input[type="radio"]:checked ~ label,
.adt-star-rating label:hover,
.adt-star-rating label:hover ~ label {
	color: #f5a623;
}

/* ---------- Display grid ---------- */
.adt-grid {
	display: grid;
	gap: 1.5em;
	grid-template-columns: repeat(1, 1fr);
	margin: 1.5em 0;
}

@media (min-width: 600px) {
	.adt-columns-2 { grid-template-columns: repeat(2, 1fr); }
	.adt-columns-3 { grid-template-columns: repeat(2, 1fr); }
	.adt-columns-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.adt-columns-3 { grid-template-columns: repeat(3, 1fr); }
	.adt-columns-4 { grid-template-columns: repeat(4, 1fr); }
}

.adt-card {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 8px;
	padding: 1.75em;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	display: flex;
	flex-direction: column;
}

.adt-quote-icon {
	font-size: 2.5em;
	line-height: 1;
	color: #2ea3f2;
	opacity: 0.35;
	font-family: Georgia, serif;
}

.adt-rating {
	color: #f5a623;
	letter-spacing: 0.1em;
	margin-bottom: 0.5em;
}

.adt-message {
	flex-grow: 1;
	font-style: italic;
	color: #444;
	margin-bottom: 1.2em;
}

.adt-message p:last-child {
	margin-bottom: 0;
}

.adt-author {
	display: flex;
	align-items: center;
	gap: 0.8em;
	margin-top: auto;
}

.adt-avatar img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.adt-author-info {
	display: flex;
	flex-direction: column;
}

.adt-name {
	font-weight: 700;
}

.adt-company {
	font-size: 0.9em;
	color: #777;
}

.adt-empty {
	text-align: center;
	color: #777;
}

.adt-field .g-recaptcha {
	margin-top: 0.3em;
}

/* ---------- "OK" confirmation popup ---------- */
.adt-modal[hidden] {
	display: none;
}

.adt-modal {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 1em;
}

.adt-modal-content {
	background: #fff;
	border-radius: 10px;
	padding: 2em;
	max-width: 380px;
	width: 100%;
	text-align: center;
	box-shadow: 0 12px 40px rgba( 0, 0, 0, 0.25 );
	animation: adt-modal-pop 0.15s ease-out;
}

@keyframes adt-modal-pop {
	from { transform: scale( 0.92 ); opacity: 0; }
	to   { transform: scale( 1 ); opacity: 1; }
}

#adt-modal-message {
	font-size: 1.1em;
	line-height: 1.5;
	margin: 0 0 1.5em;
	color: #333;
}

.adt-modal-success #adt-modal-message {
	color: #1f7a45;
}

.adt-modal-error #adt-modal-message {
	color: #a33028;
}

.adt-modal .adt-button {
	min-width: 100px;
}

body.adt-modal-open {
	overflow: hidden;
}
