* {
    box-sizing: border-box;
}

:root {
    --blue: #075dcc;
    --blue-2: #2388e8;
    --blue-dark: #06438f;
    --blue-soft: #eaf5ff;
    --bg: #eef7ff;
    --text: #16395f;
    --muted: #64748b;
    --line: #cfe1f3;
    --white: #ffffff;
    --danger: #a83434;
    --danger-bg: #fff2f2;
    --success: #12633e;
    --success-bg: #effaf5;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #eef8ff 0%, #f8fbff 55%, #e6f3ff 100%);
}

button,
input {
    font: inherit;
}

.is-hidden {
    display: none !important;
}

.topbar {
    width: 100%;
    min-height: 68px;
    background: #fff;
    border-bottom: 1px solid #dceaf7;
    box-shadow: 0 2px 10px rgba(22, 57, 95, .05);
}

.topbar__inner {
    width: min(1180px, calc(100% - 36px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    width: 112px;
    max-height: 54px;
    object-fit: contain;
}

.topbar__title {
    color: var(--blue);
    font-size: 15px;
    font-weight: 800;
}

.page {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 34px 0 44px;
}

/* Mantém o layout anterior: plano à esquerda e pagamento à direita. */
.checkout-shell {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
    gap: 24px;
    align-items: stretch;
}

.checkout-shell--single {
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
}

.intro-card,
.payment-card {
    background: rgba(255, 255, 255, .97);
    border: 1px solid #c9e0f5;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(19, 74, 125, .10);
}

.intro-card {
    padding: 38px;
    background:
        radial-gradient(circle at 100% 0%, rgba(35, 136, 232, .12), transparent 34%),
        #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 13px;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .09em;
}

h1,
h2,
p {
    margin-top: 0;
}

.intro-card h1 {
    margin: 18px 0 8px;
    color: #0b4d91;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
}

.price {
    margin: 8px 0 0;
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--blue);
}

.price small {
    font-size: 23px;
    font-weight: 800;
}

.price strong {
    font-size: clamp(48px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -2px;
}

.price span {
    color: #526987;
    font-size: 19px;
    font-weight: 800;
}

.fidelity {
    margin: 8px 0 24px;
    color: var(--blue-dark);
    font-size: 18px;
    font-weight: 800;
}

.lead {
    margin-bottom: 24px;
    color: #536b84;
    font-size: 17px;
    line-height: 1.65;
}

.plan-info {
    display: grid;
    gap: 12px;
}

.info-item {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid #c9dff4;
    border-radius: 16px;
    background: #f4f9ff;
}

.info-icon,
.step,
.patient-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    font-weight: 900;
}

.info-item strong {
    display: block;
    margin: 1px 0 4px;
    color: #0f4b83;
    font-size: 16px;
}

.info-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.payment-card {
    padding: 32px;
}

.section-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #e2edf7;
}

.section-head h2 {
    margin: 1px 0 5px;
    color: #0b4d91;
    font-size: 24px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.alert,
.lookup-message {
    margin-bottom: 18px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.alert,
.lookup-message.is-error {
    border: 1px solid #efc1c1;
    color: var(--danger);
    background: var(--danger-bg);
}

.lookup-message.is-info {
    border: 1px solid #c5dcf2;
    color: #24577f;
    background: #f1f8ff;
}

.lookup-message.is-success {
    border: 1px solid #b9dfcc;
    color: var(--success);
    background: var(--success-bg);
}

.payment-form {
    display: grid;
    gap: 15px;
}

.field {
    display: grid;
    gap: 7px;
}

.field > span {
    color: #22496f;
    font-size: 13px;
    font-weight: 800;
}

.field input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #c9dae9;
    border-radius: 12px;
    outline: none;
    color: #193b5f;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus {
    border-color: var(--blue-2);
    box-shadow: 0 0 0 4px rgba(35, 136, 232, .12);
}

.field-help {
    color: #7b8ca0;
    font-size: 12px;
    line-height: 1.4;
}

.patient-panel {
    padding: 16px;
    border: 1px solid #d7e5f2;
    border-radius: 16px;
    background: #f8fbff;
}

.patient-panel.is-found {
    border-color: #abd0f2;
    background: #f0f8ff;
}

.patient-panel__title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 13px;
    color: #0b4d91;
}

.patient-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
}

.patient-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.patient-data > div {
    padding: 13px 14px;
    border: 1px solid #d8e7f4;
    border-radius: 12px;
    background: #fff;
}

.patient-data span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.patient-data strong {
    color: #113f6d;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.register-shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid #cfe1f3;
    border-radius: 12px;
    color: #536b84;
    background: #f7fbff;
    font-size: 14px;
}

.register-shortcut a {
    white-space: nowrap;
    color: var(--blue);
    font-weight: 900;
}

.agreement {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid #cfe1f3;
    border-radius: 14px;
    background: #f7fbff;
    cursor: pointer;
}

.agreement.is-disabled {
    opacity: .58;
    cursor: default;
}

.agreement input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check-box {
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    margin-top: 1px;
    border: 2px solid #8db4da;
    border-radius: 6px;
    background: #fff;
    position: relative;
}

.agreement input:checked + .check-box {
    border-color: var(--blue);
    background: var(--blue);
}

.agreement input:checked + .check-box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.agreement__text {
    color: #536b84;
    font-size: 14px;
    line-height: 1.55;
}

.agreement__text strong {
    color: #0b4d91;
}

.btn {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blue);
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    font-size: 16px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(7, 93, 204, .16);
    transition: transform .15s ease, filter .15s ease;
}

.btn:hover:not(:disabled),
.btn:focus-visible:not(:disabled) {
    filter: brightness(.96);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: .42;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-primary {
    margin-top: 2px;
}

.btn-return {
    margin-top: 12px;
}

.secure-note {
    margin: 0;
    color: #71839a;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 900px) {
    .checkout-shell {
        grid-template-columns: 1fr;
    }

    .intro-card,
    .payment-card {
        padding: 26px;
    }
}

@media (max-width: 600px) {
    .topbar__inner,
    .page {
        width: min(100% - 22px, 1180px);
    }

    .page {
        padding: 18px 0 28px;
    }

    .topbar__title {
        display: none;
    }

    .intro-card,
    .payment-card {
        padding: 22px 17px;
        border-radius: 19px;
    }

    .intro-card h1 {
        font-size: 34px;
    }

    .price strong {
        font-size: 52px;
    }

    .patient-data {
        grid-template-columns: 1fr;
    }

    .register-shortcut {
        align-items: flex-start;
        flex-direction: column;
    }
}
