/* ARO Savings Calculator — Frontend Styles */

.aro-section {
  --aro-bg:           transparent;
  --aro-panel:        #2a3034;
  --aro-panel-head:   #0e4773;
  --aro-accent:       #c9a84c;
  --aro-accent-lt:    #e8c97a;
  --aro-accent-dim:   #7a6130;
  --aro-blue:         #0089d1;
  --aro-navy:         #0e4773;
  --aro-text:         #ffffff;
  --aro-muted:        #a0b8cc;
  --aro-border:       rgba(0,137,209,0.22);
  --aro-track-bg:     #1a3a5c;
  --aro-result-text:  #e8c97a;
  --aro-cta-border:   #0089d1;
  --aro-cta-text:     #ffffff;
  --aro-cta-hover-bg: #0089d1;
  --aro-cta-hover-tx: #ffffff;
  --aro-font:         'Inter', sans-serif;

  position: relative;
  width: 100%;
  background: var(--aro-bg);
  overflow: hidden;
  padding: 60px 24px 70px;
  font-family: var(--aro-font);
  color: var(--aro-text);
  box-sizing: border-box;
}

.aro-section *, .aro-section *::before, .aro-section *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Centered single-column wrapper ─────────────────────────── */
.aro-inner {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Calculator panel ────────────────────────────────────────── */
.aro-calc-panel {
  width: 100%;
  background: var(--aro-panel);
  border: 1px solid var(--aro-border);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 24px 64px rgba(0,0,0,0.35),
    0 0 0 1px rgba(0,137,209,0.08) inset;
  animation: aroPanelFade 0.55s ease both;
}

@keyframes aroPanelFade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* corner ornaments — gold */
.aro-calc-panel::before, .aro-calc-panel::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--aro-accent);
  border-style: solid;
  opacity: 0.45;
  z-index: 2;
  pointer-events: none;
}
.aro-calc-panel::before { top: 9px; left: 9px; border-width: 1px 0 0 1px; }
.aro-calc-panel::after  { bottom: 9px; right: 9px; border-width: 0 1px 1px 0; }

/* panel header */
.aro-panel-head {
  background: var(--aro-panel-head);
  border-bottom: 1px solid rgba(0,137,209,0.3);
  padding: 24px 32px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.aro-panel-head::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--aro-accent), transparent);
  opacity: 0.5;
}

.aro-panel-eyebrow {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.aro-panel-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.2;
}
.aro-panel-sub {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aro-accent);
  margin-top: 6px;
  opacity: 0.85;
}

/* panel body */
.aro-panel-body { padding: 26px 30px 24px; }

/* field */
.aro-field { margin-bottom: 22px; }
.aro-field-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--aro-muted);
  display: block;
  margin-bottom: 9px;
}

/* select */
.aro-sel-wrap { position: relative; }
.aro-sel-wrap::after {
  content: '';
  position: absolute;
  right: 13px; top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--aro-blue);
  opacity: 0.8;
  pointer-events: none;
}
.aro-sel-wrap select {
  width: 100%;
  padding: 11px 36px 11px 13px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,137,209,0.3);
  border-radius: 4px;
  color: var(--aro-text);
  font-family: var(--aro-font);
  font-size: 13px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.aro-sel-wrap select:hover,
.aro-sel-wrap select:focus {
  outline: none;
  border-color: var(--aro-blue);
  background: rgba(0,137,209,0.08);
}
.aro-sel-wrap select option { background: #2a3034; color: #fff; }

/* spend display */
.aro-spend-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--aro-text);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

/* slider track */
.aro-track {
  position: relative;
  height: 4px;
  background: var(--aro-track-bg);
  border-radius: 4px;
  margin: 10px 0 6px;
}
.aro-track-fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  background: linear-gradient(90deg, var(--aro-navy), var(--aro-blue));
  border-radius: 4px;
  pointer-events: none;
}

/* range input */
.aro-section input[type=range] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  position: relative;
  z-index: 2;
  cursor: pointer;
  margin: 0;
  display: block;
}
.aro-section input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--aro-blue);
  box-shadow: 0 0 0 3px rgba(0,137,209,0.15), 0 2px 6px rgba(0,0,0,0.3);
  cursor: grab;
  margin-top: -7px;
  transition: transform 0.12s, box-shadow 0.12s;
}
.aro-section input[type=range]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(0,137,209,0.2), 0 2px 8px rgba(0,0,0,0.35);
}
.aro-section input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--aro-blue);
}
.aro-section input[type=range]::-webkit-slider-runnable-track { background: transparent; }
.aro-section input[type=range]::-moz-range-track { background: transparent; }

/* tick labels */
.aro-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: var(--aro-muted);
  letter-spacing: 0.05em;
  margin-top: 5px;
  font-weight: 500;
}

/* result box */
.aro-result-box {
  background: var(--aro-navy);
  border: 1px solid rgba(0,137,209,0.35);
  border-radius: 4px;
  padding: 20px 22px;
  text-align: center;
  margin: 6px 0 22px;
  position: relative;
  overflow: hidden;
}
.aro-result-box::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(0,137,209,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.aro-result-eyebrow {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 5px;
}
.aro-result-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--aro-result-text);
  line-height: 1;
  text-shadow: 0 0 28px rgba(232,201,122,0.35);
  transition: transform 0.15s, text-shadow 0.15s;
  letter-spacing: -0.02em;
  position: relative;
}
.aro-result-num.aro-pop {
  transform: scale(1.04);
  text-shadow: 0 0 48px rgba(232,201,122,0.55);
}
.aro-result-note {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  margin-top: 7px;
  letter-spacing: 0.03em;
}
.aro-result-note b { color: rgba(255,255,255,0.9); font-weight: 600; }

/* divider */
.aro-hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,137,209,0.3), transparent);
  margin: 0 0 22px;
}

/* CTA */
.aro-cta {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: 1px solid var(--aro-cta-border);
  border-radius: 4px;
  color: var(--aro-cta-text);
  font-family: var(--aro-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.25s;
}
.aro-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--aro-cta-hover-bg);
  opacity: 0;
  transition: opacity 0.25s;
}
.aro-cta:hover::before { opacity: 1; }
.aro-cta:hover { color: var(--aro-cta-hover-tx); text-decoration: none; }
.aro-cta:active { transform: translateY(1px); }
.aro-cta span { position: relative; z-index: 1; }

/* panel footer */
.aro-panel-foot {
  border-top: 1px solid rgba(0,137,209,0.18);
  padding: 13px 30px;
  font-size: 9.5px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.65;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 560px) {
  .aro-section { padding: 40px 16px 50px; }
  .aro-panel-body { padding: 22px 18px 20px; }
  .aro-panel-head { padding: 20px 18px 16px; }
  .aro-panel-foot { padding: 12px 18px; }
  .aro-result-num { font-size: 36px; }
}
