/* Therapist application — Speech Saathi */

:root {
  --ta-bg: #fff5f2;
  --ta-footer-bg: #ffefea;
  --ta-card: #fffaf8;
  --ta-text: #2a1f1e;
  --ta-muted: #6b5c59;
  --ta-accent: #a52a2a;
  --ta-accent-soft: #fde8e4;
  --ta-border: #edd5cf;
  --ta-radius: 16px;
  --ta-radius-lg: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.ta-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ta-text);
  background: var(--ta-bg);
}

body.ta-page a {
  text-decoration: none;
  color: inherit;
}

.ta-serif {
  font-family: Georgia, "Times New Roman", serif;
}

/* Header */
.ta-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 28px;
  background: rgba(255, 252, 250, 0.95);
  border-bottom: 1px solid var(--ta-border);
}

.ta-logo-link {
  display: inline-block;
  line-height: 0;
}

.ta-logo-link img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.ta-header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.ta-header-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ta-muted);
  padding: 8px 2px;
  border-bottom: 3px solid transparent;
}

.ta-header-nav a:hover {
  color: var(--ta-text);
}

.ta-header-nav a.active {
  color: var(--ta-text);
  border-bottom-color: var(--ta-accent);
}

.ta-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ta-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ta-border);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #5c4c4a;
  padding: 0;
}

.ta-btn-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--ta-accent);
  background: transparent;
  color: var(--ta-accent);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}

.ta-btn-exit:hover {
  background: #fff5f4;
}

/* Main */
.ta-main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  width: 100%;
}

.ta-hero {
  margin-bottom: 48px;
}

.ta-hero-left {
  max-width: 640px;
}

.ta-hero-left h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.ta-hero-left h1 .brand {
  color: var(--ta-accent);
}

.ta-hero-lead {
  margin: 0 0 20px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ta-muted);
}

.ta-hero-perk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ta-muted);
  margin-bottom: 28px;
}

.ta-hero-perk svg {
  width: 18px;
  height: 18px;
  color: var(--ta-accent);
  flex-shrink: 0;
}

/* Progress card */
.ta-progress-card {
  background: var(--ta-card);
  border: 1px solid var(--ta-border);
  border-radius: var(--ta-radius-lg);
  padding: 22px 24px 20px;
  box-shadow: 0 8px 28px rgba(42, 31, 30, 0.05);
  max-width: 380px;
}

.ta-progress-card h2 {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ta-text);
}

.ta-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ta-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ta-muted);
}

.ta-steps li:last-child {
  margin-bottom: 18px;
}

.ta-steps .num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
  background: #e8e0de;
  color: #8a7a78;
}

.ta-steps li.active {
  color: var(--ta-accent);
}

.ta-steps li.active .num {
  background: var(--ta-accent);
  color: #fff;
}

.ta-steps li.completed:not(.active) {
  color: var(--ta-text);
}

.ta-steps li.completed:not(.active) .num {
  background: #15803d;
  color: #fff;
  font-size: 0.72rem;
}

.ta-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #fde8e4;
  overflow: hidden;
  margin-bottom: 10px;
}

.ta-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b2424, var(--ta-accent));
  transition: width 0.25s ease;
}

.ta-progress-label {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ta-muted);
}

/* Hero image: desktop only (hidden on tablet & mobile) */
.ta-hero-right {
  display: none;
}

@media (min-width: 1200px) {
  .ta-hero {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 36px 40px;
    align-items: start;
  }

  .ta-hero-left {
    max-width: none;
  }

  .ta-hero-right {
    display: block;
  }

  .ta-hero-right img {
    width: 100%;
    height: auto;
    min-height: 280px;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--ta-radius-lg);
    box-shadow: 0 16px 48px rgba(42, 31, 30, 0.12);
  }
}

/* Form section */
.ta-form-section {
  background: #fff;
  border: 1px solid var(--ta-border);
  border-radius: var(--ta-radius-lg);
  padding: 28px 28px 32px;
  box-shadow: 0 8px 28px rgba(42, 31, 30, 0.06);
}

.ta-form-section h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.ta-form-section > .hint {
  margin: 0 0 22px;
  font-size: 0.9rem;
  color: var(--ta-muted);
}

fieldset.ta-step-block {
  border: none;
  margin: 0 0 28px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--ta-border);
}

fieldset.ta-step-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ta-step-legend {
  padding: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ta-text);
  margin-bottom: 8px;
}

.ta-step-block .hint {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--ta-muted);
}

.ta-check-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ta-muted);
  margin-bottom: 8px;
}

.ta-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.ta-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--ta-text);
}

.ta-check input {
  width: auto;
  accent-color: var(--ta-accent);
}

.ta-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ta-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ta-muted);
  margin-bottom: 6px;
}

.ta-field input,
.ta-field textarea,
.ta-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ta-border);
  border-radius: 12px;
  background: #fffaf8;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ta-text);
}

.ta-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b5c59' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.ta-field textarea {
  min-height: 120px;
  resize: vertical;
}

.ta-field-full {
  grid-column: 1 / -1;
}

.ta-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.ta-btn-primary {
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #8b2424, var(--ta-accent));
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
}

.ta-btn-primary:hover {
  filter: brightness(1.04);
}

.ta-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--ta-border);
  background: #fff;
  color: var(--ta-text);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
}

.ta-btn-secondary:hover {
  background: var(--ta-bg);
}

/* Footer */
.ta-footer {
  background: var(--ta-footer-bg);
  border-top: 1px solid var(--ta-border);
  padding: 22px 28px;
  margin-top: auto;
}

.ta-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 24px;
}

.ta-footer-brand {
  justify-self: start;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ta-accent);
}

.ta-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  justify-self: center;
}

.ta-footer-nav a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  color: var(--ta-muted);
}

.ta-footer-nav a:hover {
  color: var(--ta-accent);
}

.ta-footer-copy {
  margin: 0;
  justify-self: end;
  text-align: right;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  color: var(--ta-muted);
}

@media (max-width: 900px) {
  .ta-hero-left {
    max-width: none;
  }

  .ta-progress-card {
    max-width: none;
  }

  .ta-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ta-header-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .ta-footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .ta-footer-brand,
  .ta-footer-copy {
    justify-self: center;
    text-align: center;
  }

  .ta-footer-nav {
    justify-self: center;
  }
}

/* Submitted confirmation dialog */
.ta-dialog {
  padding: 0;
  border: none;
  border-radius: var(--ta-radius-lg);
  max-width: calc(100vw - 32px);
  width: 420px;
  box-shadow: 0 24px 60px rgba(42, 31, 30, 0.2);
}

.ta-dialog::backdrop {
  background: rgba(42, 31, 30, 0.45);
}

.ta-dialog-card {
  padding: 28px 26px 26px;
  text-align: center;
}

.ta-dialog-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: grid;
  place-items: center;
}

.ta-dialog-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ta-text);
}

.ta-dialog-card p {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ta-muted);
}

.ta-dialog-card .ta-btn-primary {
  width: 100%;
  justify-content: center;
}
