/* App-specific styles — extends theme.css */

/* ── Hero search form ── */
.hero-search {
  margin-top: 40px;
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
}
.hero-search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.hero-search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-search-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.hero-search-select {
  padding: 10px 14px;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--fg);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a5a52' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.hero-search-select:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.hero-search-btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--sage);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.hero-search-btn:hover { background: var(--sage-light); }

/* ── Featured therapists ── */
.featured {
  padding: 80px 24px;
  background: white;
}
.featured-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.featured-header {
  text-align: center;
  margin-bottom: 48px;
}
.featured-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  margin-bottom: 12px;
}
.featured-header p {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 500px;
  margin: 0 auto;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.featured-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 32px 24px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.featured-card:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 24px rgba(74, 103, 65, 0.1);
  transform: translateY(-2px);
}
.featured-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--sage-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}
.featured-card-initials {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--sage);
}
.featured-card-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}
.featured-card-title {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.featured-card-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.featured-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}
.featured-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--sand);
}
.featured-card-price {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--fg);
}
.featured-card-price .price-unit {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  color: var(--fg-muted);
}
.featured-card-modes {
  display: flex;
  gap: 4px;
}
.featured-cta {
  text-align: center;
  margin-top: 40px;
}

/* Shared buttons */
.app-btn-primary {
  display: inline-block;
  padding: 11px 22px;
  background: var(--sage);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.app-btn-primary:hover { background: var(--sage-light); }
.app-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.app-btn-outline {
  display: inline-block;
  padding: 11px 22px;
  background: transparent;
  color: var(--sage);
  border: 1.5px solid var(--sage);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.app-btn-outline:hover { background: var(--sage-bg); }

/* App main wrapper */
.app-main { min-height: calc(100vh - 72px); }

/* ── Search page ── */
.search-header {
  background: var(--bg-warm);
  padding: 56px 24px 48px;
  border-bottom: 1px solid var(--sand);
}
.search-header-inner {
  max-width: 760px;
  margin: 0 auto;
}
.search-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* Filters */
.filters-panel {
  position: sticky;
  top: 88px;
  background: white;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 24px;
}
.filter-group { margin-bottom: 20px; }
.filter-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.filter-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--fg);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a5a52' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.filter-select:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.filter-clear {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  margin-top: 4px;
}
.filter-clear:hover { text-decoration: underline; }

/* Therapist result cards */
.results-grid { display: flex; flex-direction: column; gap: 16px; }
.therapist-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 20px;
  align-items: center;
  background: white;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.therapist-card:hover {
  border-color: var(--sage);
  box-shadow: 0 2px 16px rgba(74, 103, 65, 0.08);
}
.therapist-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sage-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.therapist-card-initials {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--sage);
}
.therapist-card-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}
.therapist-card-title {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.therapist-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 10px;
}
.therapist-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.specialty-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--sage-bg);
  color: var(--sage);
  text-transform: capitalize;
}
.therapist-card-price {
  text-align: right;
  white-space: nowrap;
}
.price-amount {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--fg);
}
.price-label {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 10px;
}
.session-mode-pills { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.mode-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
}
.mode-online { background: #e8f4fd; color: #2563ab; }
.mode-person { background: #fdf3e8; color: #a05e28; }

.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--fg);
}

/* ── Profile page ── */
.profile-page { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }
.profile-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 32px;
}
.profile-back:hover { color: var(--fg); }
.profile-hero {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 40px;
}
.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--sage-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-initials {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: var(--sage);
}
.profile-section { margin-bottom: 40px; }
.profile-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sand);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.detail-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
}
.detail-icon { font-size: 20px; flex-shrink: 0; }
.detail-label { font-size: 12px; color: var(--fg-muted); margin-bottom: 2px; }
.detail-val { font-size: 15px; font-weight: 600; }

/* Booking panel */
.booking-panel { position: sticky; top: 88px; }
.booking-card {
  background: white;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}
.booking-card-header {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--sand);
}
.booking-card-header .price-amount { font-size: 40px; }
.booking-card-header .price-label { font-size: 13px; }
.booking-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--fg); }
.form-input {
  padding: 10px 14px;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.15s;
  resize: vertical;
}
.form-input:focus { outline: none; border-color: var(--sage); }
.booking-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: #b91c1c;
}
.booking-submit { width: 100%; padding: 14px; font-size: 15px; }
.booking-note {
  font-size: 12px;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.5;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .search-body {
    grid-template-columns: 1fr;
  }
  .filters-panel { position: static; }
  .profile-inner { grid-template-columns: 1fr; }
  .booking-panel { position: static; }
  .therapist-card { grid-template-columns: 56px 1fr; }
  .therapist-card-price { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .profile-hero { flex-direction: column; gap: 16px; }
  .signup-inner { grid-template-columns: 1fr; }
  .signup-benefits { order: 2; }
  .signup-form-wrap { order: 1; }
}

/* ── Signup page ── */
.signup-trial-banner {
  background: var(--sage);
  color: white;
  padding: 16px 24px;
}
.signup-trial-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
}
.signup-trial-inner strong { font-size: 16px; }
.signup-trial-inner span { font-size: 14px; opacity: 0.8; }

.signup-page { max-width: 1100px; margin: 0 auto; padding: 48px 24px 80px; }
.signup-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

/* Benefits panel */
.signup-benefits { position: sticky; top: 88px; }
.signup-benefits-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--fg);
  margin-bottom: 28px;
}
.benefit-items { display: flex; flex-direction: column; gap: 20px; }
.benefit-item { display: flex; gap: 14px; align-items: flex-start; }
.benefit-icon { color: var(--sage); flex-shrink: 0; margin-top: 2px; }
.benefit-title { font-size: 15px; font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.benefit-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }

.after-trial-box {
  margin-top: 32px;
  background: var(--bg-warm);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 20px;
}
.after-trial-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.after-trial-body { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--fg-muted); }
.after-trial-body strong { color: var(--fg); }

/* Form panel */
.signup-form-wrap { background: white; border: 1px solid var(--sand); border-radius: var(--radius); padding: 36px; }
.signup-form-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--fg);
  margin-bottom: 6px;
}
.signup-form-sub { font-size: 14px; color: var(--fg-muted); margin-bottom: 28px; }

.signup-form { display: flex; flex-direction: column; gap: 4px; }
.form-section-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--sand);
}
.form-section { display: flex; flex-direction: column; gap: 16px; }
.form-section-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  color: #b91c1c;
  margin-bottom: 20px;
}
.checkbox-row { display: flex; gap: 20px; flex-wrap: wrap; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { accent-color: var(--sage); width: 16px; height: 16px; }
.specialty-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; }
.specialty-check { padding: 6px 12px; border: 1px solid var(--sand); border-radius: 16px; font-size: 13px; }
.specialty-check input[type="checkbox"]:checked + * { background: var(--sage-bg); color: var(--sage); }
.specialty-check:has(input:checked) { background: var(--sage-bg); border-color: var(--sage); color: var(--sage); }
.required { color: #b91c1c; }
.form-submit-row { margin-top: 24px; }
.signup-submit-btn { width: 100%; padding: 14px; font-size: 15px; }
.signup-disclaimer { font-size: 12px; color: var(--fg-muted); text-align: center; margin-top: 10px; }

/* Trial countdown badge on profile */
.trial-countdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 12px;
}

/* Therapist CTA section */
.therapist-cta {
  background: var(--sage);
  padding: 80px 24px;
  color: white;
}
.therapist-cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.therapist-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.therapist-cta h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: white;
  margin-bottom: 16px;
}
.therapist-cta p { font-size: 16px; line-height: 1.7; opacity: 0.9; margin-bottom: 32px; }
.therapist-cta-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.therapist-cta-btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: white;
  color: var(--sage);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.15s;
}
.therapist-cta-btn-primary:hover { transform: translateY(-1px); }
.therapist-cta-btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.therapist-cta-btn-secondary:hover { border-color: white; }
.therapist-cta-perks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  opacity: 0.8;
  flex-wrap: wrap;
}
.perk-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
