/* =====================================================================
   Eltayar Voyages — visa page styles
   Depends on tokens defined in styles.css
   (--ink, --ink-deep, --cloud, --sand, --sage, --ember, --hairline, --radius, --font).
   ===================================================================== */

/* ---------- intro band (dark, matches .about) ---------- */
.visa-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: clamp(56px, 8vw, 96px) clamp(32px, 5vw, 48px);
}
.visa-hero h1 { margin-top: 14px; font-size: clamp(28px, 4vw, 48px); }
.visa-hero p {
  margin-top: 16px;
  max-width: 620px;
  color: var(--sage);
  font-size: clamp(14.5px, 1.5vw, 17px);
  line-height: 1.85;
}

/* ---------- workspace (light, matches .services) ---------- */
.visa-workspace {
  background: var(--cloud);
  color: var(--ink);
  padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 112px);
}

.visa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 8px;
}
@media (min-width: 900px) {
  .visa-grid { grid-template-columns: 0.95fr 1.15fr; align-items: start; }
}

.visa-card {
  background: #fff;
  border: 1px solid rgba(11, 31, 42, 0.12);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}

.visa-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 14px;
}
.visa-step::before {
  content: "";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--sand);
}

.visa-card h2 { font-size: 20px; font-weight: 700; margin: 0 0 8px; }
.visa-card > p.hint {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: rgba(11, 31, 42, .6);
  line-height: 1.6;
}

/* ---------- dropzone ---------- */
.dropzone {
  border: 1.5px dashed rgba(11, 31, 42, 0.22);
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  background: #fbf8f3;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--sand);
  background: #fdf3e3;
}
.dropzone .icon-circle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border: 1px solid var(--sand);
  border-radius: 50%;
  color: var(--ember);
}
.dropzone .icon-circle svg { width: 20px; height: 20px; }
.dropzone .cta { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.dropzone .sub { font-size: 12.5px; color: rgba(11, 31, 42, .55); margin-top: 4px; }
input[type=file] { display: none; }

.preview-wrap { margin-top: 18px; display: none; }
.preview-wrap.show { display: block; }
.preview-wrap img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(11, 31, 42, 0.12);
  display: block;
}

.status-row {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(11, 31, 42, .65);
  min-height: 18px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(11,31,42,.2); flex: none; }
.dot.busy { background: var(--sand); animation: visa-pulse 1s infinite ease-in-out; }
.dot.ok { background: #2f9e5c; }
.dot.err { background: var(--ember); }
@keyframes visa-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.progress {
  height: 3px;
  background: rgba(11, 31, 42, .1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
  display: none;
}
.progress.show { display: block; }
.progress > div { height: 100%; width: 0%; background: var(--sand); transition: width .2s ease; }

details.raw { margin-top: 16px; font-size: 12.5px; }
details.raw summary {
  cursor: pointer;
  color: rgba(11, 31, 42, .55);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
details.raw pre {
  background: var(--ink);
  color: #cfe0e6;
  padding: 12px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 12px;
  margin-top: 8px;
  white-space: pre-wrap;
}

.reset-link {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: rgba(11, 31, 42, .55);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-top: 14px;
  display: none;
}

/* ---------- form ---------- */
fieldset { border: none; padding: 0; margin: 0 0 24px; }
legend {
  width: 100%;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 0 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(11, 31, 42, 0.12);
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }

.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(11, 31, 42, .75);
  margin-bottom: 5px;
}
.field label .auto-tag {
  font-weight: 700;
  font-size: 9.5px;
  color: var(--ember);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-inline-start: 6px;
}

input[type=text], input[type=date], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(11, 31, 42, 0.18);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  background: #fbf8f3;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--sand);
  outline-offset: 1px;
  background: #fff;
}
input.filled, select.filled {
  background: #fdf3e3;
  border-color: var(--sand);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--ink);
  color: var(--cloud);
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn-submit:hover { background: var(--ember); transform: translateY(-2px); }

.footnote {
  font-size: 11.5px;
  color: rgba(11, 31, 42, .5);
  margin-top: 12px;
  text-align: center;
}

.visa-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--cloud);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 200;
}
.visa-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ---------- section notes / required markers ---------- */
.section-note {
  font-size: 11.5px;
  color: rgba(11, 31, 42, .5);
  background: #fbf3e3;
  border: 1px dashed var(--sand);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 16px;
  line-height: 1.5;
}
.req-mark { color: var(--ember); margin-inline-start: 3px; }
.field-note { font-size: 11px; color: rgba(11, 31, 42, .5); margin: 5px 0 0; line-height: 1.5; }
.bi-label { display: block; }
.bi-label .ar { direction: rtl; unicode-bidi: isolate; color: rgba(11,31,42,.5); font-size: 11.5px; margin-inline-start: 4px; }

/* ---------- conditional fields ---------- */
.conditional { display: none; margin-top: 10px; }
.conditional.is-active { display: block; }

/* ---------- radio row ---------- */
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.radio-row input[type=radio] { accent-color: var(--sand); width: 16px; height: 16px; }

/* ---------- checkbox group ---------- */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
@media (max-width: 480px) { .checkbox-grid { grid-template-columns: 1fr; } }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.checkbox-item input[type=checkbox] { accent-color: var(--sand); width: 16px; height: 16px; }

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  margin-bottom: 6px;
}
.checkbox-line input[type=checkbox] { accent-color: var(--sand); width: 16px; height: 16px; }

/* ---------- repeatable groups (visas antérieurs / enfants) ---------- */
.repeat-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.repeat-item {
  border: 1px solid rgba(11, 31, 42, 0.12);
  border-radius: 12px;
  padding: 14px 14px 4px;
  background: #fbf8f3;
  position: relative;
}
.repeat-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.repeat-item-head span {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(11, 31, 42, .5);
}
.btn-remove {
  background: none;
  border: none;
  color: var(--ember);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}
.btn-remove:hover { text-decoration: underline; }

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px dashed var(--sand);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  margin-bottom: 22px;
}
.btn-add:hover { background: #fdf3e3; }


/* ---------- validation & busy states (added in cleanup) ---------- */
input:invalid, select:invalid, textarea:invalid {
  box-shadow: none; /* don't rely on the browser's default red outline */
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--ember);
  background: #fdf1ea;
}
.field-error {
  display: none;
  margin-top: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ember);
}
.field-error.show { display: block; }

.btn-submit[disabled] {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}
.btn-submit[disabled]:hover { background: var(--ink); transform: none; }
