/* SITI LOGISTICS — RFQ Form v1.0 */
:root {
  --navy:   #002F59;
  --blue:   #0084BB;
  --orange: #F37322;
  --lblue:  #EBF7FF;
  --white:  #FFFFFF;
  --gray:   #F5F7FA;
  --border: #C5DCF0;
  --text:   #2C3E50;
  --muted:  #7F8C8D;
  --ok:     #27AE60;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(0,47,89,.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #EEF4FA; color: var(--text); min-height: 100vh; }

/* ── HEADER ─────────────────────────────────────────────── */
header {
  background: var(--navy);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid var(--orange);
}
header img { height: 52px; }
header .title { color: var(--white); text-align: right; }
header .title h1 { font-size: 1.15rem; font-weight: 700; letter-spacing: .5px; }
header .title p  { font-size: .78rem; color: #9ECFE8; margin-top: 2px; }

/* ── CONTAINER ──────────────────────────────────────────── */
.container { max-width: 820px; margin: 32px auto 48px; padding: 0 16px; }

/* ── PROGRESS BAR ───────────────────────────────────────── */
.progress-wrap { background: var(--white); border-radius: var(--radius); padding: 20px 24px 0; box-shadow: var(--shadow); margin-bottom: 0; }
.steps { display: flex; justify-content: space-between; position: relative; margin-bottom: 0; }
.steps::before {
  content: '';
  position: absolute;
  top: 16px; left: 10%; right: 10%;
  height: 2px; background: var(--border); z-index: 0;
}
.step-item { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; flex: 1; }
.step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: var(--muted);
  transition: all .3s;
}
.step-label { font-size: .7rem; color: var(--muted); margin-top: 6px; text-align: center; font-weight: 500; white-space: nowrap; }
.step-item.active   .step-dot { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: 0 0 0 4px rgba(0,132,187,.18); }
.step-item.done     .step-dot { background: var(--ok);   border-color: var(--ok);   color: var(--white); }
.step-item.active   .step-label { color: var(--blue); font-weight: 700; }
.step-item.done     .step-label { color: var(--ok); }

.progress-bar-line { height: 4px; background: var(--lblue); border-radius: 0; margin-top: 16px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--orange)); transition: width .4s ease; }

/* ── CARD ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 32px 24px;
}
.section-title {
  font-size: 1rem; font-weight: 700; color: var(--navy);
  border-left: 4px solid var(--orange);
  padding-left: 12px; margin-bottom: 24px;
}
.section-subtitle { font-size: .8rem; color: var(--muted); margin-top: -18px; margin-bottom: 20px; padding-left: 16px; }

/* ── FORM STEPS ─────────────────────────────────────────── */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── GRID ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.span-2 { grid-column: span 2; }

/* ── FIELDS ─────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; }
.field label { font-size: .8rem; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.field label .req { color: var(--orange); margin-left: 2px; }
.field label .opt { color: var(--muted); font-weight: 400; font-size: .72rem; margin-left: 4px; }

.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: .88rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,132,187,.12);
}
.field input.error,
.field select.error { border-color: #E74C3C; box-shadow: 0 0 0 3px rgba(231,76,60,.1); }
.field .err-msg { font-size: .75rem; color: #E74C3C; margin-top: 4px; display: none; }
.field.has-error .err-msg { display: block; }

.field textarea { resize: vertical; min-height: 100px; }
.field select { cursor: pointer; appearance: auto; }

/* conditional block */
.conditional { display: none; }
.conditional.visible { display: contents; }

/* ── FILE UPLOAD ─────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--gray);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--blue); background: var(--lblue); }
.upload-zone .icon { font-size: 2rem; margin-bottom: 8px; }
.upload-zone p { font-size: .85rem; color: var(--muted); }
.upload-zone strong { color: var(--blue); }
.upload-zone input[type=file] { display: none; }
.file-list { margin-top: 12px; }
.file-item { display: flex; align-items: center; justify-content: space-between; background: var(--lblue); border-radius: 5px; padding: 7px 12px; margin-top: 6px; font-size: .8rem; }
.file-item .remove-file { cursor: pointer; color: #E74C3C; font-weight: 700; background: none; border: none; font-size: 1rem; padding: 0 4px; }

/* ── NAVIGATION ─────────────────────────────────────────── */
.nav-btns { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn {
  padding: 11px 28px; border-radius: 6px; font-size: .9rem;
  font-weight: 600; cursor: pointer; border: none; transition: all .2s;
}
.btn-prev { background: var(--white); color: var(--navy); border: 1.5px solid var(--border); }
.btn-prev:hover { border-color: var(--navy); }
.btn-next { background: var(--blue); color: var(--white); }
.btn-next:hover { background: #006fa0; }
.btn-submit { background: var(--orange); color: var(--white); }
.btn-submit:hover { background: #d9621a; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.step-counter { font-size: .78rem; color: var(--muted); }

/* ── INFO BOX ───────────────────────────────────────────── */
.info-box { background: var(--lblue); border-left: 3px solid var(--blue); border-radius: 6px; padding: 12px 16px; font-size: .82rem; color: var(--navy); margin-bottom: 20px; line-height: 1.5; }
.info-box strong { color: var(--blue); }

/* ── SUCCESS PAGE ───────────────────────────────────────── */
.success-card { text-align: center; padding: 48px 32px; }
.success-card .checkmark { font-size: 4rem; margin-bottom: 16px; }
.success-card h2 { color: var(--navy); font-size: 1.5rem; margin-bottom: 12px; }
.success-card p  { color: var(--muted); line-height: 1.6; }
.success-card .ref { background: var(--lblue); border-radius: var(--radius); padding: 16px; margin: 24px 0; font-weight: 700; color: var(--blue); font-size: 1.1rem; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer { text-align: center; font-size: .75rem; color: var(--muted); padding: 16px; }
footer a { color: var(--blue); text-decoration: none; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 600px) {
  header { padding: 14px 16px; }
  header img { height: 38px; }
  header .title h1 { font-size: .95rem; }
  .card { padding: 20px 16px 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .step-label { display: none; }
  .progress-wrap { padding: 16px 16px 0; }
}
