/* Cost calculator page */

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

@keyframes ccPopIn {
    from { opacity: 0; transform: scale(.94); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes ccWaveSweep {
    0% { transform: translateX(-120%); }
    55% { transform: translateX(220%); }
    100% { transform: translateX(220%); }
}

@media (prefers-reduced-motion: reduce) {
    .cc-panel--question:not([hidden]),
    .cc-option,
    .cc-results-summary,
    .cc-top-badge::after {
        animation: none !important;
    }
}

body:has(.cost-calc-page) {
    --glow-blue-pos: 88% 80%;
    --glow-orange-pos: 5% 15%;
}

.cost-calc-page {
    /* Background grid + glow now come from the sitewide body::before layer
       (main.css); this page just stays transparent so it shows through. */
    padding: 48px 0;
}

.cost-calc-page .container {
    width: 100%;
}

.cost-calc-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.cost-calc-info {
    padding-top: 0;
}

.cc-top-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-500, #002F6C);
    background-color: var(--blue-250, #e9f7ff);
    border-radius: 999px;
    padding: 7px 14px;
    margin-bottom: 20px;
    overflow: hidden;
    /* On mobile this becomes a direct grid item (the info column switches
       to display:contents), and grid items stretch to the column width by
       default — override that so the pill still hugs its text. */
    justify-self: start;
    width: fit-content;
}

.cc-top-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    animation: ccWaveSweep 3.2s ease-in-out infinite;
    animation-delay: 1s;
}

.cc-top-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--blue-400, #066fd1);
    flex-shrink: 0;
}

.cost-calc-eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--blue-400, #066fd1);
    margin-bottom: 12px;
    text-align: center;
}

.cost-calc-info h1 {
    font-size: 42px;
    line-height: 1.18;
    font-weight: 800;
    color: #111;
    margin: 0 0 18px;
}

.cc-intro {
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray-650, #3e3e59);
    margin: 0 0 24px;
}

.cc-intro strong {
    color: #111;
}

.cost-calc-info h1 mark {
    background-color: transparent;
    background-image: linear-gradient(#8fbcff, #8fbcff);
    background-repeat: no-repeat;
    background-size: 100% 36%;
    background-position: 0 86%;
    color: inherit;
    padding: 0 4px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.cc-trust {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-650, #3e3e59);
    text-decoration: none;
    margin-top: 20px;
    border-top: 1px solid var(--gray-400, #e2e4e8);
    padding-top: 20px;
}

.cc-trust-text {
    line-height: 1.4;
}

.cc-trust-dot {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background-color: #1e9e5a;
    flex-shrink: 0;
}

.cc-trust strong {
    color: #111;
}

.cc-tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--gray-650, #3e3e59);
}

.cc-tip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 17px;
    line-height: 1;
}

.cc-tip--blue { background: #edf4ff; }
.cc-tip--blue .cc-tip-icon { background: #d7e6ff; }

.cc-tip--orange { background: #fff6e8; }
.cc-tip--orange .cc-tip-icon { background: #ffe9c2; }

.cc-tip--purple { background: #f4efff; }
.cc-tip--purple .cc-tip-icon { background: #e3d6ff; }

.cc-tip--teal { background: #e9fbf6; }
.cc-tip--teal .cc-tip-icon { background: #c9f3e6; }

.cc-tip--green { background: #eafbee; }
.cc-tip--green .cc-tip-icon { background: #cdf3d6; }

.cc-tip--gray { background: #f2f4f7; }
.cc-tip--gray .cc-tip-icon { background: #e2e6ec; }

.cc-how {
    margin-top: 32px;
}

.cc-how-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--blue-400, #066fd1);
    margin: 0 0 16px;
}

.cc-how-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cc-how-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.cc-how-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--blue-250, #e9f7ff);
    color: var(--blue-500, #002F6C);
    font-size: 13px;
    font-weight: 800;
}

.cc-how-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cc-how-copy strong {
    font-size: 15px;
    color: #111;
}

.cc-how-copy span {
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-650, #3e3e59);
}

.cost-calc-card {
    width: 100%;
    height: 520px;
    background-color: #fff;
    border: none;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12), 0 6px 20px rgba(15, 23, 42, 0.05);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cc-topbar {
    margin: -40px -36px 12px;
    padding: 18px 36px 12px;
    background-color: #fff;
}

.cc-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cc-back {
    border: none;
    background: none;
    padding: 6px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500, #8997ab);
    cursor: pointer;
}

.cc-back:hover {
    color: var(--black, #0b0b0b);
}

.cc-back:disabled {
    opacity: .55;
    cursor: default;
    pointer-events: none;
}

.cc-back:disabled:hover {
    color: var(--gray-500, #8997ab);
}

.cc-step-pill {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--blue-500, #002F6C);
    background-color: var(--blue-250, #e9f7ff);
    border-radius: 999px;
    padding: 6px 14px;
    margin-left: auto;
}

.cc-progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background-color: var(--gray-200, #f2f2f2);
    overflow: hidden;
}

.cc-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--blue-300, #b0cbff), var(--blue-400, #066fd1));
    border-radius: 3px;
    transition: width .3s ease-out;
}

.cc-panel {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.cc-panel--question:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: ccFadeSlideIn .4s ease-out;
}

.cc-question {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
    margin: 0 0 24px;
    text-align: center;
}

.cc-options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cc-option {
    width: 100%;
    text-align: center;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    color: #111;
    background-color: var(--blue-200, #f6f8fb);
    border: 1.5px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s ease-in-out, background-color .15s ease-in-out, transform .15s ease-in-out;
    animation: ccFadeSlideIn .35s ease-out both;
}

.cc-option:nth-child(1) { animation-delay: .02s; }
.cc-option:nth-child(2) { animation-delay: .06s; }
.cc-option:nth-child(3) { animation-delay: .10s; }
.cc-option:nth-child(4) { animation-delay: .14s; }
.cc-option:nth-child(5) { animation-delay: .18s; }
.cc-option:nth-child(6) { animation-delay: .22s; }

.cc-option:hover {
    border-color: var(--blue-300, #b0cbff);
    background-color: var(--blue-250, #e9f7ff);
}

.cc-option.is-selected {
    border-color: var(--blue-400, #066fd1);
    background-color: var(--blue-250, #e9f7ff);
    transform: scale(0.99);
}

/* Results */

.cc-results-eyebrow {
    margin-bottom: 8px;
}

.cc-results-card {
    padding: 18px 22px;
    border-radius: 20px;
    background: linear-gradient(160deg, #00305e 0%, #0054a6 50%, #0f6fff 100%);
    animation: ccPopIn .5s ease-out;
}

.cc-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.cc-results-card.cc-focus-revenue .cc-results-grid {
    grid-template-columns: 1fr;
}

.cc-results-card.cc-focus-revenue .cc-results-summary {
    display: none;
}

.cc-results-card.cc-focus-revenue .cc-revenue-card {
    border-left: none;
    padding-left: 0;
}

.cc-results-summary {
    text-align: center;
}

.cc-results-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}

.cc-results-total {
    margin: 0 0 4px;
}

.cc-results-total #ccTotalMonthly {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.cc-results-period {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-left: 4px;
}

.cc-results-yearly {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cc-disclaimer {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.3;
    color: var(--gray-500, #8997ab);
    text-align: center;
}

.cc-revenue-card {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
}

.cc-revenue-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 6px;
}

.cc-revenue-amount {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.cc-revenue-mask {
    display: inline-block;
    filter: blur(5px);
    user-select: none;
}

.cc-revenue-note {
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0;
}

.cc-revenue-ribbon {
    display: inline-block;
    background: linear-gradient(135deg, #ffe08a 0%, #f0b429 55%, #d69a12 100%);
    color: #4a2e00;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.3;
    padding: 5px 14px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    margin-top: 2px;
}

.cc-form-wrap {
    border-top: 1px solid var(--gray-400, #e2e4e8);
    margin-top: 10px;
    padding-top: 10px;
}

.cc-form-title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
    text-align: center;
}

.cc-form {
    display: flex;
    flex-direction: column;
}

.cc-form-step:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cc-form-row {
    display: flex;
    gap: 10px;
}

.cc-form-row input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #111;
    border: 1px solid var(--gray-400, #e2e4e8);
    border-radius: 8px;
    background-color: #fff;
    text-align: center;
}

.cc-form-row input:focus {
    outline: none;
    border-color: var(--blue-400, #066fd1);
}

.cc-consent-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.4;
    color: var(--gray-650, #3e3e59);
    cursor: pointer;
    margin: 2px 0;
}

.cc-consent-row input {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    cursor: pointer;
    accent-color: var(--blue-400, #066fd1);
}

.cc-consent-row a {
    color: var(--blue-500, #002F6C);
    text-decoration: underline;
}

.cc-form-error {
    display: none;
    font-size: 12px;
    color: #e14343;
    text-align: center;
}

.cc-form-error.visible {
    display: block;
}

.cc-form-submit {
    margin-top: 4px;
    width: 100%;
    text-align: center;
    font-size: 15px;
    padding: 11px 16px;
}

.cc-form-success {
    display: none;
    text-align: center;
}

.cc-form-success.is-visible {
    display: block;
}

.cc-form-success-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500, #8997ab);
    margin: 0;
}

/* Real Vertikl KPI bar, with a hover/focus tooltip on each card explaining
   what the number measures and what Vertikl improves. */

.cc-kpi-section {
    margin-bottom: 56px;
}

.cc-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
    align-items: stretch;
    width: 100%;
}

.cc-kpi-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 18px;
    background-color: #fff;
    border: 1px solid var(--gray-400, #e2e4e8);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.cc-kpi-info {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: var(--gray-400, #e2e4e8);
    color: var(--gray-650, #3e3e59);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    padding: 0;
}

.cc-kpi-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 240px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--blue-500, #002F6C);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
}

.cc-kpi-tooltip strong {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9fc2ff;
    margin-top: 8px;
}

.cc-kpi-tooltip strong:first-child {
    margin-top: 0;
}

.cc-kpi-info:hover .cc-kpi-tooltip,
.cc-kpi-info:focus .cc-kpi-tooltip,
.cc-kpi-info:focus-visible .cc-kpi-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cc-kpi-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 800;
    font-size: 36px;
    color: var(--blue-500, #002F6C);
    line-height: 1;
    white-space: nowrap;
}

.cc-kpi-value::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: var(--blue-400, #066fd1);
    -webkit-mask-image: url(../images/icons/arrow-up.svg);
    mask-image: url(../images/icons/arrow-up.svg);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.cc-kpi-label {
    text-align: center;
    line-height: 1.4;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-650, #3e3e59);
    margin: 0;
}

@media (max-width: 960px) {
    .cc-kpi-value {
        font-size: 30px;
    }

    .cc-kpi-label {
        font-size: 14px;
    }

    .cost-calc-split {
        grid-template-columns: 1fr;
        gap: 8px;
        max-width: 560px;
        margin: 0 auto;
    }

    .cost-calc-info {
        display: contents;
    }

    .cost-calc-info h1 {
        text-align: left;
    }

    .cc-intro {
        margin-bottom: 10px;
    }

    .cost-calc-card {
        order: 1;
        margin-top: 8px;
    }

    .cc-how {
        order: 2;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    .cc-kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .cc-kpi-item {
        padding: 20px 12px;
    }

    .cc-kpi-value {
        font-size: 26px;
    }

    .cc-kpi-label {
        font-size: 13px;
    }

    .cc-kpi-tooltip {
        width: 200px;
        right: -10px;
    }

    .cost-calc-page {
        padding: 20px 0 56px;
    }

    .cc-top-badge {
        margin-top: 0;
        margin-bottom: 4px;
    }

    .cost-calc-info h1 {
        font-size: 28px;
        margin: 0 0 6px;
        text-align: left;
    }

    .cc-intro {
        text-align: left;
        margin-bottom: 8px;
    }

    .cost-calc-card {
        height: auto;
        padding: 28px 20px;
        border-radius: 18px;
    }

    .cc-panel {
        overflow-y: visible;
    }

    .cc-topbar {
        margin: -28px -20px 20px;
        padding: 16px 20px 12px;
    }

    .cc-question {
        font-size: 19px;
    }

    .cc-form-row--split {
        flex-direction: column;
    }

    .cc-results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cc-revenue-card {
        padding-left: 0;
        padding-top: 16px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
    }
}
