/* ========================================
   ASL Interpreting Request — InterWest × UCFS
   Large, touch-friendly form for tablets/laptops
   ======================================== */

:root {
  --bg: #0c1117;
  --bg-surface: #151c25;
  --bg-card: #1a2332;
  --bg-hover: #1f2b3d;
  --border: #2a3545;
  --border-light: #344155;
  --text: #e2e8f0;
  --text-muted: #8b9bb4;
  --text-dim: #5a6a80;
  --accent: #0ea5e9;
  --accent-hover: #38bdf8;
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.15);
  --radius: 10px;
  --radius-lg: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* --- Header --- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.brand-logo.has-img {
  width: auto;
  height: auto;
  background: rgba(255, 255, 255, 0.92);
  padding: 5px 10px;
}

.brand-logo.has-img img {
  height: 40px;
  width: auto;
  display: block;
}

.header-facility-seal {
  flex-shrink: 0;
}

.header-facility-seal:empty {
  display: none;
}

.header-facility-seal.has-img {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 6px;
  padding: 4px 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.header-facility-seal.has-img:hover {
  opacity: 1;
}

.header-facility-seal.has-img img {
  height: 28px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.facility-tag {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Progress Bar --- */

.progress-bar {
  height: 4px;
  background: var(--border);
  flex-shrink: 0;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
}

/* --- Main --- */

.main {
  flex: 1;
  overflow-y: auto;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* --- Steps --- */

.step {
  display: none;
  padding: 28px 24px;
  animation: fadeIn 0.15s ease;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Step Header --- */

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.step-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 2px;
}

.back-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 14px;
  transition: background 0.15s, color 0.15s;
}

.back-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

/* --- Selected Summary (breadcrumb) --- */

.selected-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.summary-chip .chip-val {
  color: var(--text);
}

/* --- Option List --- */

.option-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s, border-color 0.1s;
}

.option-row:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.option-row:active {
  background: #1a3050;
}

.option-num {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.option-label {
  flex: 1;
}

.option-meta {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 15px;
  margin-left: 8px;
}

/* --- Add Custom --- */

.add-custom-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 16px;
  background: transparent;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.add-custom-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.custom-input-wrap {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.custom-input {
  flex: 1;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 18px;
  outline: none;
}

.custom-input::placeholder {
  color: var(--text-dim);
}

.custom-ok-btn {
  padding: 16px 24px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.custom-ok-btn:hover {
  background: var(--accent-hover);
}

/* --- Review Card --- */

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.review-row:last-child {
  border-bottom: none;
}

.review-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-value {
  font-size: 18px;
  font-weight: 600;
  text-align: right;
}

/* --- Submit Button --- */

.submit-btn {
  display: block;
  width: 100%;
  padding: 20px;
  background: var(--green);
  border: none;
  border-radius: var(--radius-lg);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.15s, transform 0.1s;
}

.submit-btn:hover {
  background: #16a34a;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* --- Done Screen --- */

.done-wrap {
  text-align: center;
  padding-top: 20px;
}

.done-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
  margin-bottom: 20px;
}

.done-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--green);
}

.done-wrap .review-card {
  text-align: left;
}

.call-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid var(--accent);
  border-radius: 28px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  animation: pulse-call 1.5s ease-in-out infinite;
}

.call-banner.success {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
  animation: none;
}

.call-banner.error {
  background: rgba(239, 68, 68, 0.12);
  border-color: #ef4444;
  color: #ef4444;
  animation: none;
}

@keyframes pulse-call {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* --- Help Bar (persistent "Any issues?" call link) --- */

.help-bar {
  padding: 10px 24px;
  text-align: center;
  flex-shrink: 0;
}

.help-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.help-link:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

.help-link svg {
  flex-shrink: 0;
}

.redirect-msg {
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.redirect-msg span {
  font-variant-numeric: tabular-nums;
}

.done-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.edit-btn {
  display: inline-block;
  padding: 18px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.edit-btn:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
}

/* --- Footer --- */

.footer {
  padding: 8px 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  text-align: center;
  flex-shrink: 0;
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* --- Responsive --- */

@media (max-width: 480px) {
  .header {
    padding: 10px 16px;
  }

  .header-facility-seal.has-img {
    display: none;
  }

  .brand-logo.has-img img {
    height: 32px;
  }

  .facility-tag {
    font-size: 11px;
  }

  .step-title {
    font-size: 22px;
  }

  .option-row {
    padding: 16px 16px;
    font-size: 16px;
  }

  .option-num {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}
