/* ── TESTIMONIALS SECTION ───────────────────────────────────── */

#testimonials {
  font-family: 'Manrope', sans-serif;
  background-color: var(--color-background);
  padding: 3.75rem 0;
  --bg: var(--color-background);
}

#testimonials * {
  box-sizing: border-box;
}

/* ── Section wrapper — matches .container across the site ── */
#testimonials .t-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Section header label ── */
#testimonials .t-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: capitalize;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--blue-600);
  margin-bottom: 0.75rem;
}
#testimonials .t-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--blue-600);
}

#testimonials .t-label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Section heading ── */
#testimonials .t-heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: #14487f;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  #testimonials .t-heading {
    font-size: 34px;
  }
}

/* ── Section subheading ── */
#testimonials .t-subheading {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  max-width: 36rem;
  margin-bottom: 0;
}

/* ── Layout grid ── */
#layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

#layout-grid > div {
  min-width: 0;
}

@media (min-width: 1024px) {
  #layout-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 48fr 52fr;
  }

  #consultation-banner-wrapper {
    grid-column: 1 / 8;
    grid-row: 1;
    align-self: center;
  }

  #testimonials-section-wrapper {
    grid-column: 1 / 9;
    grid-row: 2;
    position: relative;
    z-index: 10;
    align-self: center;
  }

  #right-column-container {
    grid-column: 8 / 13;
    grid-row: 1 / 3;
    position: relative;
    z-index: 0;
  }
}

/* ── CARD BASE ── */
#testimonials .card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid #e8edf3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: visible;
  transition: box-shadow 0.3s;
}

#testimonials .card:hover {
  box-shadow: 0 10px 30px rgba(1, 72, 131, 0.1);
}

/* ── CAROUSEL ── */
.t-carousel {
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.t-carousel:active {
  cursor: grabbing;
}

/* Track — flex row of slides */
#testimonials-sub-grid {
  display: flex;
  gap: 1.25rem;
  will-change: transform;
}

/* Each slide: 1 visible on mobile, 2 on ≥640px */
.t-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .t-carousel__slide {
    flex: 0 0 calc(50% - 0.625rem);
  }
}

/* Nav row: prev · dots · next */
.t-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.t-carousel__btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1.5px solid #e8edf3;
  background: #fff;
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.t-carousel__btn:hover {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
  box-shadow: 0 4px 12px rgba(1, 72, 131, 0.25);
}

.t-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.t-carousel__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.25s;
}

.t-carousel__dot.active {
  background: var(--blue-500);
  width: 1.25rem;
}

/* ── TESTIMONIAL CARD ── */
#testimonials .testimonial-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
}

.stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.star svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.star.filled {
  color: var(--red-500);
}

.star.empty {
  color: #d1d5db;
}

.testimonial-text {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 1.25rem;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #e8edf3;
  margin-top: auto;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

#testimonials .testimonial-card:hover .author-avatar {
  border-color: rgba(1, 72, 131, 0.25);
}

.author-name {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-600);
}

.author-role {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--red-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.125rem;
}

.quote-mark {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  opacity: 0.25;
  flex-shrink: 0;
  transition: opacity 0.3s;
}

#testimonials .testimonial-card:hover .quote-mark {
  opacity: 0.6;
}

.no-testimonials {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 1rem;
  padding: 3rem;
  text-align: center;
  border: 1px solid #e8edf3;
}

.no-testimonials p {
  color: #9ca3af;
  font-size: 15px;
  margin-bottom: 0.75rem;
}

.no-testimonials button {
  font-size: 13px;
  font-weight: 700;
  color: #3f797a;
  background: none;
  border: none;
  cursor: pointer;
}

.no-testimonials button:hover {
  text-decoration: underline;
}

/* ── RIGHT COLUMN / PORTRAIT ── */
#right-column-container {
  display: flex;
  flex-direction: column;
}

.portrait-card-mobile {
  position: relative;
  flex: 1;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 400px;
  border: 1px solid #e8edf3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (min-width: 1024px) {
  .portrait-card-mobile {
    display: none;
  }
}

.portrait-card-mobile::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 0%;
  left: 50%;
  top: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 1;
  pointer-events: none;
}

.portrait-card-mobile:hover::after {
  height: 250%;
  transition: all 600ms linear;
  background-color: transparent;
}

.portrait-card-desktop {
  display: none;
  position: relative;
  flex: 1;
  min-height: 580px;
  height: 100%;
  border-radius: 1rem;
  overflow: visible;
}

.portrait-img-clip {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  overflow: hidden;
}

.portrait-img-clip::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 0%;
  left: 50%;
  top: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 1;
  pointer-events: none;
}

.portrait-card-desktop:hover .portrait-img-clip::after {
  height: 250%;
  transition: all 600ms linear;
  background-color: transparent;
}

@media (min-width: 1024px) {
  .portrait-card-desktop {
    display: block;
  }
}

.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent, rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.portrait-badge-mobile {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  border: 1px solid rgba(232, 237, 243, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.badge-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-500);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.25rem;
}

.badge-text {
  font-family: 'Manrope', sans-serif;
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.concave-mask {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24%;
  height: 52%;
  background: #f8f9fb;
  border-top: 1px solid #e8edf3;
  border-right: 1px solid #e8edf3;
  border-radius: 0 1rem 0 0;
  pointer-events: none;
}

.concave-mask::after {
  content: none;
}

.portrait-badge-desktop {
  position: absolute;
  bottom: 1.25rem;
  left: 28%;
  right: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  border: 1px solid rgba(232, 237, 243, 0.6);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ── ADD TESTIMONIAL BUTTON ── */
.btn-add-testimonial {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(63, 121, 122, 0.35);
  border-radius: 0.5rem;
  color: #3f797a;
  background: transparent;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-add-testimonial:hover {
  border-color: #3f797a;
  background: rgba(63, 121, 122, 0.06);
}

.btn-add-testimonial svg {
  width: 14px;
  height: 14px;
}

/* ── FILTER BAR ── */
#filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.25rem;
}

#filter-bar h3 {
  font-family: 'Manrope', sans-serif;
  color: #004d4a;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-count {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 9999px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-label {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-right: 0.25rem;
}

.filter-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid #e8edf3;
  background: #fff;
  color: #374151;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn:hover {
  border-color: rgba(63, 121, 122, 0.4);
}

.filter-btn.active {
  background: var(--blue-500);
  color: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 1px 4px rgba(1, 72, 131, 0.2);
}

/* ── MODAL BASE ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.modal-box {
  background: #fff;
  border-radius: 1rem;
  width: 100%;
  max-width: 32rem;
  overflow: hidden;
  border: 1px solid #e8edf3;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
  transform: scale(0.95) translateY(15px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.215, 0.61, 0.355, 1), opacity 0.3s;
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e8edf3;
  background: #f0f3f7;
}

.modal-title {
  font-family: 'Manrope', sans-serif;
  color: #004d4a;
  font-size: 18px;
  font-weight: 700;
}

.modal-subtitle {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.125rem;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0.375rem;
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #374151;
  background: rgba(55, 65, 81, 0.1);
}

.modal-body {
  padding: 1.5rem;
}

.modal-error {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem;
  background: #fff1f2;
  color: #e11d48;
  border-radius: 0.5rem;
  font-size: 14px;
  border: 1px solid #ffe4e6;
  margin-bottom: 1.25rem;
}

.modal-error svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.5rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  border-color: #3f797a;
  box-shadow: 0 0 0 3px rgba(63, 121, 122, 0.12);
}

.field textarea {
  resize: none;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  margin-top: 0.5rem;
}

.modal-footer-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  margin-top: 0.5rem;
}

/* Modal buttons — scoped so they don't clash with global .btn-primary */
.modal-box .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  background: #3f797a;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(63, 121, 122, 0.25);
  text-decoration: none;
  width: auto;
  gap: 0;
  letter-spacing: 0;
  text-transform: none;
}

.modal-box .btn-primary::before,
.modal-box .btn-primary::after {
  display: none;
}

.modal-box .btn-primary:hover {
  background: #004d4a;
  box-shadow: 0 4px 14px rgba(0, 77, 74, 0.3);
  transform: none;
}

.modal-box .btn-secondary {
  padding: 0.65rem 1.25rem;
  border: 1px solid #e5e7eb;
  color: #374151;
  background: transparent;
  border-radius: 0.5rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-box .btn-secondary:hover {
  background: #f3f4f6;
}

/* Stars selector */
.star-selector {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.star-btn {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  transition: transform 0.1s;
}

.star-btn:hover {
  transform: scale(1.1);
}

.star-btn svg {
  width: 1.75rem;
  height: 1.75rem;
}

.star-btn svg.filled {
  color: #3f797a;
  fill: #3f797a;
}

.star-btn svg.empty {
  color: #e5e7eb;
  fill: none;
}

/* Avatar selector */
.avatar-selector {
  display: flex;
  gap: 0.875rem;
  overflow-x: auto;
  padding: 0.25rem 0;
}

.avatar-opt {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.avatar-opt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-opt.selected {
  border-color: #3f797a;
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(63, 121, 122, 0.15);
}

/* Time slot grid */
.timeslot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

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

.timeslot-btn {
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  transition: all 0.2s;
}

.timeslot-btn:hover {
  border-color: rgba(63, 121, 122, 0.4);
  background: #f0f3f7;
}

.timeslot-btn.selected {
  background: #3f797a;
  color: #fff;
  border-color: #3f797a;
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.125rem;
}

.step-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(63, 121, 122, 0.3);
  transition: background 0.3s;
}

.step-dot.active {
  background: #3f797a;
}

/* Booking success */
#booking-success {
  display: none;
  text-align: center;
  padding: 1.5rem 0;
}

#booking-success .success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: #ecfdf5;
  border-radius: 50%;
  margin-bottom: 1.25rem;
  border: 1px solid #d1fae5;
}

#booking-success .success-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: #10b981;
}

#booking-success h4 {
  font-family: 'Manrope', sans-serif;
  color: #004d4a;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

#booking-success p {
  color: #374151;
  font-size: 14px;
  line-height: 1.65;
  max-width: 22rem;
  margin: 0 auto 1.5rem;
}

.booking-summary {
  background: #f0f3f7;
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid #e8edf3;
  max-width: 22rem;
  margin: 0 auto 2rem;
  text-align: left;
}

.booking-summary-row {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #374151;
  margin-bottom: 0.75rem;
}

.booking-summary-row:last-child {
  margin-bottom: 0;
}

.booking-summary-row svg {
  width: 1rem;
  height: 1rem;
  color: #3f797a;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

/* Date input icon */
.date-input-wrap {
  position: relative;
}

.date-input-wrap svg {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  pointer-events: none;
}

.date-input-wrap input {
  padding-left: 2.5rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}
