/* =========================================================================
 * Pricing calculator (start page)
 * Dark theme matching the .pricing-block cards (#424242 / #222222, brand
 * purple #7b4397, accent yellow #fdcc52). Prices come from domain.xml via
 * window.BECKON_PRICING; the maths lives in js/calculator.js.
 * ========================================================================= */

.pricing-calc {
    margin-top: 60px;
    background: #1f1f1f;
    border: 1px solid #2d2d2d;
    border-radius: 14px;
    padding: 38px 40px 30px;
    color: #fff;
    box-shadow: 0 0 18px 4px rgba(123, 67, 151, 0.18);
    font-family: 'Nunito', 'Catamaran', 'Helvetica', 'Arial', sans-serif;
}

.pricing-calc-head { margin-bottom: 30px; }
.pricing-calc-eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
    color: #b07cd6;
}
.pricing-calc-title {
    margin-top: 6px;
    font-family: 'Catamaran', 'Helvetica', 'Arial', sans-serif;
    font-size: 26px; font-weight: 700; color: #fff; letter-spacing: 0.5px;
}

.pricing-calc-body { display: flex; flex-wrap: wrap; gap: 34px; }
.pricing-calc-inputs  { flex: 1 1 320px; }
.pricing-calc-results { flex: 1 1 320px; }

/* ---- Inputs ---- */
.calc-field { margin-bottom: 26px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.calc-field-head label {
    margin: 0; font-size: 15px; font-weight: 600; color: #e2e2e2; letter-spacing: 0.5px;
}
.calc-sub { color: #9a9a9a; font-weight: 400; font-size: 0.85em; }

.calc-num {
    width: 110px; text-align: right;
    background: transparent; color: #fff;
    border: 0; border-bottom: 2px solid #7b4397;
    font-size: 22px; font-weight: 700; padding: 2px 4px;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}
.calc-num:focus { outline: none; border-bottom-color: #fdcc52; }
.calc-num-center { width: 64px; text-align: center; }
.calc-num::-webkit-outer-spin-button,
.calc-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* range slider */
.calc-range {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 6px; border-radius: 999px;
    background: #3a3a3a; outline: none; accent-color: #7b4397;
}
.calc-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: #7b4397; border: 3px solid #fff; cursor: pointer;
}
.calc-range::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    background: #7b4397; border: 3px solid #fff; cursor: pointer;
}
.calc-range-scale {
    display: flex; justify-content: space-between;
    margin-top: 8px; font-size: 11px; color: #8a8a8a;
    font-variant-numeric: tabular-nums;
}

/* stepper */
.calc-stepper { display: flex; align-items: center; gap: 8px; }
.calc-step {
    width: 38px; height: 38px; border-radius: 8px;
    background: #333; color: #fff; border: 1px solid #4a4a4a;
    font-size: 20px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, border-color .2s;
}
.calc-step:hover { background: #7b4397; border-color: #7b4397; }

/* hardware variants (LTE / WIFI) */
.calc-field-title {
    font-size: 15px; font-weight: 600; color: #e2e2e2; letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.calc-hw-variant { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc-hw-variant + .calc-hw-variant { margin-top: 14px; }
.calc-hw-info { display: flex; flex-direction: column; }
.calc-hw-name { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.calc-hw-meta { font-size: 12px; color: #9a9a9a; font-variant-numeric: tabular-nums; }

/* toggle switch */
.calc-toggle { display: flex; align-items: center; gap: 14px; cursor: pointer; margin: 0; }
.calc-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.calc-toggle-track {
    flex: 0 0 auto; position: relative;
    width: 50px; height: 28px; border-radius: 999px;
    background: #3a3a3a; transition: background .2s;
}
.calc-toggle-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff; transition: transform .2s;
}
.calc-toggle input:checked + .calc-toggle-track { background: #7b4397; }
.calc-toggle input:checked + .calc-toggle-track .calc-toggle-thumb { transform: translateX(22px); }
.calc-toggle input:focus-visible + .calc-toggle-track { box-shadow: 0 0 0 3px rgba(123, 67, 151, 0.5); }
.calc-toggle-text { display: flex; flex-direction: column; }
.calc-toggle-name { font-size: 15px; font-weight: 600; color: #e2e2e2; }
.calc-toggle-price { font-size: 13px; color: #9a9a9a; font-variant-numeric: tabular-nums; }

/* ---- Results ---- */
.pricing-calc-results {
    background: #161616; border: 1px solid #2d2d2d; border-radius: 12px;
    padding: 24px 26px;
}
.calc-total-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-bottom: 16px; border-bottom: 1px solid #2d2d2d;
}
.calc-total-label { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: #9a9a9a; }
.calc-total-value {
    font-size: 32px; font-weight: 800; color: #b07cd6;
    font-variant-numeric: tabular-nums; letter-spacing: 0.5px; white-space: nowrap;
}
.calc-breakdown { list-style: none; margin: 16px 0 0; padding: 0; }
.calc-breakdown li {
    display: flex; justify-content: space-between;
    font-size: 14px; color: #cfcfcf; padding: 5px 0;
    font-variant-numeric: tabular-nums;
}
.calc-breakdown li > span:last-child { font-weight: 700; color: #fff; white-space: nowrap; }
.calc-mult { color: #8a8a8a; font-weight: 400; font-size: 0.9em; }

.calc-onetime-row {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-top: 14px; padding-top: 14px; border-top: 1px solid #2d2d2d;
    font-size: 15px; color: #cfcfcf; font-variant-numeric: tabular-nums;
}
.calc-onetime-row > span:last-child { font-weight: 800; color: #fff; font-size: 18px; white-space: nowrap; }

.calc-tiers { margin-top: 18px; }
.calc-tiers-title {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
    color: #8a8a8a; margin-bottom: 6px;
}
.calc-tiers-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px; color: #b8b8b8; font-variant-numeric: tabular-nums;
}
.calc-tiers-table td { padding: 4px 0; }
.calc-tiers-table td:nth-child(2) { text-align: center; color: #8a8a8a; }
.calc-tiers-table td:last-child { text-align: right; color: #e2e2e2; font-weight: 600; }
.calc-tiers-table tr + tr td { border-top: 1px solid #242424; }

/* ---- Footnote ---- */
.pricing-calc-note {
    margin: 26px 0 0; font-size: 12px; line-height: 1.6; color: #8a8a8a; text-align: center;
}

@media (max-width: 575px) {
    .pricing-calc { padding: 26px 20px 24px; }
    .pricing-calc-body { gap: 24px; }
    .pricing-calc-title { font-size: 22px; }
}
