/* =============================================================================
   RSDC Plugin — Testimonials Module — Frontend Styles
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --rsdc-navy:         #0b1f3a;
  --rsdc-gold:         #b8924a;
  --rsdc-gold-light:   #d4ae72;
  --rsdc-white:        #ffffff;
  --rsdc-muted:        #a7bdd3;
  --rsdc-glass:        rgba(255, 255, 255, 0.05);
  --rsdc-glass-border: rgba(184, 146, 74, 0.2);
}

/* ── Section wrapper ─────────────────────────────────────────────────────── */

.rsdc-section {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 600px at 10% 25%, rgba(46, 127, 194, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 700px 500px at 90% 75%, rgba(184, 146, 74, 0.07) 0%, transparent 70%),
    linear-gradient(175deg, #0b1f3a 0%, #0d2440 50%, #091830 100%);
  color: var(--rsdc-white);
  font-family: 'DM Sans', sans-serif;
}

/* Force full-bleed width when rendered inside constrained theme containers */
.rsdc-section--home,
.rsdc-section--archive {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Subtle grid texture overlay */
.rsdc-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.rsdc-section > * {
  position: relative;
  z-index: 1;
}

/* ── Eyebrow ──────────────────────────────────────────────────────────────── */

.rsdc-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-bottom: 16px;
}

.rsdc-eyebrow__line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rsdc-gold));
}

.rsdc-eyebrow__line--right {
  background: linear-gradient(90deg, var(--rsdc-gold), transparent);
}

.rsdc-eyebrow__text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--rsdc-gold-light);
}

/* ── Section title & subtitle ─────────────────────────────────────────────── */

.rsdc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 300;
  line-height: 1.12;
  text-align: center;
  color: var(--rsdc-white);
  margin: 0 0 14px;
}

.rsdc-title em {
  font-style: italic;
  color: var(--rsdc-gold-light);
}

.rsdc-subtitle {
  text-align: center;
  font-size: 16px;
  color: rgba(236, 244, 252, 0.88);
  font-weight: 400;
  max-width: 760px;
  margin: 0 auto 52px;
  line-height: 1.8;
}

/* ── Stats bar ────────────────────────────────────────────────────────────── */

.rsdc-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  max-width: 640px;
  margin: 0 auto 56px;
  padding: 24px 44px;
  background: var(--rsdc-glass);
  border: 1px solid var(--rsdc-glass-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.rsdc-stat {
  text-align: center;
}

.rsdc-stat__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--rsdc-gold-light);
  line-height: 1;
  display: block;
}

.rsdc-stat__label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rsdc-muted);
  margin-top: 5px;
  display: block;
}

.rsdc-stat__divider {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--rsdc-gold), transparent);
  opacity: 0.35;
  flex-shrink: 0;
}

/* ── Stars ────────────────────────────────────────────────────────────────── */

.rsdc-stars {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin-bottom: 3px;
}

.rsdc-star {
  color: var(--rsdc-gold);
  font-size: 13px;
}

.rsdc-star--empty {
  color: rgba(184, 146, 74, 0.2);
}

.rsdc-stars--sm .rsdc-star {
  font-size: 12px;
}

/* ── Grid ─────────────────────────────────────────────────────────────────── */

.rsdc-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.rsdc-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rsdc-section--home .rsdc-grid,
.rsdc-section--archive .rsdc-grid {
  width: min(100%, 1200px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.rsdc-section--home .rsdc-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ── Card ─────────────────────────────────────────────────────────────────── */

.rsdc-card {
  background: var(--rsdc-glass);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 28px 22px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.rsdc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(184, 146, 74, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.rsdc-card:hover {
  transform: translateY(-5px);
  border-color: var(--rsdc-glass-border);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(184, 146, 74, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rsdc-card:hover::before {
  opacity: 1;
}

/* Featured card variant */
.rsdc-card--featured {
  border-color: rgba(184, 146, 74, 0.28);
  background: linear-gradient(145deg, rgba(184, 146, 74, 0.07) 0%, var(--rsdc-glass) 100%);
}

.rsdc-card__badge {
  position: absolute;
  top: -1px;
  right: 20px;
  background: var(--rsdc-gold);
  color: var(--rsdc-navy);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0 0 8px 8px;
}

.rsdc-quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 58px;
  line-height: 0.6;
  color: var(--rsdc-gold);
  opacity: 0.22;
  margin-bottom: 14px;
  display: block;
  font-weight: 600;
}

.rsdc-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.rsdc-card__stars .rsdc-star {
  font-size: 12px;
}

.rsdc-card__text {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(245, 250, 255, 0.94);
  font-style: normal;
  flex: 1;
  margin-bottom: 20px;
}

.rsdc-card__text--collapsible {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  margin-bottom: 10px;
}

.rsdc-card__text--collapsible.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.rsdc-card button.rsdc-card__toggle {
  align-self: flex-start;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--rsdc-gold-light) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.2px !important;
  text-transform: none !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
  min-height: 0 !important;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rsdc-card button.rsdc-card__toggle:hover {
  color: var(--rsdc-white) !important;
}

.rsdc-card button.rsdc-card__toggle[hidden] {
  display: none !important;
}

.rsdc-card__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 146, 74, 0.28), transparent);
  margin-bottom: 16px;
}

/* ── Author row ───────────────────────────────────────────────────────────── */

.rsdc-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Avatar */
.rsdc-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--rsdc-navy);
  flex-shrink: 0;
  position: relative;
}

.rsdc-avatar::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid rgba(184, 146, 74, 0.4);
}

.rsdc-avatar--anon {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.rsdc-avatar--anon::after {
  display: none;
}

.rsdc-avatar--anon svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.28);
  fill: none;
  stroke-width: 1.5;
}

/* Avatar color variants */
.rsdc-avatar.av-0 { background: linear-gradient(135deg, #c4a882, #b8924a); }
.rsdc-avatar.av-1 { background: linear-gradient(135deg, #7eb8d4, #2e7fc2); }
.rsdc-avatar.av-2 { background: linear-gradient(135deg, #b4c9a0, #5d9954); }
.rsdc-avatar.av-3 { background: linear-gradient(135deg, #d4a8c8, #9d5c8f); }
.rsdc-avatar.av-4 { background: linear-gradient(135deg, #f0c07a, #d4820a); }
.rsdc-avatar.av-5 { background: linear-gradient(135deg, #a8c4d4, #4a8ab0); }
.rsdc-avatar.av-6 { background: linear-gradient(135deg, #c8b4d4, #7a5ca0); }
.rsdc-avatar.av-7 { background: linear-gradient(135deg, #a8d4c4, #3a9880); }

/* Author info */
.rsdc-author-info {
  flex: 1;
  min-width: 0;
}

.rsdc-author-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rsdc-white);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rsdc-author-name--private {
  color: rgba(228, 239, 249, 0.88);
  font-style: italic;
  font-weight: 500;
  font-size: 12px;
}

.rsdc-author-meta {
  font-size: 11.5px;
  color: rgba(207, 221, 236, 0.9);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.rsdc-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rsdc-muted);
  opacity: 0.4;
  flex-shrink: 0;
  display: inline-block;
}

.rsdc-meta-doctor {
  font-size: 10.5px;
  color: rgba(221, 232, 243, 0.9);
  opacity: 0.9;
}

.rsdc-author-date {
  font-size: 10px;
  color: rgba(201, 218, 234, 0.85);
  opacity: 0.85;
  margin-top: 2px;
}

/* Privacy / Verified badges */
.rsdc-privacy-tag,
.rsdc-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.rsdc-privacy-tag {
  color: rgba(184, 146, 74, 0.6);
}

.rsdc-privacy-tag svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: rgba(184, 146, 74, 0.6);
  stroke-width: 2;
}

.rsdc-verified-tag {
  color: rgba(46, 180, 130, 0.8);
}

.rsdc-verified-tag svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: rgba(46, 180, 130, 0.8);
  stroke-width: 2;
}

/* ── CTA row ──────────────────────────────────────────────────────────────── */

.rsdc-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 44px;
}

.rsdc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--rsdc-gold), #8a6830);
  color: var(--rsdc-white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 8px 28px rgba(184, 146, 74, 0.28);
}

.rsdc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(184, 146, 74, 0.42);
  filter: brightness(1.1);
}

.rsdc-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.rsdc-btn-ghost:hover {
  border-color: rgba(184, 146, 74, 0.38);
  color: var(--rsdc-gold-light);
  background: rgba(184, 146, 74, 0.05);
}

/* ── Pagination ───────────────────────────────────────────────────────────── */

.rsdc-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 48px;
  flex-wrap: wrap;
}

.rsdc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.25s ease;
}

.rsdc-pagination .page-numbers:hover,
.rsdc-pagination .page-numbers.current {
  background: var(--rsdc-gold);
  border-color: var(--rsdc-gold);
  color: var(--rsdc-navy);
}

.rsdc-pagination .page-numbers.prev,
.rsdc-pagination .page-numbers.next {
  width: auto;
  padding: 0 14px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .rsdc-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .rsdc-section {
    padding: 60px 0 80px;
  }

  .rsdc-grid--4 {
    grid-template-columns: 1fr;
  }

  .rsdc-grid {
    padding: 0 16px;
  }

  .rsdc-stats-bar {
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
  }

  .rsdc-stat__divider {
    width: 60px;
    height: 1px;
  }

  .rsdc-cta-row {
    flex-direction: column;
    gap: 12px;
  }
}

/* =============================================================================
   Feedback Form & Success Popup
   ============================================================================= */

/* ── Form wrapper ──────────────────────────────────────────────────────────── */

.rsdc-section--feedback {
  padding-bottom: 130px;
}

.rsdc-form-wrap {
  max-width: 860px;
  margin: 0 auto 72px;
  padding: 0 32px;
}

/* ── Form card ─────────────────────────────────────────────────────────────── */

.rsdc-form-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(184, 146, 74, 0.2);
  border-radius: 20px;
  padding: 40px 40px 32px;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.rsdc-form-card:focus-within {
  box-shadow: 0 0 0 1px rgba(184, 146, 74, 0.2), 0 24px 60px rgba(0, 0, 0, 0.3);
}

/* ── Star picker ───────────────────────────────────────────────────────────── */

.rsdc-form-stars-wrap {
  text-align: center;
  margin-bottom: 32px;
}

.rsdc-form-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 8px;
}

.rsdc-form-star {
  background: none;
  border: none;
  font-size: 40px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.15);
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1;
  padding: 4px;
}

.rsdc-form-star:hover,
.rsdc-form-star.active {
  color: var(--rsdc-gold);
}

.rsdc-form-star.active {
  transform: scale(1.15);
}

.rsdc-form-star-label {
  display: block;
  font-size: 13px;
  color: var(--rsdc-gold-light);
  min-height: 18px;
  letter-spacing: 0.5px;
  font-style: italic;
}

/* ── Grid ──────────────────────────────────────────────────────────────────── */

.rsdc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.rsdc-form-field--full {
  grid-column: 1 / -1;
}

/* ── Labels & hints ────────────────────────────────────────────────────────── */

.rsdc-form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--rsdc-muted);
  margin-bottom: 8px;
}

.rsdc-form-required {
  color: var(--rsdc-gold);
  margin-left: 2px;
}

.rsdc-form-opt {
  font-size: 10px;
  color: var(--rsdc-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-style: italic;
}

.rsdc-form-hint {
  font-size: 11px;
  color: var(--rsdc-muted);
  margin-top: 5px;
  opacity: 0.7;
}

/* ── Inputs ────────────────────────────────────────────────────────────────── */

.rsdc-form-input,
.rsdc-form-select,
.rsdc-form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--rsdc-white);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.rsdc-form-input::placeholder,
.rsdc-form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.rsdc-form-input:focus,
.rsdc-form-select:focus,
.rsdc-form-textarea:focus {
  outline: none;
  border-color: rgba(184, 146, 74, 0.55);
  background: rgba(184, 146, 74, 0.05);
  box-shadow: 0 0 0 3px rgba(184, 146, 74, 0.1);
}

.rsdc-form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}

/* Select wrapper for custom arrow */
.rsdc-form-select-wrap {
  position: relative;
}

.rsdc-form-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rsdc-muted);
  pointer-events: none;
  font-size: 12px;
}

.rsdc-form-select {
  padding-right: 36px;
  cursor: pointer;
  color: var(--rsdc-white);
}

.rsdc-form-select option {
  background: #0d2440;
  color: #fff;
}

/* Char counter */
.rsdc-form-charcount {
  text-align: right;
  font-size: 11px;
  color: var(--rsdc-muted);
  margin-top: 5px;
  opacity: 0.6;
}

/* ── Footer row ────────────────────────────────────────────────────────────── */

.rsdc-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.rsdc-form-privacy {
  font-size: 12px;
  color: var(--rsdc-muted);
  opacity: 0.7;
}

/* ── Submit button ─────────────────────────────────────────────────────────── */

.rsdc-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--rsdc-gold), #8a6830);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 8px 28px rgba(184, 146, 74, 0.3);
  flex-shrink: 0;
}

.rsdc-form-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(184, 146, 74, 0.42);
  filter: brightness(1.1);
}

.rsdc-form-submit:disabled,
.rsdc-form-submit.loading {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.rsdc-form-submit__icon {
  transition: transform 0.2s ease;
}

.rsdc-form-submit:hover:not(:disabled) .rsdc-form-submit__icon {
  transform: translateX(3px);
}

/* ── Error message ─────────────────────────────────────────────────────────── */

.rsdc-form-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 8px;
  font-size: 13px;
  color: #fca5a5;
}

/* ── Archive divider ───────────────────────────────────────────────────────── */

.rsdc-archive-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto 48px;
  padding: 0 32px;
}

.rsdc-archive-divider .rsdc-eyebrow__text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--rsdc-gold-light);
}

/* ── Success Popup ─────────────────────────────────────────────────────────── */

.rsdc-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rsdc-overlay-in 0.25s ease;
}

@keyframes rsdc-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.rsdc-popup {
  background: linear-gradient(145deg, #112440, #0d1e35);
  border: 1px solid rgba(184, 146, 74, 0.3);
  border-radius: 24px;
  padding: 52px 48px 44px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(184, 146, 74, 0.1);
  animation: rsdc-popup-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rsdc-popup-in {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.rsdc-popup__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(58, 191, 138, 0.2), rgba(58, 191, 138, 0.05));
  border: 2px solid rgba(58, 191, 138, 0.4);
  color: #3abf8a;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 32px rgba(58, 191, 138, 0.2);
}

.rsdc-popup__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--rsdc-white);
  margin: 0 0 12px;
}

.rsdc-popup__text {
  font-size: 14px;
  color: var(--rsdc-muted);
  line-height: 1.7;
  margin: 0 0 32px;
}

.rsdc-popup__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--rsdc-gold), #8a6830);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 40px;
  border-radius: 50px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
  box-shadow: 0 8px 24px rgba(184, 146, 74, 0.3);
}

.rsdc-popup__close:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .rsdc-form-wrap    { padding: 0 16px; }
  .rsdc-form-card    { padding: 28px 20px 24px; }
  .rsdc-form-grid    { grid-template-columns: 1fr; }
  .rsdc-form-footer  { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rsdc-form-submit  { width: 100%; justify-content: center; }
  .rsdc-form-star    { font-size: 32px; }
  .rsdc-popup        { padding: 40px 28px 36px; }
}

/* ── Form section label ──────────────────────────────────────────────────── */

.rsdc-form-section-label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(46, 127, 194, 0.25);
  border: 1px solid rgba(46, 127, 194, 0.3);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rsdc-form-section-label::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2e7fc2;
  flex-shrink: 0;
}

/* ── Patient row: title + first + last ───────────────────────────────────── */

.rsdc-form-grid--patient {
  grid-template-columns: 130px 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

/* ── Location radio list ─────────────────────────────────────────────────── */

.rsdc-form-locations {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.rsdc-form-location-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.rsdc-form-location-item:hover {
  border-color: rgba(184, 146, 74, 0.3);
  background: rgba(184, 146, 74, 0.04);
}

.rsdc-form-location-item:has(.rsdc-form-location-radio:checked) {
  border-color: rgba(184, 146, 74, 0.5);
  background: rgba(184, 146, 74, 0.07);
}

.rsdc-form-location-radio {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.rsdc-form-location-pin {
  font-size: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.rsdc-form-location-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rsdc-form-location-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--rsdc-white);
}

.rsdc-form-location-addr {
  font-size: 11px;
  color: var(--rsdc-muted);
}

/* Custom radio dot on right */
.rsdc-form-location-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.rsdc-form-location-item:has(.rsdc-form-location-radio:checked) .rsdc-form-location-check {
  border-color: var(--rsdc-gold);
  background: var(--rsdc-gold);
}

.rsdc-form-location-item:has(.rsdc-form-location-radio:checked) .rsdc-form-location-check::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--rsdc-navy);
}

/* ── Details grid ────────────────────────────────────────────────────────── */

.rsdc-form-grid--details {
  gap: 16px 20px;
}

/* ── Star rating inline ──────────────────────────────────────────────────── */

.rsdc-form-grid--details .rsdc-form-stars {
  justify-content: flex-start;
  margin: 8px 0 4px;
}

.rsdc-form-grid--details .rsdc-form-star {
  font-size: 32px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .rsdc-form-grid--patient {
    grid-template-columns: 1fr 1fr;
  }
  .rsdc-form-field--title {
    grid-column: 1 / -1;
  }
}
