/* ============================================================
   MEILS – QUOTE / FORM PAGES
============================================================ */

/* ─── PAGE HERO ─── */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-light) 100%);
}
.page-hero-sea {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-mid) 60%, var(--teal-light) 100%);
}
.page-hero-air {
  background: linear-gradient(135deg, #0b2a3d 0%, #0f4a6e 60%, #1a6fa0 100%);
  padding: calc(var(--nav-h) + 48px) 80px 56px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.page-hero-sea {
  background: linear-gradient(135deg, #0a3a4d 0%, #0d5580 60%, #156ba0 100%);
  padding: calc(var(--nav-h) + 48px) 80px 56px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(62,201,110,.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: #fff; margin: 12px 0 10px;
}
.page-hero p { font-size: .95rem; color: rgba(255,255,255,.75); max-width: 480px; line-height: 1.6; }
.page-hero-icon {
  font-size: 7rem; color: rgba(255,255,255,.08);
  position: relative; z-index: 1;
  line-height: 1;
}

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 4px;
}
.breadcrumb a { color: var(--green-bright); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .fa-chevron-right { font-size: .6rem; }

/* ─── MAIN LAYOUT ─── */
.quote-main { background: var(--gray-bg); padding: 48px 24px 80px; }
.quote-container { max-width: 860px; margin: 0 auto; }

/* ─── PROGRESS BAR ─── */
.form-progress {
  display: flex; align-items: center;
  background: #fff; border-radius: var(--radius);
  padding: 20px 32px; margin-bottom: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--gray-border);
  overflow-x: auto;
}
.fp-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.fp-dot {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--gray-border);
  background: #fff; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  transition: all .3s;
}
.fp-step p { font-size: .72rem; color: var(--text-muted); white-space: nowrap; font-weight: 500; }
.fp-step.active .fp-dot  { background: var(--teal-mid); border-color: var(--teal-mid); color: #fff; box-shadow: 0 0 0 4px rgba(15,94,94,.18); }
.fp-step.active p        { color: var(--teal-mid); font-weight: 600; }
.fp-step.done   .fp-dot  { background: var(--green); border-color: var(--green); color: #fff; }
.fp-line { flex: 1; height: 2px; background: var(--gray-border); min-width: 24px; margin-bottom: 20px; transition: background .3s; }
.fp-line.done { background: var(--green); }

/* ─── FORM SECTION ─── */
.form-section {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  padding: 32px; margin-bottom: 20px;
  box-shadow: var(--shadow);
  animation: fadeSlideIn .3s ease;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-section-header {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 28px; padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-border);
}
.fsh-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(15,94,94,.1); color: var(--teal-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 800; flex-shrink: 0;
}
.form-section-header h2 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 10px; }
.form-section-header p  { font-size: .82rem; color: var(--text-muted); margin-top: 3px; }

/* Badges */
.badge-fcl, .badge-lcl, .badge-bulk {
  font-size: .68rem; font-weight: 700; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase;
}
.badge-fcl  { background: rgba(15,94,94,.1);  color: var(--teal-mid);  }
.badge-lcl  { background: rgba(46,158,79,.1); color: var(--green);     }
.badge-bulk { background: rgba(245,130,32,.1);color: #f58220;          }

/* ─── MODE CARDS ─── */
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.mode-card {
  border: 2px solid var(--gray-border); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.mode-card:hover { border-color: var(--teal-light); transform: translateY(-2px); box-shadow: var(--shadow); }
.mode-card.selected {
  border-color: var(--teal-mid);
  background: rgba(15,94,94,.04);
  box-shadow: 0 0 0 3px rgba(15,94,94,.12);
}
.mode-card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(15,94,94,.08); color: var(--teal-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; transition: background .2s;
}
.mode-card.selected .mode-card-icon { background: var(--teal-mid); color: #fff; }
.mode-card strong { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.mode-card span   { font-size: .75rem; color: var(--text-muted); }

/* ─── FORM CONTROLS ─── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .8rem; font-weight: 600; color: var(--text-dark); }
.req { color: #e53935; }

.form-input, .form-select, .form-textarea {
  border: 1.5px solid var(--gray-border); border-radius: 8px;
  padding: 11px 14px; font-size: .88rem;
  color: var(--text-dark); font-family: inherit;
  outline: none; background: #fff; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(15,94,94,.1);
}
.form-input.error, .form-select.error { border-color: #e53935; }
.form-textarea { resize: vertical; min-height: 90px; }

.select-wrap { position: relative; }
.select-wrap .form-select { padding-right: 36px; appearance: none; cursor: pointer; }
.select-arrow {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: .75rem; pointer-events: none;
}

.inco-fields { margin-top: 16px; }

/* ─── DG / DANGEROUS GOODS ─── */
.dg-section { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--gray-border); }

.dg-alert {
  display: flex; align-items: flex-start; gap: 14px;
  background: rgba(245,130,32,.08); border: 1px solid rgba(245,130,32,.3);
  border-radius: 10px; padding: 16px; margin-bottom: 20px;
}
.dg-alert > i { font-size: 1.4rem; color: #f58220; flex-shrink: 0; margin-top: 2px; }
.dg-alert strong { font-size: .88rem; color: var(--text-dark); display: block; margin-bottom: 4px; }
.dg-alert p { font-size: .78rem; color: var(--text-muted); }

/* Upload area */
.upload-area {
  border: 2px dashed var(--gray-border); border-radius: var(--radius);
  position: relative; cursor: pointer; transition: border-color .2s, background .2s;
  min-height: 110px; display: flex; align-items: center; justify-content: center;
}
.upload-area:hover { border-color: var(--teal-mid); background: rgba(15,94,94,.02); }
.upload-area.drag-over { border-color: var(--teal-mid); background: rgba(15,94,94,.05); }
.file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-placeholder { text-align: center; padding: 20px; pointer-events: none; }
.upload-placeholder .fa-cloud-arrow-up { font-size: 2rem; color: var(--teal-light); margin-bottom: 8px; }
.upload-placeholder p { font-size: .84rem; color: var(--text-dark); margin-bottom: 4px; }
.upload-placeholder span { font-size: .72rem; color: var(--text-muted); }

.upload-preview {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; width: 100%; pointer-events: none;
}
.upload-preview .fa-file-check { font-size: 1.5rem; color: var(--green); }
.upload-preview span { font-size: .85rem; color: var(--text-dark); flex: 1; }
.remove-file {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(229,57,53,.1); color: #e53935;
  display: flex; align-items: center; justify-content: center;
  pointer-events: all; flex-shrink: 0;
  transition: background .2s;
}
.remove-file:hover { background: rgba(229,57,53,.2); }

/* MSDS fallback */
.msds-fallback { margin-top: 14px; }
.checkbox-label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: .84rem; color: var(--text-dark);
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-custom {
  width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0;
  border: 2px solid var(--gray-border); background: #fff;
  transition: background .2s, border-color .2s;
  position: relative;
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--teal-mid); border-color: var(--teal-mid);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: .65rem; color: #fff;
}
.msds-notice {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(15,94,94,.06); border: 1px solid rgba(15,94,94,.2);
  border-radius: 8px; padding: 12px 14px; margin-top: 10px;
  font-size: .8rem; color: var(--text-dark);
}
.msds-notice .fa-circle-info { color: var(--teal-mid); flex-shrink: 0; margin-top: 1px; }

/* ─── FCL CONTAINER ROWS ─── */
.container-row {
  border: 1.5px solid var(--gray-border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 14px; position: relative;
  transition: border-color .2s;
  animation: fadeSlideIn .25s ease;
}
.container-row:hover { border-color: var(--teal-light); }

.container-row-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.container-row-title { font-size: .82rem; font-weight: 700; color: var(--teal-mid); }
.remove-row {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(229,57,53,.08); color: #e53935;
  display: flex; align-items: center; justify-content: center; font-size: .75rem;
  transition: background .2s;
}
.remove-row:hover { background: rgba(229,57,53,.18); }

.container-main-row { display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: end; }

/* Number spinner */
.qty-input {
  border: 1.5px solid var(--gray-border); border-radius: 8px;
  overflow: hidden; display: flex; align-items: stretch;
}
.qty-input button {
  width: 34px; background: var(--gray-bg); color: var(--text-dark);
  font-size: .95rem; border: none; font-weight: 700; flex-shrink: 0;
  transition: background .2s;
}
.qty-input button:hover { background: var(--teal-mid); color: #fff; }
.qty-input input {
  flex: 1; border: none; outline: none; text-align: center;
  font-size: .9rem; font-weight: 600; color: var(--text-dark); min-width: 0;
}

/* Conditional container fields */
.container-extra { margin-top: 14px; }

.height-ing-wrap { display: flex; flex-direction: column; gap: 8px; }
.ing-option {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text-muted);
}
.ing-option input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--teal-mid); }

.height-warning {
  display: flex; align-items: center; gap: 8px;
  background: rgba(245,130,32,.08); border: 1px solid rgba(245,130,32,.25);
  border-radius: 8px; padding: 10px 14px;
  font-size: .78rem; color: #c26000;
}
.height-warning .fa-triangle-exclamation { color: #f58220; }

.reefer-row { display: flex; align-items: center; gap: 8px; }
.reefer-row .form-input { flex: 1; }
.temp-unit {
  padding: 11px 14px; background: var(--gray-bg);
  border: 1.5px solid var(--gray-border); border-radius: 8px;
  font-size: .85rem; color: var(--text-muted); font-weight: 600;
  flex-shrink: 0;
}

/* Add row button */
.btn-add-row {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 13px; border-radius: 8px;
  border: 2px dashed var(--teal-light); color: var(--teal-mid);
  font-size: .85rem; font-weight: 600; background: rgba(15,94,94,.03);
  justify-content: center; transition: background .2s, border-color .2s;
  margin-top: 6px;
}
.btn-add-row:hover { background: rgba(15,94,94,.07); border-color: var(--teal-mid); }

/* ─── LCL / SUBSECTIONS ─── */
.form-subsection {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--gray-border);
}
.subsection-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 18px;
}
.subsection-title i { color: var(--teal-mid); }

.input-with-badge { display: flex; gap: 10px; align-items: stretch; }
.input-with-badge .form-input { flex: 1; }
.calc-cbm-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 0 16px; border-radius: 8px;
  background: rgba(255,138,0,.1); color: var(--cta-orange);
  font-size: .8rem; font-weight: 600; border: 1.5px solid rgba(255,138,0,.2);
  white-space: nowrap; transition: background .2s;
  flex-shrink: 0;
}
.calc-cbm-btn:hover { background: var(--cta-orange); color: #fff; }

/* ─── SUBMIT AREA ─── */
.form-submit-area { text-align: center; padding: 16px 0 4px; }
.submit-note { font-size: .78rem; color: var(--text-muted); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.submit-note .fa-lock { color: var(--green); }

.btn-submit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 48px; border-radius: 10px;
  background: var(--cta-orange); color: #fff;
  font-size: 1rem; font-weight: 700; border: none;
  cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(255,138,0,.3);
}
.btn-submit:hover { background: #e07800; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,138,0,.35); }
.btn-submit:active { transform: translateY(0); }
.btn-submit.loading { opacity: .7; pointer-events: none; }

/* ─── SUCCESS MESSAGE ─── */
.success-msg {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  padding: 60px 40px; text-align: center;
  box-shadow: var(--shadow);
}
.success-icon { font-size: 4rem; color: var(--green); margin-bottom: 20px; }
.success-msg h2 { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; }
.success-msg p  { font-size: .92rem; color: var(--text-muted); }

/* ─── FIELD ERROR ─── */
.field-error { font-size: .75rem; color: #e53935; margin-top: 4px; }

/* ============================================================
   AIR FREIGHT – SPECIFIC COMPONENTS
============================================================ */

/* Airport route visual (FOB/CPT) */
.airport-route-visual {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 12px; align-items: end; margin-top: 16px;
}
.route-arrow {
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 12px; color: var(--green); font-size: 1.2rem;
}

/* Input with icon */
.input-icon-wrap { position: relative; }
.input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: .85rem; pointer-events: none;
}
.input-with-icon { padding-left: 36px !important; }

/* Field icon (inline label) */
.field-icon { color: var(--teal-mid); margin-right: 4px; font-size: .85rem; }

/* Field hint text */
.field-hint {
  font-size: .72rem; color: var(--text-muted);
  margin-top: 4px; display: block;
}

/* Input with USD prefix */
.input-prefix-wrap { display: flex; align-items: stretch; }
.input-prefix {
  padding: 11px 14px; background: var(--gray-bg);
  border: 1.5px solid var(--gray-border); border-right: none;
  border-radius: 8px 0 0 8px; font-size: .8rem; font-weight: 700;
  color: var(--text-muted); flex-shrink: 0; display: flex; align-items: center;
}
.input-prefixed {
  border-radius: 0 8px 8px 0 !important;
  border-left: none !important;
}
.input-prefix-wrap:focus-within .input-prefix {
  border-color: var(--teal-mid);
}
.input-prefix-wrap:focus-within .input-prefixed {
  border-color: var(--teal-mid);
  box-shadow: none;
}

/* Info banner */
.info-banner {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(15,94,94,.06); border: 1px solid rgba(15,94,94,.18);
  border-radius: 10px; padding: 14px 16px; margin-top: 16px;
  font-size: .8rem; color: var(--text-dark); line-height: 1.55;
}
.info-banner .fa-circle-info { color: var(--teal-mid); font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.info-banner strong { color: var(--teal-dark); }

/* Date input styling */
input[type="date"].form-input {
  color: var(--text-dark); cursor: pointer;
}
input[type="date"].form-input::-webkit-calendar-picker-indicator {
  opacity: .5; cursor: pointer;
}

/* ============================================================
   ROAD FREIGHT – SPECIFIC COMPONENTS
============================================================ */

.page-hero-road {
background: linear-gradient(135deg, #0b2a3d 0%, #0f4a6e 60%, #1a6fa0 100%);
  padding: calc(var(--nav-h) + 48px) 80px 56px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; overflow: hidden;
}

/* Input with suffix (tonnes) */
.input-suffix-wrap { display: flex; align-items: stretch; }
.input-suffixed { border-radius: 8px 0 0 8px !important; border-right: none !important; }
.input-suffix {
  padding: 11px 14px; background: var(--gray-bg);
  border: 1.5px solid var(--gray-border); border-left: none;
  border-radius: 0 8px 8px 0; font-size: .82rem; font-weight: 700;
  color: var(--text-muted); display: flex; align-items: center; flex-shrink: 0;
}
.input-suffix-wrap:focus-within .input-suffixed { border-color: var(--teal-mid); }
.input-suffix-wrap:focus-within .input-suffix   { border-color: var(--teal-mid); }

/* Trailer type cards */
.trailer-type-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  margin-top: 8px;
}
.trailer-card {
  border: 1.5px solid var(--gray-border); border-radius: 10px;
  padding: 14px 8px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  transition: border-color .2s, background .2s, transform .15s;
}
.trailer-card:hover { border-color: var(--teal-light); transform: translateY(-2px); }
.trailer-card.selected {
  border-color: var(--teal-mid); background: rgba(15,94,94,.05);
  box-shadow: 0 0 0 3px rgba(15,94,94,.1);
}
.trailer-card i    { font-size: 1.2rem; color: var(--teal-mid); }
.trailer-card span { font-size: .72rem; font-weight: 600; color: var(--text-dark); }

/* Road route visual */
.road-route-visual {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 12px; align-items: end; margin-top: 16px;
}
.road-route-arrow {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding-bottom: 12px; color: var(--teal-mid);
  font-size: .95rem; white-space: nowrap;
}
.road-dots {
  flex: 1; height: 2px;
  background: repeating-linear-gradient(
    to right, var(--teal-light) 0, var(--teal-light) 4px, transparent 4px, transparent 8px
  );
  min-width: 12px;
}
.road-icon-from { color: var(--green) !important; }
.road-icon-to   { color: #e53935 !important; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .page-hero { padding: calc(var(--nav-h) + 32px) 24px 40px; }
  .page-hero-icon { display: none; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .container-main-row { grid-template-columns: 1fr; }
  .form-section { padding: 20px; }
  .form-progress { padding: 16px 20px; }
  .airport-route-visual { grid-template-columns: 1fr; }
  .route-arrow { display: none; }
  .trailer-type-grid { grid-template-columns: repeat(3, 1fr); }
  .road-route-visual { grid-template-columns: 1fr; }
  .road-route-arrow { display: none; }
}
