/* ===================================================================
   INTER SHIPPING CALCULATOR – CORE STYLES  v1.4
   Custom font:  "Prompt" (Google Fonts)
   Modern, clean, soft‑shadow card + input controls
   Enhanced result styling with unique layout
   =================================================================== */

/* ---------- Import Google Font ---------- */
@import url("https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600&display=swap");

:root {
  --inter-primary: #f5a623;
  --inter-primary-dark: #d9901a;
  --inter-bg-soft: #fafafa;
  --inter-border: #e2e2e2;
  --inter-radius: 18px;
  --inter-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  --font-main: 'Prompt', sans-serif;
}

/* ---------- Card Layout ---------- */
.inter-card {
  background: #fff;
  border: 1px solid var(--inter-border);
  border-radius: var(--inter-radius);
  padding: 28px 32px;
  box-shadow: var(--inter-shadow);
  max-width: 780px;
  margin: 36px auto;
  font-family: var(--font-main);
  color: #333;
}

/* ---------- Title ---------- */
.inter-title {
  margin: 0 0 24px 0;
  color: var(--inter-primary);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: .3px;
}

/* ---------- Grid ---------- */
.inter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px 22px;
}
.inter-field {
  display: flex;
  flex-direction: column;
}
.inter-field label {
  margin-bottom: 6px;
  font-size: .9rem;
  font-weight: 500;
}
.span-3 {
  grid-column: span 3;
}

/* ---------- Inputs / Selects ---------- */
.inter-input, .inter-select {
  padding: 9px 13px;
  border: 1px solid var(--inter-border);
  border-radius: 12px;
  transition: border-color .25s, box-shadow .25s;
  font-size: .95rem;
  font-family: var(--font-main);
}
.inter-input:focus, .inter-select:focus {
  border-color: var(--inter-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .18);
}

/* ---------- Button ---------- */
.inter-btn {
  width: 100%;
  margin-top: 26px;
  background: var(--inter-primary);
  color: #fff;
  border: none;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  transition: background .3s;
  font-family: var(--font-main);
}
.inter-btn:hover {
  background: var(--inter-primary-dark);
}

/* ---------- Result Container (flex) ---------- */
.inter-result-html {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-family: var(--font-main);
}
.result-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

/* ===================================================================
   RESULT MAIN TABLE (summary left)
   =================================================================== */
.inter-result-table {
  border-collapse: collapse;
  min-width: 360px;
  box-shadow: var(--inter-shadow);
  font-size: 0.9rem;
  border-radius: 12px;
  overflow: hidden;
}
.inter-result-table thead th {
  background: linear-gradient(135deg, #f5a623 0%, #f6ad3c 50%, #f76b1c 100%);
  color: #fff;
  font-weight: 600;
  padding: 10px;
}
.inter-result-table th, .inter-result-table td {
  border: 1px solid var(--inter-border);
  padding: 8px 12px;
  text-align: right;
}
.inter-result-table td:first-child,
.inter-result-table th:first-child {
  text-align: left;
}
.inter-result-table tbody tr:nth-child(even) {
  background: var(--inter-bg-soft);
}
.inter-result-table tbody tr:hover {
  background: rgba(245, 166, 35, 0.08);
  transition: background 0.2s;
}

/* ---------- Notes under table ---------- */
.result-note {
  font-size: 0.82rem;
  color: #888;
  margin-top: 8px;
  line-height: 1.45;
}

/* ===================================================================
   RESULT SIDE BOX (total)
   =================================================================== */
.inter-result-side {
  border: 1px solid var(--inter-border);
  border-radius: 16px;
  min-width: 220px;
  background: #fffef8;
  box-shadow: var(--inter-shadow);
}
.inter-result-side table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.inter-result-side td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  text-align: right;
}
.inter-result-side td:first-child {
  text-align: left;
}
.inter-result-side tr:last-child td {
  border-bottom: none;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  background: #fff4ce;
  color: var(--inter-primary-dark);
  border-radius: 0 0 16px 16px;
}
.inter-result-side .total-val {
  font-weight: 700;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .inter-card {
    padding: 20px 18px;
    margin: 20px 12px;
  }

  .inter-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .inter-btn {
    font-size: 0.95rem;
    padding: 12px 0;
  }

  .inter-result-html {
    flex-direction: column;
    gap: 20px;
  }

  .inter-result-table,
  .inter-result-side {
    width: 100% !important;
    min-width: unset !important;
  }

  .inter-result-side tr:last-child td {
    font-size: 1rem;
    padding: 10px;
  }

  .result-note {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

/* Fix input/select overflow on small screen */
.inter-input,
.inter-select {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

