/* Passport Renewal Reminder Planner — styles.css */
:root {
  --navy: #1B3A5C;
  --navy-light: #2A5080;
  --navy-dark: #0F2338;
  --gold: #E8B960;
  --gold-light: #F5D98A;
  --coral: #E05A3A;
  --coral-light: #F08060;
  --sky: #EEF2F7;
  --sky-mid: #D0DCE8;
  --text: #1A1A2E;
  --text-muted: #5A6B7F;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(27, 58, 92, 0.10);
  --shadow-lg: 0 8px 32px rgba(27, 58, 92, 0.14);
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1120px;
  --transition: 0.2s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--sky);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--navy-light); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--coral); }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 100;
  background: var(--navy); color: var(--white);
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.logo:hover, .logo:focus { color: var(--gold-light); }
.logo-icon { flex-shrink: 0; }
.logo-text { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 20px; }
.site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.site-nav a:hover, .site-nav a:focus { color: var(--gold); border-bottom-color: var(--gold); }

/* Intro */
.intro { padding: 40px 0 24px; text-align: center; max-width: 680px; margin: 0 auto; }
.intro h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 12px;
}
.lead { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; }

/* Planner shell */
.planner-shell { padding-bottom: 48px; }
.planner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 860px) {
  .planner-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .planner-output { position: sticky; top: 80px; }
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

/* Forms */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label, legend {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
legend { margin-bottom: 8px; }
input[type="text"],
input[type="date"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--sky-mid);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(42, 80, 128, 0.15);
}
.field-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.radio-group, .checkbox-group { border: none; padding: 0; }
.radio, .checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.9rem;
  cursor: pointer;
}
.radio input, .checkbox input {
  width: 18px; height: 18px;
  accent-color: var(--navy);
}

/* Buttons */
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--navy-light);
  border-color: var(--navy-light);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--sky-mid);
}
.btn-ghost:hover, .btn-ghost:focus {
  background: var(--sky);
  border-color: var(--navy-light);
}
.btn-danger-subtle { color: var(--coral); }
.btn-danger-subtle:hover { background: #FFF0EC; border-color: var(--coral); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }

/* Output */
.planner-output .output-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.planner-output .output-empty svg { margin-bottom: 16px; }
.output-result { padding: 8px 0; }
.plan-header {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.plan-person { font-size: 1.15rem; font-weight: 700; }
.plan-country { font-size: 0.85rem; opacity: 0.8; margin-top: 2px; }
.plan-status {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}
.status-valid { background: #2D8A4E; }
.status-warning { background: var(--gold); color: var(--navy-dark); }
.status-expired { background: var(--coral); }
.status-urgent { background: #B02020; }

/* Timeline */
.timeline { margin-bottom: 20px; }
.timeline h4, .checklist h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.timeline-list { list-style: none; }
.timeline-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sky);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.dot-green { background: #2D8A4E; }
.dot-gold { background: var(--gold); }
.dot-coral { background: var(--coral); }
.dot-gray { background: var(--sky-mid); }
.timeline-date { font-weight: 700; font-size: 0.85rem; color: var(--navy); min-width: 110px; }
.timeline-label { font-size: 0.88rem; color: var(--text); }

/* Checklist */
.checklist-list { list-style: none; }
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--sky);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--navy);
}
.checklist-item.done label { text-decoration: line-through; color: var(--text-muted); }

/* Output actions */
.output-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.save-notice {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #2D8A4E;
  font-weight: 600;
}

/* Supporting content */
.supporting { padding: 40px 0 60px; }
.supporting h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 28px;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .guide-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .guide-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.guide-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}
.guide-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.guide-card p, .guide-card li, .guide-card dd {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.guide-card ul { padding-left: 18px; }
.guide-card li { margin-bottom: 6px; }
.guide-card dl { display: grid; gap: 10px; }
.guide-card dt { font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.guide-card dd { margin: 0; }

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 28px 0;
  font-size: 0.82rem;
}
.footer-inner { text-align: center; }
.footer-note a { color: var(--gold); }
.footer-nav { display: flex; justify-content: center; gap: 16px; margin: 10px 0; }
.footer-nav a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-nav a:hover, .footer-nav a:focus { color: var(--gold); text-decoration: underline; }
.footer-legal { margin-top: 8px; font-size: 0.78rem; opacity: 0.6; }

/* Print */
@media print {
  .site-header, .site-footer, .planner-inputs, .output-actions, .form-actions, .skip-link { display: none !important; }
  body { background: white; color: black; }
  .planner-shell { padding: 0; }
  .planner-grid { display: block; }
  .plan-header { background: #f0f0f0; color: black; border: 1px solid #ccc; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  .supporting { page-break-before: always; }
}

/* Focus visible */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
