/* International Delivery Date Calculator — clean, professional, mobile-first. */

:root {
  --ink: #1a2332;
  --muted: #5b6b82;
  --line: #e2e8f0;
  --bg: #f6f8fb;
  --card: #ffffff;
  --accent: #0f5fd0;
  --accent-dark: #0a49a3;
  --ok: #157a3d;
  --ok-bg: #e6f4ea;
  --warn: #8a5a00;
  --warn-bg: #fdf3e0;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: linear-gradient(135deg, #0f2a52, #0f5fd0);
  color: #fff;
  padding: 40px 0 32px;
}
.brand { margin: 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark { color: #fff; }
.brand-sep { color: #7fa8e0; font-weight: 400; margin: 0 6px; }
.brand-link { color: #fff; text-decoration: none; }
.brand-link:hover { text-decoration: underline; }
.tagline { margin: 8px 0 0; color: #cfe0f7; font-size: 1.02rem; max-width: 640px; }

main { padding: 28px 0 12px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(16, 42, 82, 0.06);
}

h1 { font-size: 1.7rem; margin: 0 0 8px; letter-spacing: -0.015em; }
h2 { font-size: 1.3rem; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.lede { color: var(--muted); margin: 0 0 20px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field-note { font-size: 0.82rem; color: var(--muted); margin: 6px 0 0; }

.advanced { margin: 12px 0 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.advanced summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: 0.95rem; }
.advanced .grid { margin-top: 14px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 28px;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 14px;
  text-decoration: none;
}
.btn:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

.error {
  color: #b3261e;
  background: #fdecea;
  border: 1px solid #f5c6c2;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 14px;
}

#result { margin-top: 28px; border-top: 2px solid var(--line); padding-top: 20px; }
.delivery { font-size: 1.9rem; font-weight: 700; color: var(--accent-dark); margin: 4px 0; letter-spacing: -0.01em; }
.delivery-sub { color: var(--muted); margin: 0 0 16px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 20px; margin: 0 0 8px; }
.facts > div { background: var(--bg); border-radius: 8px; padding: 10px 14px; }
.facts dt { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.facts dd { margin: 2px 0 0; font-weight: 600; }

.trace-note { color: var(--muted); font-size: 0.92rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
tbody tr.counted { background: #f2f8ff; }
td.note { color: var(--muted); }
.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
  margin-right: 6px;
  white-space: nowrap;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.detail { font-size: 0.82rem; color: var(--muted); }

.disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding-left: 12px;
  margin-top: 18px;
}

.steps { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 10px; }

.cta { text-align: center; background: linear-gradient(180deg, #f2f7ff, #ffffff); }
.cta p { max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-note { font-size: 0.88rem; color: var(--muted); }

.interest-form {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 22px auto 0;
  max-width: 680px;
}
.interest-form h3 { margin-top: 0; }
.interest-form .cta-note { margin: 0 0 14px; }
.interest-note {
  font-size: 0.92rem;
  background: var(--warn-bg);
  border: 1px solid #f0d9a8;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 14px;
}
.interest-note.success {
  background: var(--ok-bg);
  border-color: #bfe3cc;
  color: var(--ok);
}

/* Honeypot: invisible to humans, irresistible to bots. */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.btn[disabled] { opacity: 0.6; cursor: wait; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 560px) {
  .card { padding: 20px 16px; }
  h1 { font-size: 1.4rem; }
  .delivery { font-size: 1.5rem; }
  .site-header { padding: 28px 0 24px; }
}
