/* =========================================================
   Landing (views/landing.php): Contact Form 7 inside the layout's .form
   ========================================================= */

.quote .wpcf7 { min-width: 0; }
.wpcf7-form-control-wrap { display: block; width: 100%; }

/* field states (CF7 validation instead of the static .field__error) */
.field .wpcf7-not-valid { border-color: var(--danger); }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 12.5px; color: var(--danger); }

/* promo checkbox */
.check .wpcf7-list-item { display: block; margin: 0; }
.check .wpcf7-list-item label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }

/* submit is an <input> */
.form input.form__submit { width: 100%; font-family: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
.form .wpcf7-spinner { display: block; margin: 10px auto 0; }

/* CF7 response = .form__status */
.form .wpcf7-response-output { margin: 10px 0 0; padding: 0; border: 0; text-align: center; font-size: 14px; color: var(--danger); }
.form.sent .wpcf7-response-output { display: none; }

/* =========================================================
   Reviews: Site Reviews entries + "Leave a review" popup
   ========================================================= */
.review__text strong { display: inline-block; margin-bottom: 4px; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); }

.review-modal { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--ivory); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); overflow: auto; }
.review-modal::backdrop { background: rgba(35, 30, 26, .6); backdrop-filter: blur(3px); }
.review-modal[open] { animation: rs-modal-in .3s var(--ease); }
@keyframes rs-modal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.review-modal__box { position: relative; padding: 34px 22px 26px; }
@media (min-width: 600px) { .review-modal__box { padding: 40px; } }
.review-modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; }
.review-modal__close:hover { color: var(--ink); border-color: var(--gold); }
.review-modal__title { font-family: var(--serif); font-size: 32px; margin: 0 40px 8px 0; }
.review-modal__text { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
body.review-modal-open { overflow: hidden; }

/* Site Reviews form in the layout's .field look */
.review-modal .glsr { --glsr-text-base: 15px; --glsr-text-sm: 13px; --glsr-gap-md: 16px; --glsr-input-b: var(--line); --glsr-input-radius: var(--radius-sm); --glsr-star-size: 26px; font-family: var(--sans); }
.review-modal .glsr-field { margin-bottom: 16px; }
.review-modal .glsr-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.review-modal .glsr-input, .review-modal .glsr-textarea, .review-modal .glsr-select {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; box-shadow: none;
}
.review-modal .glsr-input:focus, .review-modal .glsr-textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184, 137, 59, .14); }
.review-modal .glsr-field-error, .review-modal .glsr-form-message.glsr-form-failed { color: var(--danger); font-size: 12.5px; }
.review-modal .glsr-field-toggle label { font-size: 13.5px; color: var(--muted); }
.review-modal .glsr-toggle { --glsr-toggle-bg-1: var(--gold-dark); }
.review-modal .glsr-button {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 14px 32px;
  border: 1.5px solid transparent; border-radius: 999px; background: var(--gold-dark); color: #fff;
  font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(138, 99, 36, .7);
}
.review-modal .glsr-button:hover { background: #745218; }
.review-modal .glsr-form-message { margin-top: 14px; font-size: 14px; }
.review-modal .glsr-form-message.glsr-form-success { color: var(--gold-dark); font-weight: 600; }

/* Reviews slider (scroll-snap; swipe on touch, drag with the mouse; 1 / 2 / 3 cards per view) */
.reviews__slider { position: relative; }
.reviews__slider .reviews__grid {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 4px; overscroll-behavior-x: contain;
  cursor: grab; touch-action: pan-x pan-y;
}
.reviews__slider .reviews__grid::-webkit-scrollbar { display: none; }
.reviews__slider .reviews__grid:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.reviews__slider .reviews__grid.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.reviews__slider .review { flex: 0 0 100%; scroll-snap-align: start; }
@media (min-width: 640px) { .reviews__slider .review { flex-basis: calc((100% - 18px) / 2); } }
@media (min-width: 1024px) { .reviews__slider .review { flex-basis: calc((100% - 36px) / 3); } }
.reviews__dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.reviews__dots[hidden] { display: none; }
.reviews__dot { width: 9px; height: 9px; padding: 0; border-radius: 999px; border: 0; background: var(--line); transition: width .3s var(--ease), background-color .3s; }
.reviews__dot.is-active { width: 26px; background: var(--gold-dark); }

/* buttons under the reviews, full width */
.reviews__actions { display: grid; gap: 12px; margin-top: 32px; }

/* How it works: the progress line always under the icons, no lag behind the scroll */
.timeline::before, .timeline::after { z-index: 0; }
.timeline__item, .timeline__end { z-index: 1; }
.timeline::after { transition: none; will-change: transform; }
