/* ============================================================
   PHEV Savings Calculator — Frontend Styles
   Dark theme matching EV calculator. Font: futura-pt-bold.
   ============================================================ */

.phev-calc-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 30px;
    background: #000;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-family: futura-pt-bold, sans-serif;
    box-sizing: border-box;
}

/* ── Labels ─────────────────────────────────────────────────── */
.phev-input-label {
    display: block;
    font-weight: bold;
    font-size: 1.05em;
    margin-bottom: 10px;
    text-align: left;
    font-family: futura-pt-bold, sans-serif;
}

.phev-label-hint {
    display: block;
    font-size: 0.75em;
    color: #aaa;
    font-weight: normal;
    margin-top: 3px;
}

/* ── KM input ───────────────────────────────────────────────── */
.phev-calc-container input[type="number"] {
    width: 100%;
    padding: 15px;
    font-size: 1em;
    background: #222;
    border: none;
    color: #fff;
    border-radius: 6px;
    margin-bottom: 14px;
    box-sizing: border-box;
    font-family: futura-pt-bold, sans-serif;
}

.phev-calc-container input[type="number"]::placeholder {
    color: rgba(255,255,255,0.6);
}

/* ── Unit toggle ────────────────────────────────────────────── */
.phev-unit-toggle {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 10px;
    flex-wrap: wrap;
}

.phev-unit-btn {
    flex: 1 1 30%;
    padding: 12px;
    background: #111;
    color: #fff;
    border: 2px solid #d0202e;
    font-weight: bold;
    font-size: 0.95em;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: futura-pt-bold, sans-serif;
}

.phev-unit-btn:hover,
.phev-unit-btn.active {
    background: #d0202e;
    color: #fff;
}

/* ── Trip mix toggle ────────────────────────────────────────── */
.phev-trip-toggle {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 10px;
    flex-wrap: wrap;
}

.phev-trip-btn {
    flex: 1 1 30%;
    padding: 12px 8px;
    background: #111;
    color: #fff;
    border: 2px solid #444;
    font-weight: bold;
    font-size: 0.85em;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-family: futura-pt-bold, sans-serif;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.phev-trip-btn span {
    font-size: 0.78em;
    color: #aaa;
    font-weight: normal;
}

.phev-trip-btn:hover,
.phev-trip-btn.active {
    background: #1a1a1a;
    border-color: #d0202e;
}

.phev-trip-btn.active span {
    color: #d0202e;
}

/* ── CTA button ─────────────────────────────────────────────── */
#phev_calculate_btn {
    width: 100%;
    background: #d0202e;
    color: #fff;
    padding: 16px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 28px;
    transition: background 0.2s ease;
    font-family: futura-pt-bold, sans-serif;
    letter-spacing: 0.03em;
}

#phev_calculate_btn:hover {
    background: #a0001e;
}

/* ── Results wrapper ────────────────────────────────────────── */
.phev-results {
    text-align: center;
}

/* ── Headline ───────────────────────────────────────────────── */
.phev-headline {
    background: #111;
    border-radius: 10px;
    padding: 28px 24px 22px;
    margin-bottom: 16px;
}

.phev-headline-label {
    font-size: 1em;
    color: #ccc;
    margin: 0 0 8px;
    font-family: futura-pt-bold, sans-serif;
}

.phev-accent {
    color: #d0202e;
    font-weight: bold;
}

.phev-headline-amount {
    font-size: 3em;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    margin: 0 0 10px;
    animation: phevFadeIn 0.4s ease-in-out;
    font-family: futura-pt-bold, sans-serif;
}

.phev-headline-amount.is-negative {
    color: #ff6b6b;
}

.phev-headline-sub {
    font-size: 0.85em;
    color: #aaa;
    margin: 0;
    font-family: futura-pt-bold, sans-serif;
}

/* ── Breakdown grid ─────────────────────────────────────────── */
.phev-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .phev-breakdown-grid {
        grid-template-columns: 1fr;
    }
}

.phev-breakdown-card {
    background: #111;
    border-radius: 10px;
    padding: 18px 14px;
    text-align: center;
    transition: opacity 0.2s;
}

.phev-breakdown-card.is-excluded {
    opacity: 0.4;
}

.phev-card-icon {
    font-size: 1.4em;
    margin-bottom: 6px;
}

.phev-card-label {
    font-size: 0.75em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    font-family: futura-pt-bold, sans-serif;
}

.phev-card-amount {
    font-size: 1.25em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 4px;
    font-family: futura-pt-bold, sans-serif;
}

.phev-card-amount.is-negative {
    color: #ff6b6b;
}

.phev-card-sub {
    font-size: 0.72em;
    color: #777;
    font-family: futura-pt-bold, sans-serif;
}

/* ── Disclaimer ─────────────────────────────────────────────── */
.phev-disclaimer {
    font-size: 0.72em;
    color: #555;
    margin: 0;
    font-family: futura-pt-bold, sans-serif;
}

/* ── Animation ──────────────────────────────────────────────── */
@keyframes phevFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
