/* main.css - estilização principal (inclui ajustes novos para confetti e estados) */

.strongname {
    font-size: 1.5rem;
    font-weight: bold;
}

.approved__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: .2px;
    text-align: center;
}

.approved__msg {
    color: black;
    margin-bottom: 16px;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.approved__details {
    font-weight: bold;
    text-align: center;
}

.approved__details p {
    margin-bottom: 1rem;
}

.iconline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

.iconline i {
    font-size: 12px;
    color: #ffffff;
    transition: color .2s ease;
}

.iconline:hover i {
    color: #ffffff;
}

.hidden {
    display: none !important;
}

.btn--primary {
    background: #0e5ce0;
    color: #fff;
}

.btn--primary:hover {
    filter: brightness(1.05);
}

.overlay-screen {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 9999;
    animation: fadeIn .25s ease both;
}

.overlay-screen--blue {
    background: linear-gradient(180deg, var(--bg-grad-start), var(--bg-grad-end));
}

.overlay-screen--green {
    background: linear-gradient(180deg, #0aa96a, #0a8656);
}

.overlay-card {
    width: min(94%, 720px);
    border-radius: var(--radius);
    padding: clamp(22px, 4vw, 28px);
    text-align: center;
    animation: slideUp .35s ease both;
}

.overlay-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    letter-spacing: .2px;
    margin-bottom: 2rem;
}

.overlay-sub {
    color: white;
    margin-bottom: 16px;
}

.overlay-big {
    font-size: clamp(14px, 2.6vw, 18px);
    font-weight: 700;
    color: white;
}

.overlay-name {
    margin-top: 2px;
    color: white;
    font-weight: 700;
    line-height: 2rem;
}

.progress {
    height: 8px;
    background: #e8f0ff;
    border-radius: 99px;
    overflow: hidden;
    border: 1px solid #d7deea;
}

.progress__bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #6AE5C9, #39d7b7);
    border-radius: 99px;
    transition: width .5s ease;
}

.plans {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}

.plan-btn {
    height: 68px;
    border: 1px solid #d7deea;
    border-radius: 12px;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.plan-btn:hover {
    transform: translateY(-1px);
    border-color: #96b7ff;
    box-shadow: 0 8px 20px rgba(5, 25, 55, .08);
}

.plan-btn.is-selected {
    border-color: var(--success-strong);
    box-shadow: 0 0 0 3px rgba(106, 229, 201, .22);
}

.plan-left {
    text-align: left;
}

.plan-right {
    text-align: right;
}

.plan-line1 {
    font-size: 13px;
    color: var(--text-soft);
    font-weight: 700;
    letter-spacing: .2px;
}

.plan-line2 {
    font-size: 18px;
    color: var(--text);
    font-weight: 800;
}

.plans-hint {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-soft);
}

@keyframes shake-kf {

    10%,
    90% {
        transform: translateX(-1px)
    }

    20%,
    80% {
        transform: translateX(2px)
    }

    30%,
    50%,
    70% {
        transform: translateX(-4px)
    }

    40%,
    60% {
        transform: translateX(4px)
    }
}

.plans.shake {
    animation: shake-kf .45s both;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes slideUp {
    from {
        transform: translateY(10px);
        opacity: .0
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

:root {
    --bg-grad-start: #0b4dbd;
    --bg-grad-end: #0a3ca1;

    --card: #ffffff;
    --card-border: #e7ecf3;
    --text: #0b1b33;
    --text-soft: #5b6a86;

    --success-strong: #39d7b7;
    --warning: #0a2d66;
    --warning-icon: #ffcc00;

    --radius: 14px;
    --shadow: 0 10px 24px rgba(5, 25, 55, .18);
    --container: 1120px;
    --gutter: 20px;
    --font: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

html,
body {
    height: 100%
}

body {
    font-family: var(--font);
    color: var(--text);
    background: linear-gradient(180deg, var(--bg-grad-start), var(--bg-grad-end)) fixed;
}

.container {
    width: min(92%, var(--container));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.topbar {
    background: transparent;
    padding: 12px 0;
}

.logo {
    height: 34px;
    display: block;
}

.hero {
    padding: clamp(22px, 4vw, 52px) 0;
}

.hero__title {
    color: #dff0ff;
    font-weight: 600;
    letter-spacing: .2px;
    margin: 10px 0 18px;
    font-size: clamp(22px, 3.8vw, 34px);
    line-height: 1.3;
}

.hero__title span {
    color: #7ff5d8;
}

.form-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    border-radius: 12px 12px 0 0;
    padding: clamp(18px, 3.2vw, 26px);
}

.field {
    margin-bottom: 14px;
}

.field-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.is-invalid {
    border-color: #e55353 !important;
    box-shadow: 0 0 0 3px rgba(229, 83, 83, .15) !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.field input,
.field select,
.field .select {
    width: 100%;
    display: block;
}

input,
select {
    appearance: none;
    height: 44px;
    border: 1px solid #d7deea;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    background: #fff;
}

input:focus,
select:focus {
    border-color: #96b7ff;
    box-shadow: 0 0 0 3px rgba(40, 116, 255, .15)
}

.select {
    position: relative;
}

.select::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #7383a0;
    pointer-events: none;
}

.btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.btn--whatsapp {
    background: linear-gradient(0deg, #4de3c2 0, #84f3da 100%);
    margin: 1rem 0;
    ;
}

.btn[disabled],
.btn[aria-disabled="true"] {
    opacity: 0.6;
    filter: grayscale(.1);
    cursor: not-allowed;
}

.btn--whatsapp:hover:not([disabled]) {
    filter: brightness(1.02);
}

.note {
    margin-top: 8px;
    font-size: 12px;
    color: #6a7996;
    text-align: center;
}

.warning {
    background: var(--warning);
    color: #dfeaff;
    border-radius: 0;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font-size: 13px;
    line-height: 20px;
    justify-content: center;
}

.warning__icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--warning-icon);
    color: #001b44;
    font-weight: 800;
    font-size: 13px;
}

.footer {
    background: #0a2959;
    color: #cdd8f5;
    padding: 34px 0 46px;
    font-size: 12px;
}

.footer p {
    color: #b9c6ec;
    line-height: 1.55;
}

.footer h3 {
    color: #ffffff;
    font-size: 15px;
    margin: 10px 0 10px;
    font-weight: 700;
}

.footer .link {
    display: block;
    margin: 30px 0;
    color: #d7e4ff;
    text-decoration: none;
}

.footer__grid {
    display: grid;
    gap: 26px;
    grid-template-columns: 1fr;
}

.col--wide p+p {
    margin-top: 10px;
}

@media (min-width: 560px) {
    .plans {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 880px) {
    .plans {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .form-card {
        border-radius: 12px 12px 0 0;
    }

    .field-group {
        grid-template-columns: 1fr 1fr;
    }

    .footer__grid {
        grid-template-columns: 1.15fr .8fr .6fr .6fr;
        align-items: flex-start;
    }
}

.confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10050;
    display: none;
}