/* ==========================================================
   Schengen Travel Information Form — stylesheet
   Design language: official EU government-portal aesthetic,
   inspired by home-affairs.ec.europa.eu (EU blue, gold accent,
   Calibri typography, top identity bar with EU + EES badges).
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Carlito:wght@400;700&display=swap');

:root {
  --eu-blue: #003399;
  --eu-blue-dark: #002266;
  --eu-gold: #FFCC00;
  --ink: #14213D;
  --ink-soft: #003399;
  --paper: #EEF1F7;
  --card: #FFFFFF;
  --brass: #A8790A;      /* accent for icons/borders — darker gold, readable on white */
  --brass-soft: #FFF3C4;
  --hairline: #D7DCE5;
  --muted: #5B6472;
  --error: #B00020;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Calibri', 'Carlito', 'Segoe UI', Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* -- Top identity bar: EU + EES badges -- */
.gov-bar {
  background: var(--eu-blue);
  color: #fff;
}
.gov-bar-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.logo-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.eu-stars {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.logo-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.35);
}
.ees-icon {
  font-weight: 700;
  font-size: 12.5px;
  background: var(--eu-gold);
  color: var(--eu-blue-dark);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.gov-bar-text {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* -- Header -- */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

h1 {
  font-weight: 700;
  font-size: 25px;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.subheading {
  color: var(--muted);
  font-size: 14.5px;
  margin: 6px 0 0;
  max-width: 54ch;
}

/* -- Language switcher -- */
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-switch a {
  display: block;
  padding: 6px 11px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.lang-switch a.active {
  background: var(--eu-blue);
  color: #fff;
}

/* -- Card / sections -- */
.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20, 33, 61, 0.05);
}

fieldset {
  border: none;
  margin: 0;
  padding: 28px 28px 8px;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}

.step-number {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--eu-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

legend, .step-title {
  font-weight: 700;
  font-size: 17.5px;
  color: var(--ink);
  padding: 0;
}

.step-hint {
  color: var(--muted);
  font-size: 13.5px;
  margin: -12px 0 18px 39px;
}

/* -- Divider between sections -- */
.stub-divider {
  height: 0;
  border-top: 1px solid var(--hairline);
  margin: 4px 28px;
}

/* -- Fields -- */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13.5px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

/* Labels in a 3-column row can wrap to different line counts
   (e.g. "Entry flight number, car licence plate, vessel number"
   vs "Entry date"). Reserve 2 lines of height for all of them so
   the inputs underneath stay aligned across columns. */
.three-col .field label {
  min-height: 2.7em;
}
@media (max-width: 560px) {
  .three-col .field label {
    min-height: 0;
  }
}

.field .req {
  color: var(--error);
  font-weight: 700;
}

.field input[type="text"],
.field input[type="date"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 3px solid var(--brass-soft);
  outline-offset: 1px;
  border-color: var(--eu-blue);
}

.field textarea { min-height: 78px; resize: vertical; }

.field-hint {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 5px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
}

/* -- Companion rows -- */
.companion-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  border: 1px dashed var(--hairline);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}
@media (max-width: 560px) {
  .companion-row { grid-template-columns: 1fr; }
}

.btn-remove {
  background: none;
  border: 1px solid var(--hairline);
  color: var(--error);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-add {
  background: none;
  border: 1.5px dashed var(--eu-blue);
  color: var(--eu-blue);
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

/* -- File upload -- */
.file-drop {
  border: 1.5px dashed var(--hairline);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  background: #FAFBFD;
}
.file-drop input[type=file] { display: none; }
.file-drop label {
  display: inline-block;
  background: var(--eu-blue);
  color: #fff;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 0 8px;
}
.file-name {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

/* -- Consent + submit -- */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--paper);
  border-radius: 8px;
  padding: 14px;
  margin: 16px 28px 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.consent input { margin-top: 3px; flex-shrink: 0; }
.consent:first-of-type { margin-top: 22px; }

.actions {
  padding: 22px 28px 28px;
}

.btn-submit {
  width: 100%;
  background: var(--eu-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 20px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn-submit:hover { background: var(--eu-blue-dark); }

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 20px;
}

.error-banner {
  background: #FBEAEA;
  border: 1px solid var(--error);
  color: var(--error);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 18px;
}

/* -- Thank you state -- */
.thankyou {
  text-align: center;
  padding: 60px 28px;
}
.thankyou .seal {
  width: 60px; height: 60px;
  background: var(--eu-blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--eu-gold);
  font-size: 26px;
}
.thankyou h1 { margin-bottom: 8px; }
.thankyou p { color: var(--muted); }
.thankyou a {
  display: inline-block;
  margin-top: 22px;
  color: var(--eu-blue);
  font-weight: 700;
  font-size: 14px;
}

/* honeypot field — hidden from real users, bots often fill it */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .card { animation: fade-up 0.4s ease both; }
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
}
