/*
 * CCMF Enterprise shipping theme, version 5.
 * Matches the customer tracking page colour palette, spacing and UI components.
 * Layered on top of shipping.css, without changing quotation or admin logic.
 */
:root {
  --ccmf-blue: #155eef;
  --ccmf-blue-dark: #0b46bf;
  --ccmf-orange: #ff5a36;
  --page-bg: #f4f7fb;
  --card-bg: #fff;
  --text: #172033;
  --muted: #667085;
  --border: #e6eaf0;
  --shadow: 0 8px 28px rgba(16,24,40,.08);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--page-bg);
  color: var(--text);
  font-size: 14px;
}
html {scroll-behavior: smooth}
body {margin:0; background:var(--page-bg); color:var(--text); font-family:Arial,"Microsoft YaHei","PingFang SC",sans-serif; -webkit-font-smoothing:antialiased; line-height:1.55}
a {color:inherit}
.page-wrap {width:min(1180px,calc(100% - 28px));margin:0 auto;padding:18px 0 44px}
.page-wrap .wrap {width:100%;margin-left:auto;margin-right:auto}
/* Header and nav use the same style as /tracking/index.php */
.top-strip {display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.brand-mini {display:inline-flex;align-items:center;gap:10px;font-weight:800;color:var(--text);text-decoration:none;min-width:0}
.brand-mini:hover {color:var(--ccmf-blue)}
.brand-mark {width:36px;height:36px;flex-shrink:0;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,var(--ccmf-blue),var(--ccmf-orange));color:#fff;font-size:12px;font-weight:800;letter-spacing:-.1px;box-shadow:0 5px 14px rgba(21,94,239,.2)}
.brand-text {font-size:14px}
.whatsapp-link {display:inline-flex;align-items:center;gap:8px;padding:8px 11px;background:#fff;border:1px solid var(--border);border-radius:10px;color:#344054;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}
.whatsapp-link:hover {color:var(--ccmf-blue);text-decoration:none}
.whatsapp-link img {width:25px;height:25px;object-fit:contain}
.nav-shell {background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 3px 12px rgba(16,24,40,.04);padding:8px 12px;margin-bottom:18px;overflow-x:auto;scrollbar-width:thin}
.top-nav {display:flex;justify-content:center;align-items:center;gap:4px;min-width:max-content;white-space:nowrap}
.top-nav a {color:#475467;text-decoration:none;font-size:13px;font-weight:600;padding:8px 10px;border-radius:8px}
.top-nav a:hover,.top-nav a.active {background:#f2f4f7;color:var(--ccmf-blue);text-decoration:none}
/* Matching rounded navy tracking-page hero */
.hero {background:radial-gradient(circle at 92% 10%,rgba(255,90,54,.16),transparent 28%),radial-gradient(circle at 6% 100%,rgba(21,94,239,.16),transparent 30%),linear-gradient(135deg,#0b1f45,#123a79);color:#fff;border-radius:18px;padding:28px;box-shadow:var(--shadow);margin-bottom:18px;overflow:hidden}
.hero-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(275px,350px);align-items:center;gap:28px}
.hero-content {min-width:0}
.hero-kicker {display:inline-flex;align-items:center;padding:6px 10px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.08);font-size:12px;font-weight:700;margin-bottom:12px}
.hero h1 {margin:0 0 8px;font-size:clamp(26px,3vw,38px);line-height:1.15;font-weight:800;letter-spacing:-.025em;color:#fff}
.hero p {margin:0;max-width:650px;color:rgba(255,255,255,.78);font-size:14px;line-height:1.65}
.hero-action-card {display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:4px;background:rgba(255,255,255,.98);padding:12px 14px;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.16);color:var(--text);min-height:115px}
.hero-action-title {font-size:15px;font-weight:800;color:#172033}
.hero-action-card p {color:#667085;font-size:12px;margin:0 0 8px}
.hero-action-button {align-self:stretch;display:inline-flex;justify-content:center;align-items:center;background:var(--ccmf-blue);border-radius:10px;min-height:40px;padding:9px 15px;color:white;text-decoration:none;font-size:13px;font-weight:800;transition:background .15s}
.hero-action-button:hover {background:var(--ccmf-blue-dark);color:white;text-decoration:none}
/* Main / input cards */
main.wrap {padding:6px 0 18px}
.page-heading {margin-bottom:16px}
.page-heading h2 {font-size:22px;letter-spacing:-.01em;line-height:1.25;margin-bottom:6px;color:#101828}
.page-heading p {font-size:13px;color:var(--muted)}
.eyebrow {color:var(--ccmf-blue);font-size:11px;letter-spacing:.065em;font-weight:800}
.panel {border:1px solid var(--border);background:#fff;border-radius:16px;box-shadow:0 4px 16px rgba(16,24,40,.045);padding:23px;margin-bottom:16px}
.section-head {margin-bottom:16px}
.section-head h2 {font-size:18px;color:#101828;letter-spacing:-.015em;font-weight:800}
.section-head h3 {color:#101828}
.muted,.small-note {color:var(--muted)}
.pill {color:#175cd3;background:#eff8ff;border:1px solid #d1e9ff;font-size:11px}
.field span {color:#344054;font-weight:700}
.field small {color:var(--muted)}
.field input,.field select {border:1px solid #d0d5dd;border-radius:9px;color:#172033;background:white}
.field input:focus,.field select:focus {border-color:var(--ccmf-blue);box-shadow:0 0 0 3px rgba(21,94,239,.12)}
.field input:hover,.field select:hover {border-color:#98a2b3}
.destination-choice,.mode-choice {border:1px solid #dfe4ed;background:#fff;border-radius:12px}
.destination-choice:has(input:checked),.mode-choice:has(input:checked) {background:#eff8ff;border-color:#84b5fb;box-shadow:0 0 0 1px rgba(21,94,239,.09)}
.destination-choice input,.mode-choice input {accent-color:var(--ccmf-blue)}
.destination-text strong,.mode-choice strong {color:#172033}
.destination-text small,.mode-choice small {color:var(--muted)}
.parcel-row {border:1px solid #e6eaf0;background:#f9fafb;border-radius:12px}
.parcel-head strong {color:#172033}
.parcel-type-field select {color:#344054;border-color:#d0d5dd}
.parcel-row:has(.parcel-type-field select:has(option[value="sensitive"]:checked)) {background:#fff9f6;border-color:#ffd8cb}
.remove-parcel {color:#b42318}
.button {border-radius:10px;font-weight:800}
.button.primary {background:var(--ccmf-blue);color:#fff}
.button.primary:hover {background:var(--ccmf-blue-dark)}
.button.secondary {background:#fff;color:#344054;border-color:#d0d5dd}
.button.secondary:hover {color:var(--ccmf-blue);background:#f9fafb;border-color:#b2c8ef}
.button.outline {background:#eff8ff;color:var(--ccmf-blue);border-color:#b2ddff}
.button.outline:hover {background:#e0f2fe}
.tip {color:#475467;background:#eff8ff;border-color:#d1e9ff}
.alert.info {background:#eff8ff;color:#175cd3;border-color:#d1e9ff}
.alert.error {background:#fef3f2;color:#b42318;border-color:#fecdca}
.alert.success {background:#ecfdf3;color:#027a48;border-color:#abefc6}
.goods-notice {background:#fffaeb;color:#93370d;border:1px solid #fedf89}
/* Results and per-parcel breakdown */
.result-title h2 {color:#101828}
.summary-tile {border:1px solid var(--border);border-radius:14px;background:#fff;box-shadow:0 4px 16px rgba(16,24,40,.045);padding:16px}
.summary-tile:first-child {background:linear-gradient(145deg,#fff,#f8fbff);border-color:#d1e9ff}
.summary-tile span,.summary-tile small {color:var(--muted)}
.summary-tile strong {color:var(--ccmf-blue);font-size:23px}
.results-panel {border-radius:16px}
.quote-row {border-top:1px solid var(--border)}
.quote-row.best {background:#f0f7ff;border-color:#b2ddff}
.quote-method strong {color:#101828}
.quote-method small,.quote-price small {color:var(--muted)}
.quote-kind {color:#175cd3;background:#eff8ff}
.quote-price strong {color:var(--ccmf-blue)}
.quote-price .best-label {color:#027a48}
.parcel-breakdown {border-color:var(--border)}
.breakdown-heading {background:#f2f4f7;color:#475467}
.breakdown-row {border-color:var(--border);color:#344054}
.breakdown-row>strong {color:var(--ccmf-blue)}
.breakdown-description small {color:var(--muted)}
.goods-tag.general {background:#eff8ff;color:#175cd3}
.goods-tag.sensitive {background:#fff1e9;color:#c43216}
.fineprint {color:var(--muted)}
/* Price settings */
.country-tabs a {border-color:#d0d5dd;color:#475467;background:#fff}
.country-tabs a.chosen {color:#fff;border-color:var(--ccmf-blue);background:var(--ccmf-blue)}
.country-tabs a:hover:not(.chosen) {color:var(--ccmf-blue);border-color:#84b5fb}
.subheading {color:#175cd3;border-top-color:var(--border)}
.save-strip {background:#eff8ff;border-color:#d1e9ff}
.save-strip small {color:var(--muted)}
/* Footer matches tracking page footer card */
.footer-box {margin-top:25px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 4px 16px rgba(16,24,40,.04);padding:18px;text-align:center;color:var(--muted);font-size:12px}
.footer-box strong {color:#344054}
.footer-box a {color:var(--ccmf-blue);text-decoration:none}
.footer-box a:hover {text-decoration:underline}
.footer-copyright {margin-top:6px}
@media (max-width:980px) {
  .hero-grid {grid-template-columns:minmax(0,1fr) minmax(220px,300px);gap:20px}
}
@media (max-width:680px) {
  .page-wrap {width:min(calc(100% - 18px),1180px);padding-top:10px}
  .brand-text {display:none}
  .nav-shell {margin-bottom:12px}
  .top-nav {justify-content:flex-start}
  .hero {padding:20px 16px;border-radius:15px;margin-bottom:13px}
  .hero-grid {grid-template-columns:1fr;gap:18px}
  .hero h1 {font-size:28px}
  .hero p {font-size:13px}
  .hero-action-card {flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;min-height:0;gap:7px 12px;padding:10px}
  .hero-action-title {font-size:12px}
  .hero-action-card p {font-size:11px;margin:0}
  .hero-action-button {flex:1 1 100%;min-height:38px}
  main.wrap {padding-top:8px}
  .panel {padding:17px;border-radius:14px}
  .summary-tile {padding:13px}
  .summary-tile strong {font-size:18px}
}
@media (max-width:390px) {
  .hero h1 {font-size:25px}
  .quote-price strong {font-size:1rem}
  .quote-method strong {font-size:.82rem}
}
@media print {
  :root,body {background:#fff}
  .page-wrap {width:100%;padding:0}
  .top-strip,.nav-shell,.hero,.footer-box {display:none!important}
  .results .summary-tile {box-shadow:none}
  .panel {box-shadow:none}
}
