/* ============================================
   RenterCalc.com — Calculator Page Styles
   ============================================ */

/* ===== PAGE HERO ===== */
.calc-hero {
  background: linear-gradient(160deg, #EFF6FF 0%, #DBEAFE 40%, #F0F9FF 100%);
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--blue-mid);
}
.calc-hero-inner { text-align: center; }

.calc-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.calc-breadcrumb a { color: var(--blue); }
.calc-breadcrumb a:hover { text-decoration: underline; }
.calc-breadcrumb i { font-size: .65rem; }

.calc-h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -.5px;
  margin-bottom: 8px;
}
.calc-subheadline {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 18px;
}
.calc-trust-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.calc-trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--blue-mid);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 40px;
  box-shadow: var(--shadow-sm);
}

/* ===== CALCULATOR LAYOUT ===== */
.calc-section {
  padding: 48px 0 80px;
  background: #F1F5F9;
}
.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
}

/* ===== FORM CARD ===== */
.calc-card {
  background: var(--white);
  border: 1px solid #DDE3EE;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(37,99,235,.10), 0 2px 8px rgba(0,0,0,.05);
  /* NOTE: overflow must NOT be hidden — it clips date picker dropdowns */
  overflow: visible;
  position: relative;
}

/* Gradient top accent bar — clipped only within itself */
.calc-card::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #1D4ED8 0%, #2563EB 50%, #60A5FA 100%);
  border-radius: 18px 18px 0 0;
}

/* ---- Card header ---- */
.calc-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px 20px;
  border-bottom: 1px solid #EEF1F7;
}
.calc-card-header-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #2563EB, #60A5FA);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37,99,235,.28);
}
.calc-card-header-icon i { font-size: 1.1rem; color: #fff; }
.calc-card-header-text h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -.2px;
  margin-bottom: 3px;
}
.calc-card-header-text p {
  font-size: .76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #16A34A;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.85); }
}

/* ---- Step indicators ---- */
.form-steps {
  display: flex;
  align-items: center;
  padding: 14px 32px;
  background: #F8FAFF;
  border-bottom: 1px solid #EEF1F7;
}
.form-step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #94A3B8;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-step-label {
  font-size: .7rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.form-step.active .form-step-num {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.form-step.active .form-step-label { color: var(--blue); }
.form-step-line {
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  margin: 0 10px;
  border-radius: 2px;
}

/* ===== FORM FIELDS ===== */
#deposit-form {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

.form-group label {
  font-size: .72rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.form-group label i {
  color: var(--blue);
  font-size: .8rem;
  width: 14px;
  text-align: center;
}

.req { color: #EF4444; margin-left: 1px; }

/* ---- Select field ---- */
.select-wrap { position: relative; }
.select-wrap select {
  width: 100%;
  height: 52px;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font);
  font-size: .97rem;
  font-weight: 500;
  color: var(--text-dark);
  background: #FAFBFF;
  border: 2px solid #DDE3EE;
  border-radius: 10px;
  padding: 0 52px 0 16px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.select-wrap select:hover { border-color: #B6C2D5; }
.select-wrap select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.select-arrow-wrap {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: #F1F5F9;
  border-left: 1.5px solid #DDE3EE;
  border-radius: 0 10px 10px 0;
  transition: background .18s;
}
.select-wrap:focus-within .select-arrow-wrap {
  background: #EFF6FF;
  border-color: var(--blue);
}
.select-arrow {
  font-size: .7rem;
  color: var(--blue);
  position: static !important;
  transform: none !important;
  top: auto !important;
  right: auto !important;
}

/* ---- Dollar amount field ---- */
.input-prefix-wrap {
  display: flex;
  height: 52px;
  position: relative;
}
.input-prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--blue);
  border-right: none;
  border-radius: 10px 0 0 10px;
  transition: background .18s, border-color .18s;
}
.input-prefix-wrap:focus-within .input-prefix {
  background: #1D4ED8;
  border-color: #1D4ED8;
}
.input-prefix-wrap input {
  flex: 1;
  height: 52px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #FAFBFF;
  border: 2px solid #DDE3EE;
  border-left: none;
  border-radius: 0 10px 10px 0;
  padding: 0 16px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input-prefix-wrap input:hover { border-color: #B6C2D5; }
.input-prefix-wrap input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}

/* Date picker removed — native date inputs used instead */

/* ---- Field hint ---- */
.field-hint {
  font-size: .74rem;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.field-hint i { color: var(--blue); }

/* ---- Date pair side by side ---- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row .form-group { margin-bottom: 0; }

/* ---- Section divider ---- */
.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 22px;
  font-size: .68rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #EEF1F7;
}

/* ---- Error states ---- */
.has-error .select-wrap select,
.has-error .input-prefix-wrap input,
.has-error .input-icon-wrap input[type="date"] {
  border-color: #EF4444 !important;
  background: #FFF8F8 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1) !important;
}
.has-error .input-prefix {
  background: #EF4444 !important;
  border-color: #EF4444 !important;
}
.has-error .select-arrow-wrap,
.has-error .input-date-icon {
  border-color: #EF4444 !important;
  background: #FEE2E2 !important;
}
.field-error {
  font-size: .74rem;
  color: #EF4444;
  font-weight: 600;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 1.1em;
}

/* ---- Submit button ---- */
.btn-calc {
  width: 100%;
  justify-content: center;
  height: 56px;
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 10px;
  border-radius: 12px;
  letter-spacing: .3px;
  box-shadow: 0 4px 18px rgba(37,99,235,.38);
  gap: 10px;
}
.btn-calc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,99,235,.48);
}
.btn-calc:active { transform: translateY(0); }

/* ---- Privacy note ---- */
.form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: .74rem;
  color: var(--text-muted);
}
.form-privacy i { color: #16A34A; }


/* ===== RESULTS CARD ===== */
.results-card { border-radius: 18px; }

.results-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid #EEF1F7;
  background: #FAFBFF;
}
.results-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 12px;
}
.badge-overdue { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.badge-ontime  { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.badge-neutral { background: var(--blue-light); color: var(--blue); border: 1px solid var(--blue-mid); }

.results-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.results-state-label { font-size: .88rem; color: var(--text-muted); }

.results-table-wrap { padding: 24px 32px 0; }
.results-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.results-table tr { border-bottom: 1px solid #EEF1F7; }
.results-table tr:last-child { border-bottom: none; }
.results-table th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 16px 12px 0;
  width: 40%;
  vertical-align: top;
  white-space: nowrap;
}
.results-table td {
  padding: 12px 0;
  color: var(--text-dark);
  vertical-align: top;
  line-height: 1.5;
}
.results-table code {
  font-family: 'Courier New', monospace;
  font-size: .82rem;
  background: #F1F5F9;
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--blue-dark);
}
.row-note    { font-size: .83rem; color: var(--text-muted); }
.text-red    { color: #DC2626; }
.text-green  { color: #16A34A; }
.text-orange { color: #D97706; }
.text-muted  { color: var(--text-muted); }

.results-total {
  margin: 24px 32px;
  padding: 24px 28px;
  border-radius: 14px;
  text-align: center;
}
.total-overdue { background: linear-gradient(135deg, #FEF2F2, #FFF7F7); border: 2px solid #FECACA; }
.total-ontime  { background: linear-gradient(135deg, #F0FDF4, #F7FFF9); border: 2px solid #BBF7D0; }
.total-label {
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.total-amount {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.total-overdue .total-amount { color: #DC2626; }
.total-ontime  .total-amount { color: #16A34A; }
.total-breakdown {
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.total-note { font-size: .76rem; font-style: italic; }

.results-callout {
  margin: 0 32px 24px;
  padding: 20px 22px;
  border-radius: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.callout-overdue { background: #DC2626; color: #fff; }
.callout-ontime  { background: #F0FDF4; border: 1px solid #BBF7D0; color: var(--text-dark); }
.callout-neutral { background: var(--blue-light); border: 1px solid var(--blue-mid); color: var(--text-dark); }
.callout-icon    { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.callout-overdue .callout-icon { color: rgba(255,255,255,.9); }
.callout-ontime  .callout-icon { color: #16A34A; }
.callout-neutral .callout-icon { color: var(--blue); }
.callout-body { flex: 1; }
.callout-body strong { display: block; font-weight: 700; margin-bottom: 6px; font-size: .97rem; }
.callout-overdue .callout-body strong { color: #fff; }
.callout-body p { font-size: .88rem; line-height: 1.55; margin-bottom: 12px; }
.callout-overdue .callout-body p { color: rgba(255,255,255,.88); }
.callout-body em { font-style: italic; }

.results-actions {
  display: flex;
  gap: 12px;
  padding: 0 32px 24px;
  flex-wrap: wrap;
}
.btn-outline {
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.btn-outline:hover { background: var(--blue-light); color: var(--blue-dark); }

.results-disclaimer {
  margin: 0 32px 28px;
  font-size: .76rem;
  color: var(--text-faint);
  display: flex;
  gap: 7px;
  align-items: flex-start;
  line-height: 1.5;
}
.results-disclaimer i { margin-top: 2px; flex-shrink: 0; }


/* ===== SIDEBAR ===== */
.calc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-card h3 i { color: var(--blue); }
.sidebar-card p {
  font-size: .85rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 14px;
}
.sidebar-tips { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.sidebar-tips li {
  font-size: .83rem;
  color: var(--text-body);
  line-height: 1.55;
  padding-left: 18px;
  position: relative;
}
.sidebar-tips li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.sidebar-card--blue { background: var(--blue); border-color: var(--blue); }
.sidebar-card--blue h3 { color: var(--white); }
.sidebar-card--blue h3 i { color: rgba(255,255,255,.8); }
.sidebar-card--blue p { color: rgba(255,255,255,.85); margin-bottom: 16px; }


/* ===== FAQ SECTION ===== */
.faq-section { padding: 80px 0; background: var(--white); }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: .97rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-light); }
.faq-open .faq-question { background: var(--blue-light); color: var(--blue); }
.faq-icon {
  font-size: .75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}
.faq-open .faq-icon { transform: rotate(180deg); color: var(--blue); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer p {
  padding: 0 24px 20px;
  font-size: .92rem;
  color: var(--text-body);
  line-height: 1.7;
}
.faq-answer a { color: var(--blue); text-decoration: underline; }


/* ===== STATE QUICK REFERENCE TABLE ===== */
.state-table-section { padding: 80px 0; background: var(--bg-section); }
.state-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  position: relative;
}
.state-ref-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.state-ref-table thead { background: var(--text-dark); color: var(--white); }
.state-ref-table th {
  padding: 14px 18px;
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.state-ref-table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
.state-ref-table tbody tr:last-child { border-bottom: none; }
.state-ref-table tbody tr:hover { background: var(--blue-light); }
.state-ref-table td { padding: 12px 18px; color: var(--text-body); vertical-align: top; line-height: 1.45; }
.state-link { font-weight: 600; color: var(--blue); white-space: nowrap; }
.state-link:hover { text-decoration: underline; }
.penalty-cell { max-width: 260px; }
.center-cell  { text-align: center; }
.tbl-yes { display: inline-flex; align-items: center; gap: 5px; color: #16A34A; font-weight: 600; font-size: .82rem; }
.tbl-no  { color: var(--text-faint); font-size: .82rem; }
.table-note {
  margin-top: 14px;
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.5;
}
.table-note i { margin-top: 2px; flex-shrink: 0; color: var(--blue); }

/* ===== STATE TABLE / CARDS — visibility controlled by JS only =====
   No display rules here. CSS !important would prevent JS element.style.display
   from ever winning. JS in buildStateTable() is the sole authority. */

/* Card inner styles — not inside media query so they always parse */
.state-card {
  background: #ffffff;
  border: 1px solid #DDE3EE;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.state-card-name {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.state-card-link { color: #2563EB; text-decoration: none; }
.state-card-link:hover { text-decoration: underline; }
.state-card-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #F1F5F9;
}
.state-card-label { font-size: .8rem; font-weight: 500; color: #64748B; -ms-flex-negative: 0; flex-shrink: 0; }
.state-card-value { font-size: .85rem; font-weight: 600; color: #1E293B; text-align: right; }
.state-card-value--interest.is-yes { color: #16A34A; }
.state-card-value--interest.is-no  { color: #94A3B8; }


/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .sidebar-card:first-child { grid-column: 1 / -1; }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 640px) {
  .calc-section { padding: 24px 0 52px; }

  /* Card header & steps */
  .calc-card-header { padding: 18px 20px 16px; gap: 12px; }
  .calc-card-header-icon { width: 40px; height: 40px; border-radius: 10px; }
  .calc-card-header-text h2 { font-size: 1rem; }
  .form-steps { padding: 12px 20px; }
  .form-step-label { display: none; }

  /* Form padding */
  #deposit-form { padding: 20px 20px 24px; }

  /* Date fields stacked */
  .form-row { grid-template-columns: 1fr; }
  .form-row .form-group:first-child { margin-bottom: 22px; }

  /* Results */
  .results-header { padding: 20px 20px 16px; }
  .results-table-wrap { padding: 14px 18px 0; }
  .results-table th[scope="row"] { white-space: normal; padding-right: 10px; font-size: .82rem; width: 38%; }
  .results-total   { margin: 14px 18px; padding: 18px 16px; }
  .results-callout { margin: 0 18px 18px; flex-direction: column; gap: 10px; }
  .results-actions { padding: 0 18px 18px; flex-direction: column; }
  .results-actions .btn { width: 100%; justify-content: center; }
  .results-disclaimer { margin: 0 18px 20px; }

  /* Sidebar */
  .calc-sidebar { grid-template-columns: 1fr; }

  /* FAQ */
  .faq-question { padding: 16px 18px; font-size: .92rem; }
  .faq-answer p { padding: 0 18px 16px; }

  /* State table */
  .state-ref-table th,
  .state-ref-table td { padding: 10px 12px; }
}

/* ===== NATIVE DATE INPUT ===== */

/* Wrapper: mirrors .input-prefix-wrap — icon panel on left, input on right */
.date-input-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 52px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border: 1.5px solid #DDE3EE;
  border-radius: 10px;
  background: #FAFBFF;
  overflow: hidden;
  -webkit-transition: border-color .18s, box-shadow .18s, background .18s;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

.date-input-wrap:hover {
  border-color: #B6C2D5;
  background: #fff;
}

.date-input-wrap:focus-within {
  border-color: #2563EB;
  background: #fff;
  -webkit-box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.has-error .date-input-wrap {
  border-color: #EF4444;
  background: #FFF8F8;
  -webkit-box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}

/* Left icon panel — mirrors .input-prefix style but uses light blue */
.date-input-icon {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 48px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  background: #EFF6FF;
  border-right: 1.5px solid #DDE3EE;
  -webkit-transition: background .18s, border-color .18s;
  transition: background .18s, border-color .18s;
  pointer-events: none;
}

.date-input-icon i {
  font-size: 15px;
  color: #2563EB;
}

.date-input-wrap:focus-within .date-input-icon {
  background: #DBEAFE;
  border-color: #93C5FD;
}

/* The actual <input type="date"> */
input.date-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #0F172A;
  cursor: pointer;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Placeholder colour (empty state) */
input.date-input:not(:valid),
input.date-input[value=""] {
  color: #94A3B8;
}

/* Blue calendar picker icon (right side) */
input.date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  -webkit-filter: invert(29%) sepia(92%) saturate(1800%) hue-rotate(215deg) brightness(95%);
  filter: invert(29%) sepia(92%) saturate(1800%) hue-rotate(215deg) brightness(95%);
  padding: 4px;
  margin-right: 4px;
  -webkit-transition: opacity .15s;
  transition: opacity .15s;
}

input.date-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
