/* The configure page: billing term cards, option dropdowns, and the live summary. */
.cf-page { background: var(--cloud); padding: 48px 24px 96px; }
.cf-wrap { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.cf-crumb { margin: 0 0 14px; font-size: 14px; }
.cf-crumb a { color: var(--cyan-deep); font-weight: 600; text-decoration: none; }
.cf-crumb a:hover { text-decoration: underline; }
.cf-main h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.015em; color: var(--ink); margin: 0 0 6px; }
.cf-kind { color: var(--ink-soft); margin: 0 0 22px; font-size: 15px; }

.cf-card { background: #fff; border: 1px solid #E3E8EE; border-radius: 18px; padding: 22px 26px; margin-bottom: 18px; color: var(--ink); }
.cf-card h2 { font-size: 18px; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.cf-card .cf-hint { margin: 0 0 14px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.55; }

.cf-error { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14.5px; }
.cf-notice { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14.5px; }
.cf-error[hidden], .cf-notice[hidden], .cf-card[hidden] { display: none; }

/* ---- billing term cards ---- */
.cf-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 12px; }
.cf-term { position: relative; display: block; cursor: pointer; }
.cf-term input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cf-term-body { display: block; border: 1.5px solid #D9E0E8; border-radius: 14px; padding: 16px 16px 14px 46px; background: #fff; min-height: 104px; transition: border-color .15s, box-shadow .15s, background .15s; position: relative; }
.cf-term-body::before { content: ""; position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #B7C1CE; background: #fff; box-sizing: border-box; }
.cf-term:hover .cf-term-body { border-color: var(--cyan); }
.cf-term input:focus-visible + .cf-term-body { outline: 2px solid var(--cyan); outline-offset: 2px; }
.cf-term input:checked + .cf-term-body { border-color: var(--cyan-deep); background: #F2FAFD; box-shadow: 0 0 0 3px rgba(26, 163, 199, .16); }
.cf-term input:checked + .cf-term-body::before { border-color: var(--cyan-deep); background: radial-gradient(circle, var(--cyan-deep) 0 5px, #fff 6px); }
.cf-term-name { display: block; font-weight: 700; font-size: 15px; color: var(--ink); }
.cf-term-price { display: block; font-size: 15.5px; font-weight: 800; color: var(--ink); margin-top: 3px; font-variant-numeric: tabular-nums; }
.cf-term-price small { font-weight: 600; color: var(--ink-soft); font-size: 12.5px; }
.cf-term-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; min-height: 22px; }
.cf-save { background: #16A34A; color: #fff; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.cf-was { color: #94A3B8; text-decoration: line-through; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.cf-term-total { display: block; color: var(--ink-soft); font-size: 12.5px; margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---- dropdowns and extras ---- */
.cf-field { margin-top: 12px; }
.cf-field label { display: block; font-weight: 700; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; }
.cf-field select { width: 100%; padding: 12px 14px; border: 1.5px solid #D9E0E8; border-radius: 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%234B5468' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; padding-right: 42px; text-overflow: ellipsis; cursor: pointer; }
.cf-field select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(26, 163, 199, .18); }
.cf-addon { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #EEF1F4; }
.cf-addon:first-child { border-top: 0; }
.cf-addon strong { display: block; font-size: 14.5px; }
.cf-addon span { color: var(--ink-soft); font-size: 13px; }
.cf-addon input { width: 84px; padding: 9px 10px; border: 1.5px solid #D9E0E8; border-radius: 10px; font: inherit; text-align: center; }
.cf-check { display: inline-flex; align-items: center; cursor: pointer; padding: 6px; }
.cf-check input { width: 22px; height: 22px; accent-color: var(--cyan-deep); cursor: pointer; }
.cf-features { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 22px; }
.cf-features li { font-size: 14px; color: var(--ink); padding-left: 24px; position: relative; }
.cf-features li.cf-picked { font-weight: 600; }   /* what you chose, after the plan's own features */
.cf-features li::before { content: "\2713"; position: absolute; left: 0; color: #16A34A; font-weight: 800; }

/* ---- summary ---- */
.cf-summary { position: sticky; top: 96px; background: var(--ink); color: #fff; border-radius: 20px; padding: 26px 24px; box-shadow: 0 18px 44px rgba(11, 16, 39, .22); }
.cf-summary h2 { margin: 0 0 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #7FD3E8; font-weight: 800; }
.cf-line { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 14px; color: #DDE3EE; font-variant-numeric: tabular-nums; }
.cf-line .l { min-width: 0; overflow-wrap: anywhere; }
.cf-line .a { white-space: nowrap; font-weight: 600; color: #fff; }
.cf-line.plan { font-weight: 800; color: #fff; font-size: 15px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .14); margin-bottom: 4px; }
.cf-summary .cf-extras { margin: 6px 0 4px; padding: 6px 12px; background: rgba(255, 255, 255, .06); border-radius: 12px; }
.cf-total-label { margin-top: 16px; font-size: 12.5px; color: #AAB4C8; }
.cf-total { font-size: 34px; font-weight: 800; letter-spacing: -.01em; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.cf-inr { font-size: 13.5px; font-weight: 600; color: #7FD6EE; margin: 0 0 6px; }
.cf-fine { font-size: 12.5px; color: #AAB4C8; line-height: 1.5; margin: 0 0 16px; }
.cf-continue { display: block; width: 100%; padding: 15px 18px; border: 0; border-radius: 999px; background: var(--cyan); color: #fff; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; transition: background .15s, transform .1s; }
.cf-continue:hover { background: var(--cyan-deep); }
.cf-continue:disabled { opacity: .6; cursor: progress; }
.cf-secondary { display: block; text-align: center; margin-top: 12px; color: #C9D3E6; font-size: 14px; text-decoration: none; }
.cf-secondary:hover { text-decoration: underline; color: #fff; }

.cf-bar { display: none; }
@media (max-width: 900px) {
    .cf-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 14px;
              background: var(--ink); color: #fff; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 20px rgba(11, 16, 39, .25); }
    .cf-bar-label { display: block; font-size: 11.5px; color: #AAB4C8; }
    .cf-bar strong { font-size: 19px; font-variant-numeric: tabular-nums; }
    .cf-bar-btn { border: 0; border-radius: 999px; background: var(--cyan); color: #fff; font: inherit; font-weight: 800; padding: 11px 24px; cursor: pointer; }
    .cf-page { padding-bottom: 110px; }
    .cf-page { padding: 28px 16px 72px; }
    .cf-wrap { grid-template-columns: 1fr; }
    .cf-summary { position: static; }
    .cf-card { padding: 18px 18px; }
}
