/* shared.css – consistent styling for all pages */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  background: #f0efed;
  color: #1c1c1c;
  padding: 1.5rem 0;
}

.page-wrap {
  width: 80%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Header */
.hdr {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #f5e8e8 0%, #faf2ee 25%, #ffffff 50%, #eef5f0 75%, #e8eef5 100%);
}

.hdr-band-top, .hdr-band-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #DA251D, #FFCD00 30%, #ffffff 50%, #007A4D 70%, #0032A0);
}

.hdr-band-top { top: 0; }
.hdr-band-bottom { bottom: 0; }

.hdr-title {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  color: #1c1c1c;
}

/* Navigation */
.site-nav {
  background: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  min-height: 46px;
  border-radius: 10px;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav-left, .site-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin: 0 4px;
  transition: border-bottom 0.2s;
}

.site-nav a.active {
  border-bottom: 2px solid #FFCD00;
  padding-bottom: 2px;
}

/* Cards */
.section-card {
  background: #fff;
  border-radius: 16px;
  border: 0.5px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}

.section-card-accent-bar {
  height: 4px;
  background: linear-gradient(to right, #DA251D, #FFCD00 30%, #ffffff 50%, #007A4D 70%, #0032A0);
}

.section-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1.25rem 1.75rem;
  border-bottom: 0.5px solid rgba(0,0,0,0.07);
}

.section-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.section-card-icon.blue { background: linear-gradient(135deg,#1a3e8c,#2457b3); }
.section-card-icon.red { background: linear-gradient(135deg,#c0241c,#e02d23); }
.section-card-icon.green { background: linear-gradient(135deg,#0f6e56,#17916e); }

.section-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1c1c1c;
}

.section-card-sub {
  font-size: 12px;
  color: #555;
  margin-top: 3px;
}

.section-card-body {
  padding: 1.5rem 1.75rem;
}

/* Step badge */
.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #1a3e8c;
  background: #eef4ff;
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 1rem;
}

/* Tabs */
.tab-row {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.tab-btn {
  flex: 1;
  padding: 13px 16px;
  border-radius: 10px;
  border: 0.5px solid #ccc;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.tab-btn.active {
  background: linear-gradient(135deg, #1a3e8c, #0f6e56);
  color: #fff;
  border-color: transparent;
}

/* Form fields */
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-label {
  font-size: 12px;
  font-weight: 500;
  color: #333;
}

.field-input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 0.5px solid #ccc;
  background: #fff;
  width: 100%;
  font-size: 15px;
}

.quick-select {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-select select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 0.5px solid #ccc;
  background: #fff;
  font-size: 13px;
}

/* Track strip */
.track-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f7ff;
  border: 0.5px solid #c5d4f5;
  border-left: 3px solid #1a3e8c;
  border-radius: 10px;
  padding: 8px 12px;
  flex-wrap: wrap;
}

.track-strip span {
  font-size: 13px;
  font-weight: 600;
  color: #1a3e8c;
}

.track-strip input {
  flex: 1;
  min-width: 140px;
  padding: 6px 10px;
  border-radius: 7px;
  border: 0.5px solid #c5d4f5;
  font-size: 13px;
}

.track-strip button {
  padding: 6px 16px;
  border-radius: 7px;
  background: linear-gradient(135deg, #1a3e8c, #0f6e56);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

/* Alerts */
.alert-box {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  gap: 9px;
  background: #FAEEDA;
  border: 0.5px solid #EF9F27;
  color: #633806;
}

.hidden { display: none; }

/* Result panel */
.result-panel {
  background: #fff;
  border-radius: 14px;
  border: 0.5px solid #e2e0da;
  overflow: hidden;
  margin-bottom: 10px;
  --col-local-w: 140px;
  --col-zar-w: 110px;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr var(--col-local-w) var(--col-zar-w);
  align-items: center;
  padding: 12px 20px;
  border-top: 0.5px solid #f2f2ef;
}

.result-row-weight .result-local,
.result-row-weight .result-zar {
  font-size: 18px;
  font-weight: 800;
}

.result-local { color: #DA251D; text-align: right; font-weight: 700; }
.result-zar { color: #1a3e8c; text-align: right; font-weight: 700; }
.result-row-total { background: linear-gradient(to right, #f8f9fe, #f4fbf8); }

.result-row-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #444;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.result-row-pct {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2px 6px;
  border-radius: 20px;
  white-space: nowrap;
}

.result-row-pct.heavy { background: #fdecea; border: 0.5px solid #f5c4c4; color: #c0241c; }
.result-row-pct.oversize { background: #eef4ff; border: 0.5px solid #c5d8f8; color: #1a3e8c; }

.result-col-headers {
  display: grid;
  grid-template-columns: 1fr var(--col-local-w) var(--col-zar-w);
  padding: 7px 20px 5px;
  background: #fafaf8;
  border-bottom: 0.5px solid #ededea;
}

.result-col-hdr {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #bbb;
  text-align: right;
}

.result-col-hdr:first-child { text-align: left; }

.result-weight-badge { font-size: 30px; font-weight: 700; color: #0f6e56; }
.result-weight-method { font-size: 11px; color: #888; }

/* Formula note */
.formula-note {
  font-size: 13px;
  font-weight: 500;
  color: #2c5a7a;
  margin-bottom: 1rem;
  text-align: center;
  background: #f0f9ff;
  padding: 6px 12px;
  border-radius: 8px;
  line-height: 1.5;
}

.delivery-estimate {
  font-size: 12px;
  background: #f4f7ff;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 1rem;
}

/* Insurance group */
.insurance-group {
  margin-top: 1rem;
}

.insurance-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 6px;
}

.insurance-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

/* Compliance accordions */
.compliance-accordion {
  margin-bottom: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 0.5px solid #e9edf2;
  overflow: hidden;
}

.compliance-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  background: white;
  position: relative;
  transition: background 0.15s;
}

.compliance-accordion-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.compliance-accordion.prohibited .compliance-accordion-header::before { background: #DA251D; }
.compliance-accordion.restricted .compliance-accordion-header::before  { background: #FFCD00; }
.compliance-accordion.permitted .compliance-accordion-header::before   { background: #0f6e56; }

.compliance-accordion-header:hover { background: #fafbfc; }

.accordion-title { font-weight: 600; font-size: 15px; color: #1f2a3e; }
.accordion-sub { font-size: 12px; color: #6c7a8e; margin-top: 3px; }

.toggle-icon {
  width: 26px;
  height: 26px;
  border-radius: 30px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c7a8e;
  transition: all 0.2s;
  font-size: 12px;
  flex-shrink: 0;
}

.compliance-accordion-body {
  display: none;
  background: #f8fafc;
  padding: 16px 20px;
  border-top: 0.5px solid #eef2f6;
  font-size: 13px;
  color: #334155;
}

.compliance-accordion-body.open { display: block; }

.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item-list li {
  padding: 8px 0;
  border-bottom: 0.5px solid #eef2f6;
  font-size: 13px;
}

.item-list li:last-child { border-bottom: none; }

/* Declaration questions */
.declaration-question {
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  border: 0.5px solid #eef2f6;
}

.declaration-question label {
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: #1c1c1c;
}

.declaration-question input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #0f6e56;
}

.declaration-nested {
  margin-top: 8px;
  margin-left: 26px;
  padding-left: 12px;
  border-left: 2px solid #ddd;
}

.declaration-warning {
  background: #fff8e7;
  border-left: 4px solid #f0b429;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 13px;
  color: #8a6e2d;
}

.country-specific-warning {
  background: #fef2f0;
  border-left: 4px solid #c0241c;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 13px;
}

/* Itemised declaration lines */
.item-line {
  background: #fff;
  border: 0.5px solid #e0e6f5;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.item-line-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 13px;
}

.item-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.item-desc-field { flex: 2; min-width: 150px; }
.item-value-field { flex: 1; min-width: 120px; }
.item-type-field {
  flex: 3;
  min-width: 260px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.item-type-field label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.item-type-field input { margin: 0; width: 16px; height: 16px; accent-color: #0f6e56; }

.add-item-btn {
  background: #eef4ff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  margin: 8px 0;
  font-size: 13px;
}

.btn-secondary {
  background: #eef4ff;
  border: none;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.upload-area {
  border: 1.5px dashed #ccc;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  margin-top: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
}

.upload-area:hover { background: #f4f7ff; }

.file-list { font-size: 11px; margin-top: 4px; color: #0f6e56; }

/* Compliance checkboxes */
.compliance-checkbox-group { margin-top: 0.5rem; }

.compliance-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.compliance-checkbox-item input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #0f6e56;
  cursor: pointer;
  flex-shrink: 0;
}

.compliance-checkbox-item label {
  font-size: 13px;
  line-height: 1.55;
  color: #1c1c1c;
  cursor: pointer;
  font-weight: 400;
}

/* TRANSFER BANNER – now visually uniform */
.transfer-banner {
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: #f0f9ff;
  border-radius: 16px;
  border: 0.5px solid #c5d8f8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.transfer-banner-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a3e8c;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.transfer-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}

.transfer-summary-grid div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.5px solid #eef2f6;
  padding: 6px 0;
}

.transfer-summary-grid div:last-child { border-bottom: none; }

.transfer-summary-grid span { color: #555; font-weight: 500; }
.transfer-summary-grid strong { color: #1c1c1c; }

.refund-note {
  font-size: 10px;
  color: #0f6e56;
  margin-left: 6px;
}

.transfer-btn-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.transfer-btn {
  padding: 8px 18px;
  border-radius: 30px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.transfer-btn.yes {
  background: linear-gradient(135deg, #1a3e8c, #0f6e56);
  color: #fff;
}

.transfer-btn.no {
  background: #eef4ff;
  color: #1a3e8c;
  border: 0.5px solid #c5d8f8;
}

.transfer-btn.yes:hover { opacity: 0.9; transform: translateY(-1px); }
.transfer-btn.no:hover { background: #e2eafc; }

/* Book button */
.book-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.2s;
}

.book-btn.enabled {
  background: linear-gradient(135deg, #1a3e8c, #0f6e56);
  color: #fff;
}

.book-btn.disabled {
  background: #f0efed;
  color: #888;
  border: 0.5px solid #ddd;
  cursor: not-allowed;
}

/* Booking form columns */
.booking-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.booking-col-panel {
  background: #f8f9fe;
  border-radius: 12px;
  border: 0.5px solid #e0e6f5;
  padding: 1rem;
}

.booking-col-panel.receiver-panel {
  background: #f6fbf8;
  border-color: #c8e6d4;
}

.bfield {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bfield-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #444;
}

.bfield-input {
  padding: 7px 10px;
  border-radius: 8px;
  border: 0.5px solid #ddd;
  width: 100%;
  font-size: 13px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a3e8c, #0f6e56);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  font-size: 15px;
}

.booking-footer-note {
  font-size: 11px;
  color: #555;
  text-align: center;
  margin-top: 12px;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 12px;
  color: #333;
  margin-top: 1rem;
}

.footer a {
  color: #1a3e8c;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 700px) {
  .page-wrap { width: 95%; }
  .item-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .item-type-field { justify-content: space-between; }
  .site-nav { flex-direction: column; height: auto; padding: 0.75rem 1rem; }
  .site-nav-left, .site-nav-right { justify-content: center; width: 100%; }
  .booking-cols { grid-template-columns: 1fr; }
  .transfer-summary-grid { grid-template-columns: 1fr; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-nav, .track-strip, .transfer-banner, .book-btn, .submit-btn,
  .compliance-accordion, .tab-row, .footer, .insurance-group,
  .upload-area, .add-item-btn, .btn-secondary, .compliance-checkbox-group {
    display: none !important;
  }
  .section-card { border: 1px solid #ccc; break-inside: avoid; }
  .result-panel, .result-row-weight { border: none; }
}