/* ─── Hawaii Car Rental Cost Calculator v1 ─────────────── */
/* All rules scoped under .crc-page so site globals can't reach in. */
/* px font sizes per CLAUDE.md (html { font-size: 62.5% } makes rem unsafe). */
/* Body text in Proxima (site body font), display elements in            */
/* brother-1816-printed (site heading font). Matches 04-08-25-v1.css.    */

.crc-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  font-family: 'Proxima', 'Open Sans', sans-serif;
  color: #2c3e50;
}

.crc-page h1,
.crc-page h2,
.crc-page h3,
.crc-page .crc-panel-title,
.crc-page .crc-results-title,
.crc-page .crc-results-total,
.crc-page .crc-class-rate,
.crc-page .crc-ins-cost,
.crc-page .crc-addon-cost,
.crc-page .crc-compare-cell-amount,
.crc-page .crc-cta {
  font-family: 'brother-1816-printed', 'Proxima', sans-serif;
}

/* ── Reset for site-wide form rules (CLAUDE.md form-controls section).
   Prefix every input rule with .crc-page so we beat (0,0,2) globals. ── */
.crc-page input[type='text'],
.crc-page input[type='search'],
.crc-page input[type='number'],
.crc-page input[type='range'],
.crc-page select,
.crc-page textarea {
  height: auto;
  margin: 0;
  background: none;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  line-height: 1.4;
  box-shadow: none;
  width: auto;
}

/* ── HERO ───────────────────────────────────────────────── */
.crc-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin: 16px 0 24px;
  min-height: 240px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: flex-end;
}

.crc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
}

.crc-hero-back {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255,255,255,0.85);
  color: #2c3e50;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 2;
}

.crc-hero-back:hover { background: #fff; color: #1866B4; }

.crc-hero-overlay {
  position: relative;
  z-index: 1;
  padding: 28px 28px 24px;
  color: #fff;
}

.crc-hero-overlay h1 {
  font-size: 38px;
  margin: 0 0 8px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.crc-hero-overlay p {
  font-size: 17px;
  margin: 0;
  max-width: 720px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

@media (max-width: 600px) {
  .crc-hero { min-height: 180px; }
  .crc-hero-overlay { padding: 16px 16px 14px; }
  .crc-hero-overlay h1 { font-size: 26px; }
  .crc-hero-overlay p { font-size: 15px; }
}

/* ── LIVE-DATA STAMP under the hero ─────────────────────── */
.crc-live-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f9f1;
  border: 1px solid #c8e6c9;
  color: #1D9771;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  margin: 0 0 16px;
}

.crc-live-stamp .crc-pulse {
  width: 8px; height: 8px;
  background: #1D9771;
  border-radius: 50%;
  animation: crc-pulse 2s infinite;
}

@keyframes crc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── LAYOUT — 2-column on desktop ───────────────────────── */
.crc-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .crc-layout { grid-template-columns: 1fr; }
  .crc-results-col { order: 99; }
}

/* ── PANEL ──────────────────────────────────────────────── */
.crc-panel {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.crc-panel-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #1866B4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crc-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #5f6c79;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 14px 0 8px;
}

.crc-label:first-child { margin-top: 0; }

.crc-help {
  font-size: 13px;
  color: #5f6c79;
  margin: 6px 0 0;
  line-height: 1.4;
}

/* ── ISLAND TABS ────────────────────────────────────────── */
.crc-island-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.crc-island-tab {
  background: #f4f6f8;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 14px;
  font-weight: 600;
  color: #5f6c79;
  cursor: pointer;
  transition: all 0.15s;
}

.crc-island-tab:hover { background: #e8edf2; }

.crc-island-tab.is-active[data-island='oahu']        { background: #fef3eb; border-color: #F27A24; color: #b85a18; }
.crc-island-tab.is-active[data-island='maui']        { background: #e8f0f9; border-color: #1866B4; color: #144f8a; }
.crc-island-tab.is-active[data-island='big-island']  { background: #fbe8ea; border-color: #c3232f; color: #8c1923; }
.crc-island-tab.is-active[data-island='kauai']       { background: #e6f3ee; border-color: #1D9771; color: #14735a; }

@media (max-width: 600px) {
  .crc-island-tabs { grid-template-columns: repeat(2, 1fr); }
}

/* ── MONTH GRID ─────────────────────────────────────────── */
.crc-month-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.crc-month-btn {
  background: #f4f6f8;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  color: #5f6c79;
}

.crc-month-btn:hover { background: #e8edf2; }
.crc-month-btn.is-active { background: #1866B4; color: #fff; border-color: #1866B4; }

.crc-month-btn[data-season='peak']::after,
.crc-month-btn[data-season='low']::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.crc-month-btn[data-season='peak']::after { background: #c3232f; }
.crc-month-btn[data-season='low']::after  { background: #1D9771; }

@media (max-width: 600px) {
  .crc-month-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── NUMBER + RANGE INPUTS ──────────────────────────────── */
.crc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.crc-row-label {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
}

.crc-row-control {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crc-num {
  width: 64px;
  border: 2px solid #d6dae0 !important;
  border-radius: 8px !important;
  padding: 6px 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  text-align: center;
  background: #fff !important;
  color: #2c3e50 !important;
}

.crc-num:focus {
  outline: none;
  border-color: #1866B4 !important;
}

.crc-stepper {
  display: flex;
  gap: 4px;
}

.crc-step-btn {
  background: #f4f6f8;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 18px;
  font-weight: 700;
  color: #5f6c79;
  cursor: pointer;
}

.crc-step-btn:hover { background: #e8edf2; color: #1866B4; }

/* ── VEHICLE CLASS GRID ─────────────────────────────────── */
.crc-class-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.crc-class-card {
  background: #f4f6f8;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.crc-class-card:hover { background: #e8edf2; }

.crc-class-card.is-active {
  background: #fff;
  border-color: #1866B4;
  box-shadow: 0 2px 8px rgba(24,102,180,0.15);
}

.crc-class-name {
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 2px;
}

.crc-class-meta {
  font-size: 12px;
  color: #5f6c79;
  line-height: 1.3;
}

.crc-class-rate {
  font-size: 18px;
  font-weight: 700;
  color: #1D9771;
  margin-top: 6px;
}

.crc-class-rate small { font-size: 12px; color: #5f6c79; font-weight: 500; }

@media (max-width: 600px) {
  .crc-class-grid { grid-template-columns: 1fr; }
}

/* ── INSURANCE PICKER ───────────────────────────────────── */
.crc-ins-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crc-ins-card {
  background: #f9fafb;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  display: block;
  width: 100%;
}

.crc-ins-card:hover { background: #f0f3f5; }

.crc-ins-card.is-active {
  background: #fff;
  border-color: #1866B4;
  box-shadow: 0 2px 8px rgba(24,102,180,0.15);
}

.crc-ins-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.crc-ins-label {
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
}

.crc-ins-cost {
  font-size: 15px;
  font-weight: 700;
  color: #1D9771;
  flex: 0 0 auto;
}

.crc-ins-cost.is-zero { color: #5f6c79; }

.crc-ins-covers {
  font-size: 13px;
  color: #5f6c79;
  margin-bottom: 6px;
}

.crc-ins-detail {
  font-size: 13px;
  color: #2c3e50;
  line-height: 1.45;
  display: none;
}

.crc-ins-card.is-active .crc-ins-detail { display: block; }

.crc-ins-detail strong { color: #1866B4; }

.crc-ins-risk {
  font-size: 12px;
  color: #8c1923;
  background: #fbe8ea;
  border-left: 3px solid #c3232f;
  padding: 6px 10px;
  border-radius: 4px;
  margin-top: 8px;
  line-height: 1.4;
}

/* ── ADDONS ─────────────────────────────────────────────── */
.crc-addon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
}

.crc-addon-row:hover { background: #f0f3f5; }

.crc-addon-check {
  width: 22px;
  height: 22px;
  border: 2px solid #d6dae0;
  border-radius: 6px;
  background: #fff;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: transparent;
  font-weight: 900;
}

.crc-addon-row.is-checked .crc-addon-check {
  background: #1866B4;
  border-color: #1866B4;
  color: #fff;
}

.crc-addon-meta { flex: 1 1 auto; }

.crc-addon-label {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

.crc-addon-note {
  font-size: 12px;
  color: #5f6c79;
  margin-top: 2px;
  line-height: 1.35;
}

.crc-addon-cost {
  font-size: 14px;
  font-weight: 700;
  color: #1D9771;
  flex: 0 0 auto;
}

/* ── MILEAGE PRESETS ────────────────────────────────────── */
.crc-mileage-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.crc-mileage-tab {
  background: #f4f6f8;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 10px 8px;
  cursor: pointer;
  text-align: center;
}

.crc-mileage-tab:hover { background: #e8edf2; }

.crc-mileage-tab.is-active {
  background: #fff;
  border-color: #1866B4;
  box-shadow: 0 2px 8px rgba(24,102,180,0.12);
}

.crc-mileage-label {
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
}

.crc-mileage-amount {
  font-size: 12px;
  color: #5f6c79;
  margin-top: 2px;
}

.crc-mileage-desc {
  font-size: 12px;
  color: #5f6c79;
  line-height: 1.4;
  margin-top: 4px;
}

/* ── RESULTS PANEL (sticky right column) ────────────────── */
.crc-results {
  position: sticky;
  top: 20px;
  background: #fff;
  border: 2px solid #1866B4;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(24,102,180,0.12);
}

.crc-results-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5f6c79;
  margin: 0 0 4px;
}

.crc-results-total {
  font-size: 38px;
  font-weight: 800;
  color: #1866B4;
  margin: 0;
  line-height: 1.1;
}

.crc-results-sub {
  font-size: 14px;
  color: #5f6c79;
  margin: 4px 0 16px;
}

.crc-results-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed #e8eaed;
  font-size: 14px;
}

.crc-results-line:last-of-type { border-bottom: none; }

.crc-results-line-label { color: #5f6c79; }

.crc-results-line-amount {
  font-weight: 600;
  color: #2c3e50;
  text-align: right;
}

.crc-results-line-detail {
  display: block;
  font-size: 11px;
  color: #8c95a0;
  font-weight: 400;
  margin-top: 1px;
}

/* Comparison block — what you'd pay with vs. without insurance */
.crc-compare {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid #e8eaed;
}

.crc-compare-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5f6c79;
  margin: 0 0 8px;
}

.crc-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.crc-compare-cell {
  background: #f4f6f8;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.crc-compare-cell.is-current {
  background: #e8f0f9;
  border: 2px solid #1866B4;
}

.crc-compare-cell-label {
  font-size: 11px;
  color: #5f6c79;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.crc-compare-cell-amount {
  font-size: 19px;
  font-weight: 700;
  color: #2c3e50;
  margin-top: 2px;
}

/* CTA */
.crc-cta {
  display: block;
  margin-top: 16px;
  background: #1D9771;
  color: #fff !important;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.crc-cta:hover { background: #168862; color: #fff; }

.crc-cta-sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 2px;
}

/* ── DISCLOSURE ─────────────────────────────────────────── */
.crc-disclosure {
  font-size: 12px;
  color: #5f6c79;
  background: #f4f6f8;
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.5;
  margin-top: 18px;
}

.crc-disclosure strong { color: #2c3e50; }

/* Print: keep results panel readable, hide controls */
@media print {
  .crc-controls-col { display: none; }
  .crc-layout { grid-template-columns: 1fr; }
  .crc-results { position: static; border-color: #999; box-shadow: none; }
}
