/* Confidence Academy — Exact Visual Styling from Reference HTML */
.ca-shell {
    --ink: #141414;
    --ivory: #f7f2e8;
    --gold: #b89a5e;
    --white: #ffffff;
    --mute: #6b665c;
    --line: #d9d0bd;
    --err: #9c3b2e;

    margin: 0 auto;
    background: var(--ivory);
    color: var(--ink);
    font: 16px/1.6 'DM Sans', system-ui, sans-serif;
    border: 1px solid var(--line);
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.ca-shell *,
.ca-shell *::before,
.ca-shell *::after {
    box-sizing: border-box;
}

.ca-serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.ca-topbar,
.ca-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    font-size: 11px;
    letter-spacing: .22em;
    border-bottom: 1px solid var(--line);
}

.ca-topbar small {
    display: block;
    letter-spacing: .15em;
    color: var(--mute);
    font-size: 9px;
    margin-top: 2px;
}

.ca-footer {
    border: 0;
    border-top: 1px solid var(--line);
    flex-direction: column;
    gap: 8px;
    text-align: center;
    background: var(--ink);
    color: var(--ivory);
    padding: 36px 24px;
}

.ca-footer a {
    color: var(--gold);
    margin: 0 8px;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0;
}

.ca-main {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 22px 64px;
    min-height: 70vh;
}

.ca-shell h1,
.ca-shell h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 16px;
    color: var(--ink);
}

.ca-shell h1 {
    font-size: clamp(38px, 9vw, 60px);
    letter-spacing: .01em;
}

.ca-shell h2 {
    font-size: clamp(28px, 6vw, 38px);
}

.ca-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 72px;
    color: var(--gold);
    line-height: 1;
    opacity: .85;
}

.ca-eyebrow {
    font-size: 11px;
    letter-spacing: .24em;
    color: var(--gold);
    text-transform: uppercase;
}

.ca-lead {
    font-size: 18px;
}

.ca-mute {
    color: var(--mute);
}

.ca-btn {
    display: inline-block;
    background: var(--ink);
    color: var(--ivory) !important;
    border: 1px solid var(--ink);
    padding: 16px 30px;
    font: 500 12px 'DM Sans', sans-serif;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    min-height: 48px;
    border-radius: 0;
    transition: background .2s ease, box-shadow .2s ease;
}

.ca-btn:hover {
    background: #000000;
    color: var(--ivory) !important;
    box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--gold);
}

.ca-btn.ghost {
    background: transparent;
    color: var(--ink) !important;
}

.ca-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.ca-rule {
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin: 22px 0;
}

.ca-prog {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.ca-prog i {
    flex: 1;
    height: 2px;
    background: var(--line);
    display: block;
}

.ca-prog i.on {
    background: var(--gold);
}

.ca-steplab {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    letter-spacing: .2em;
    color: var(--mute);
    margin-bottom: 36px;
}

.ca-q {
    margin: 30px 0;
}

.ca-q > label,
.ca-q > .ca-lb {
    display: block;
    font-size: 12px;
    letter-spacing: .14em;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--ink);
}

.ca-q .ca-hint {
    font-size: 14px;
    color: var(--mute);
    margin: 0 0 10px;
}

.ca-shell input[type=text],
.ca-shell input[type=email],
.ca-shell input[type=tel],
.ca-shell input[type=number],
.ca-shell input[type=url],
.ca-shell textarea {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 14px;
    font: 16px 'DM Sans', sans-serif;
    color: var(--ink);
}

.ca-shell textarea {
    min-height: 130px;
    resize: vertical;
}

.ca-shell textarea.big {
    min-height: 170px;
    font: italic 500 22px/1.4 'Cormorant Garamond', serif;
}

.ca-shell input:focus,
.ca-shell textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold);
}

.ca-opt {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 14px;
    background: var(--white);
    border: 1px solid var(--line);
    margin: 8px 0;
    cursor: pointer;
    font-size: 15px;
    color: var(--ink);
}

.ca-opt:has(input:checked) {
    border-color: var(--gold);
    background: #fbf7ee;
}

.ca-opt input {
    accent-color: var(--ink);
    margin-top: 4px;
    width: 16px;
    height: 16px;
}

.ca-cnt {
    font-size: 12px;
    color: var(--mute);
    text-align: right;
    margin-top: 4px;
}

.ca-err {
    color: var(--err);
    font-size: 14px;
    margin-top: 6px;
    display: none;
}

.ca-q.bad .ca-err {
    display: block;
}

.ca-q.bad input[type=text],
.ca-q.bad input[type=email],
.ca-q.bad input[type=tel],
.ca-q.bad input[type=number],
.ca-q.bad input[type=url],
.ca-q.bad textarea {
    border-color: var(--err);
}

.ca-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 44px;
    gap: 12px;
}

.ca-link {
    background: none;
    border: 0;
    font: 12px 'DM Sans', sans-serif;
    letter-spacing: .2em;
    color: var(--mute);
    cursor: pointer;
    padding: 12px 0;
}

.ca-link:hover {
    color: var(--ink);
}

.ca-card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 24px;
    margin: 18px 0;
}

.ca-fine {
    font-size: 13px;
    color: var(--mute);
}

.ca-pay {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.ca-pay .ca-opt {
    flex: 1;
    min-width: 150px;
    margin: 0;
}

.ca-ph {
    border: 1px dashed var(--gold);
    padding: 14px;
    font-size: 13px;
    color: var(--mute);
    margin-top: 10px;
    background: #fbf7ee;
}

.ca-quote {
    border-left: 1px solid var(--gold);
    padding-left: 18px;
    font: italic 500 20px/1.45 'Cormorant Garamond', serif;
    margin: 20px 0;
}

.ca-spin {
    width: 28px;
    height: 28px;
    border: 2px solid var(--line);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: caSpin 1s linear infinite;
    margin: 40px auto;
}

@keyframes caSpin {
    to { transform: rotate(360deg); }
}

.ca-fade {
    animation: caFade .5s ease;
}

@keyframes caFade {
    from { opacity: 0; transform: translateY(8px); }
}

.ca-tabs {
    border-top: 1px solid var(--line);
    background: var(--white);
    padding: 14px 22px;
    text-align: center;
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--mute);
}

.ca-tabs button,
.ca-tabs a {
    background: none;
    border: 0;
    font: inherit;
    color: var(--ink);
    padding: 10px 8px;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 5px;
    display: inline-block;
}

.ca-tag {
    font-size: 10px;
    letter-spacing: .14em;
    border: 1px solid var(--gold);
    padding: 4px 10px;
    display: inline-block;
}

.ca-flow {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ca-flow li {
    padding: 12px 0 12px 34px;
    position: relative;
    font-size: 12px;
    letter-spacing: .18em;
}

.ca-flow li:before {
    content: '';
    position: absolute;
    left: 6px;
    top: 20px;
    width: 9px;
    height: 9px;
    border: 1px solid var(--gold);
    border-radius: 50%;
}

.ca-flow li:not(:last-child):after {
    content: '';
    position: absolute;
    left: 10px;
    top: 32px;
    bottom: -8px;
    width: 1px;
    background: var(--line);
}

.ca-flow li.now:before {
    background: var(--gold);
}

@media (max-width: 600px) {
    .ca-topbar {
        padding: 14px 16px;
    }
    .ca-main {
        padding: 24px 16px 48px;
    }
    .ca-nav {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .ca-nav .ca-btn {
        width: 100%;
        text-align: center;
    }
    .ca-nav .ca-link {
        text-align: center;
    }
    .ca-pay {
        flex-direction: column;
    }
}
