/* === Directions Psychologists — Intake System (Warm Theme) === */
:root {
  --bg: #f5f9fa;
  --bg-card: #ffffff;
  --card-border: rgba(28, 186, 197, 0.1);
  --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --accent: #1cbac5;
  --accent-light: #e4f6f8;
  --accent-dark: #0e8a93;
  --accent-grad: linear-gradient(135deg, #1cbac5, #0e8a93);
  --text: #333333;
  --text-sec: #555555;
  --text-muted: #888888;
  --input-bg: #f8fafb;
  --input-border: #d5dee0;
  --input-focus: #1cbac5;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 14px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: clamp(14px, 2.2vw, 17px); -webkit-tap-highlight-color: transparent; }

/* Hide scrollbars but allow touch scroll */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
.consent-text { scrollbar-width: none; -ms-overflow-style: none; }
.consent-text::-webkit-scrollbar { display: none; }
.detail-content { scrollbar-width: none; -ms-overflow-style: none; }
.detail-content::-webkit-scrollbar { display: none; }

body {
  font-family: 'Open Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.65;
}

/* === Soft background accents === */
.bg-glow {
  position: fixed; border-radius: 50%; filter: blur(160px); opacity: 0.08;
  pointer-events: none; z-index: 0;
}
.bg-glow-1 {
  width: 600px; height: 600px; top: -250px; left: -150px;
  background: var(--accent);
  animation: float1 25s ease-in-out infinite;
}
.bg-glow-2 {
  width: 500px; height: 500px; bottom: -200px; right: -100px;
  background: var(--accent-dark);
  animation: float2 30s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 40px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, -30px); }
}

/* === Cards === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}
/* Legacy class alias */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

/* === Animations === */
.animate-in { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-40px); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* =================== */
/*    LANDING PAGE     */
/* =================== */
.landing {
  display: flex; align-items: center; justify-content: center;
  height: 100dvh; padding: 1rem; position: relative; overflow: hidden;
}
.landing-container { position: relative; z-index: 1; width: 100%; max-width: 560px; }
.landing-card {
  padding: clamp(1.5rem, 4dvh, 2.5rem) clamp(1.3rem, 3vw, 2.2rem);
  text-align: center;
}
.logo-area { margin-bottom: clamp(0.5rem, 2dvh, 1.5rem); }
.logo-img {
  display: block; margin: 0 auto clamp(0.4rem, 1.5dvh, 1rem);
  max-width: min(320px, 60vw); width: 100%;
  border-radius: 10px; padding: 8px 12px;
}
.tagline { color: var(--text-sec); font-size: 1rem; margin-top: 0.3rem; }
.divider {
  height: 1px; margin: clamp(0.6rem, 1.5dvh, 1.5rem) 0;
  background: linear-gradient(90deg, transparent, #d5e8ea, transparent);
}
.instructions { color: var(--text-sec); font-size: 0.95rem; margin-bottom: clamp(0.6rem, 1.5dvh, 1.5rem); }

.client-type-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.btn-type {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.5rem; padding: clamp(1rem, 2.5dvh, 1.5rem) 0.8rem;
  border-radius: var(--radius);
  background: var(--input-bg); border: 2px solid var(--input-border);
  text-decoration: none; color: var(--text);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-type:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(28, 186, 197, 0.15);
}
.btn-type-ndis:hover {
  border-color: var(--accent-dark);
  background: var(--accent-light);
}
.btn-type-icon { color: var(--accent); }
.btn-type-ndis .btn-type-icon { color: var(--accent-dark); }
.btn-label { font-weight: 600; font-size: 1.05rem; }
.btn-desc { font-size: 0.78rem; color: var(--text-muted); }

.privacy-note {
  margin-top: 2rem; font-size: 0.75rem; color: var(--text-muted); line-height: 1.6;
}

/* === Success Animation === */
.success-animation { margin-bottom: 1.5rem; }
.checkmark-svg { width: 80px; height: 80px; }
.checkmark-circle {
  stroke: var(--success); stroke-width: 2;
  stroke-dasharray: 157; stroke-dashoffset: 157;
  animation: circleAnim 0.6s 0.2s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark-path {
  stroke: var(--success); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: checkAnim 0.4s 0.7s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
@keyframes circleAnim { to { stroke-dashoffset: 0; } }
@keyframes checkAnim { to { stroke-dashoffset: 0; } }

/* =================== */
/*     FORM PAGE       */
/* =================== */
.form-page {
  min-height: 100dvh; display: flex; flex-direction: column;
  position: relative;
}

/* Progress Bar */
.progress-container {
  position: sticky; top: 0; z-index: 100;
  padding: 0.8rem 1.5rem 0.6rem;
  background: rgba(245, 249, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}
.progress-info {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.4rem;
}
.progress-title { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.progress-count { font-size: 0.8rem; color: var(--text-muted); }
.progress-track {
  width: 100%; height: 5px; background: #e8eef0;
  border-radius: 3px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 3px;
  background: var(--accent-grad);
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Steps */
.form-wrapper {
  flex: 1; padding: 0.8rem 1rem 5.5rem;
  max-width: 720px; margin: 0 auto; width: 100%;
}
.step { display: none; padding: 0.5rem; }
.step.active { display: block; }
.step.exit-left { animation: slideOutLeft 0.3s ease both; }
.step.enter-right { animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
.step.exit-right { animation: slideOutRight 0.3s ease both; }
.step.enter-left { animation: slideInLeft 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }

.step-header {
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem;
}
.step-number {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-grad); color: #fff;
  font-weight: 700; font-size: 0.85rem;
}
.step-header h2 { font-size: 1.25rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.step-desc {
  font-size: 0.88rem; color: var(--text-sec); margin: -0.8rem 0 1.2rem 2.8rem;
}

.step-body .glass-card { padding: clamp(1rem, 2.5vw, 1.4rem); margin-bottom: 0.75rem; }

/* Sub-sections */
.sub-section { margin-bottom: 1.5rem; }
.sub-section:last-child { margin-bottom: 0; }
.sub-section-title {
  font-size: 0.82rem; font-weight: 600; color: var(--accent-dark);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 0.7rem; padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--accent-light);
}

/* Form Groups */
.form-group { margin-bottom: 0.85rem; }
.form-group label {
  display: block; font-size: 0.88rem; font-weight: 500;
  color: var(--text-sec); margin-bottom: 0.25rem;
}
.form-group label .req { color: var(--error); margin-left: 2px; }

.form-row {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.form-row-2 { grid-template-columns: repeat(2, 1fr); }

input[type="text"], input[type="email"], input[type="tel"],
input[type="date"], input[type="number"], input[type="password"],
textarea, select {
  width: 100%; padding: 0.65rem 0.85rem;
  background: var(--input-bg); border: 1px solid var(--input-border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: inherit; font-size: 0.9rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(28, 186, 197, 0.1);
}
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }
input::placeholder, textarea::placeholder { color: #aab5b8; }

/* Radio & Checkbox */
.radio-group, .checkbox-group {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.radio-option, .checkbox-option {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  background: var(--input-bg); border: 1px solid var(--input-border);
  cursor: pointer; font-size: 0.88rem; color: var(--text-sec);
  transition: all 0.2s;
  min-height: 44px; /* Apple HIG touch target */
}
.radio-option:has(input:checked), .checkbox-option:has(input:checked) {
  border-color: var(--accent); background: var(--accent-light);
  color: var(--accent-dark);
}
.radio-option input, .checkbox-option input {
  width: auto; accent-color: var(--accent);
}

/* Dynamic Rows */
.dynamic-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.dynamic-row {
  display: flex; gap: 0.5rem; align-items: flex-start;
  padding: 0.5rem; background: var(--input-bg); border-radius: var(--radius-sm);
  border: 1px solid var(--input-border);
}
.dynamic-row input { flex: 1; }
.btn-remove-row {
  width: 32px; height: 32px; flex-shrink: 0;
  background: rgba(239, 68, 68, 0.06); border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 6px; color: var(--error); cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.btn-remove-row:hover { background: rgba(239, 68, 68, 0.12); }
.btn-add-row {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.5rem 1rem; margin-top: 0.3rem;
  background: none; border: 1px dashed var(--input-border);
  border-radius: var(--radius-sm); color: var(--accent-dark);
  cursor: pointer; font-size: 0.82rem; font-family: inherit;
  transition: all 0.2s;
}
.btn-add-row:hover { border-color: var(--accent); background: var(--accent-light); }

/* Signature Pad */
.signature-area { margin-top: 0.5rem; }
.signature-wrapper {
  position: relative; border: 1px solid var(--input-border);
  border-radius: var(--radius-sm); overflow: hidden;
  background: #fff;
}
.signature-pad {
  width: 100%; height: 150px; display: block;
  cursor: crosshair; touch-action: none;
}
.btn-clear-sig {
  position: absolute; top: 8px; right: 8px; z-index: 10;
  padding: 0.4rem 0.9rem; font-size: 0.8rem;
  background: #fff; border: 1px solid var(--input-border);
  border-radius: 6px; color: var(--text-muted); cursor: pointer;
  font-family: inherit; transition: all 0.2s;
  touch-action: manipulation;
}
.btn-clear-sig:hover, .btn-clear-sig:active { background: #f0f0f0; color: var(--text); }

/* Consent Text */
.consent-text {
  padding: 1rem 1.2rem; background: #fafefe;
  border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  font-size: 0.88rem; color: var(--text-sec); line-height: 1.7;
  margin-bottom: 1rem;
}
.consent-text h3 { color: var(--text); margin-bottom: 0.5rem; font-size: 1rem; }
.consent-text p { margin-bottom: 0.5rem; }

/* Fee Schedule Table */
.fee-table {
  width: 100%; border-collapse: collapse; font-size: 0.87rem; margin-bottom: 1rem;
}
.fee-table td {
  padding: 0.55rem 0.75rem; border-bottom: 1px solid #eef2f3;
}
.fee-table td:last-child { text-align: right; font-weight: 600; color: var(--accent-dark); }
.fee-table tr:hover { background: var(--accent-light); }
.fee-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.5rem; }

/* Report reminder callout */
/* Same-as checkbox */
.same-as {
  font-size: 0.82rem !important; padding: 0.4rem 0.7rem !important;
  min-height: auto !important; display: inline-flex !important;
  background: var(--accent-light) !important; border-color: transparent !important;
  color: var(--accent-dark) !important;
}

.report-reminder {
  margin-top: 0.6rem; padding: 0.7rem 1rem;
  background: var(--accent-light); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.84rem; color: var(--accent-dark); line-height: 1.5;
}

/* Review Summary */
.review-section { margin-bottom: 1rem; }
.review-section h3 {
  font-size: 0.85rem; font-weight: 600; color: var(--accent-dark);
  margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.review-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 1rem;
  font-size: 0.84rem;
}
.review-label { color: var(--text-muted); }
.review-value { color: var(--text); }

/* Conditional Section Toggle */
.conditional-toggle { margin-bottom: 1rem; }
.conditional-content {
  display: none; margin-top: 0.75rem;
  padding: 1rem; background: var(--input-bg);
  border: 1px solid var(--input-border); border-radius: var(--radius-sm);
}
.conditional-content.visible { display: block; animation: fadeInUp 0.3s ease both; }

/* Navigation — hidden until user scrolls to bottom */
.form-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.8rem 1.5rem;
  background: rgba(245, 249, 250, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--card-border);
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.form-nav.visible {
  transform: translateY(0);
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.8rem; border: none; border-radius: var(--radius-sm);
  background: var(--accent-grad); color: #fff;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(28, 186, 197, 0.25);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none;
}

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.8rem; border: 1px solid var(--input-border);
  border-radius: var(--radius-sm); background: #fff;
  color: var(--text-sec); font-family: inherit; font-size: 0.9rem;
  font-weight: 500; cursor: pointer; text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--accent); color: var(--accent-dark);
  background: var(--accent-light);
}

.btn-sm {
  padding: 0.35rem 0.75rem; font-size: 0.78rem; font-family: inherit;
  border: 1px solid var(--input-border); border-radius: 6px;
  background: #fff; color: var(--text-sec);
  cursor: pointer; transition: all 0.2s;
}
.btn-sm:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-accent { border-color: rgba(28,186,197,0.25); color: var(--accent-dark); }
.btn-accent:hover { background: var(--accent-light); }

/* =================== */
/*   ADMIN DASHBOARD   */
/* =================== */
.admin-body { padding: 1.5rem; max-width: 1200px; margin: 0 auto; }
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
}
.admin-header h1 {
  font-size: 1.35rem; font-weight: 700; color: var(--text);
}

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.stat-card { padding: 1.2rem; text-align: center; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }
.stat-success .stat-value { color: var(--success); }
.stat-warning .stat-value { color: var(--warning); }

.filters-bar {
  display: flex; gap: 0.75rem; padding: 1rem; margin-bottom: 1rem;
  flex-wrap: wrap;
}
.filter-input {
  flex: 1; min-width: 200px; padding: 0.6rem 0.9rem;
  background: var(--input-bg); border: 1px solid var(--input-border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: inherit; font-size: 0.85rem; outline: none;
}
.filter-input:focus { border-color: var(--input-focus); }
.filter-select {
  padding: 0.6rem 0.9rem; background: var(--input-bg);
  border: 1px solid var(--input-border); border-radius: var(--radius-sm);
  color: var(--text); font-family: inherit; font-size: 0.85rem;
  cursor: pointer; outline: none;
}

.table-container { padding: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
thead th {
  padding: 0.75rem 1rem; text-align: left; font-weight: 600;
  color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.04em; border-bottom: 2px solid #eef2f3;
}
tbody td {
  padding: 0.75rem 1rem; border-bottom: 1px solid #f0f4f5;
}
tbody tr:hover { background: var(--accent-light); }
.row-incomplete { border-left: 3px solid var(--warning); }
.actions-cell { white-space: nowrap; display: flex; gap: 0.4rem; }

/* Badges */
.badge {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-standard { background: var(--accent-light); color: var(--accent-dark); }
.badge-ndis { background: #eee8f9; color: #6b3fa0; }
.badge-complete { background: #e6f9f1; color: #0d7a50; }
.badge-incomplete { background: #fef3cd; color: #9a6700; }
.badge-minor { background: #fef3cd; color: #9a6700; font-size: 0.65rem; }
.missing-count { font-size: 0.7rem; color: var(--warning); margin-left: 0.3rem; }
.report-badge {
  display: block; font-size: 0.68rem; color: #0e8a93; margin-top: 0.2rem;
  background: var(--accent-light); padding: 0.1rem 0.4rem; border-radius: 3px;
}
.detail-report { border-left: 3px solid var(--accent); }
.detail-report h3 { color: var(--accent-dark) !important; }
.detail-report ul { list-style: none; padding: 0; font-size: 0.82rem; color: var(--accent-dark); }
.detail-report li::before { content: '📋 '; }

.empty-state { padding: 3rem; text-align: center; color: var(--text-muted); }

.pagination {
  display: flex; justify-content: center; gap: 0.3rem; padding: 1rem;
}
.btn-page {
  width: 32px; height: 32px; border-radius: 6px;
  background: #fff; border: 1px solid var(--input-border);
  color: var(--text-sec); cursor: pointer; font-family: inherit; font-size: 0.8rem;
  transition: all 0.2s;
}
.btn-page.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Modals */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-card { padding: 2rem; width: 100%; max-width: 420px; }
.modal-large { max-width: 700px; max-height: 85vh; display: flex; flex-direction: column; }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.modal-header h2 { font-size: 1.1rem; }
.btn-close {
  width: 32px; height: 32px; background: none; border: none;
  color: var(--text-muted); font-size: 1.5rem; cursor: pointer;
  transition: color 0.2s;
}
.btn-close:hover { color: var(--text); }
.detail-content { flex: 1; overflow-y: auto; margin-bottom: 1rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }

.detail-grid { display: flex; flex-direction: column; gap: 1rem; }
.detail-section { padding: 0.75rem; background: var(--input-bg); border-radius: var(--radius-sm); }
.detail-section h3 {
  font-size: 0.8rem; font-weight: 600; color: var(--accent-dark);
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.detail-warning { border-left: 3px solid var(--warning); }
.detail-warning h3 { color: #9a6700; }
.detail-warning ul { list-style: none; padding: 0; font-size: 0.82rem; color: #9a6700; }
.detail-warning li::before { content: '! '; font-weight: 700; }
.detail-table { width: 100%; font-size: 0.82rem; }
.detail-table td { padding: 0.25rem 0; vertical-align: top; }
.detail-label { color: var(--text-muted); width: 120px; padding-right: 0.5rem; }
.error-text { color: var(--error); font-size: 0.82rem; margin-top: 0.5rem; }

/* Loading Spinner */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =================== */
/*    RESPONSIVE       */
/* =================== */
@media (max-width: 420px) {
  .client-type-buttons { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .landing-card { padding: 1.5rem 1.2rem; }
  .form-row-3 { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .step-header h2 { font-size: 1.05rem; }
  .dynamic-row { flex-wrap: wrap; }
  .dynamic-row input { min-width: 100px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filters-bar { flex-direction: column; }
  .modal-large { max-height: 95vh; }
  .form-nav { padding: 0.6rem 1rem; }
}
@media (min-width: 768px) {
  .form-wrapper { padding: 1.5rem 2rem 6rem; }
}
/* Tablet landscape */
@media (min-width: 768px) and (max-height: 600px) {
  .landing-card { padding: 1.2rem 2rem; }
  .logo-img { max-width: 240px; }
  .form-wrapper { padding: 0.5rem 2rem 5rem; }
}
