* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #001749 url("../imgs/bkgcomtopo.jpg") top center / 250% auto no-repeat;
    color: #fff;
    font-family: 'f_regular', Arial, sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

main {
    width: 100%;
    max-width: 1920px;
    margin-top: 57%;
    padding: 0 24px 60px;
    overflow-x: clip;
}

.premios-wrap {
    position: relative;
    display: block;
    width: clamp(300px, 96vw, 1400px);
    max-width: 100%;
    margin: 0 auto;
}

.premios {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.premios__legenda {
    position: absolute;
    right: clamp(4px, 1vw, 12px);
    bottom: clamp(28px, 7vw, 110px);
    z-index: 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'f_regular', Arial, sans-serif;
    font-size: clamp(5px, 0.85vw, 12px);
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: #cfcfcf;
    white-space: nowrap;
    pointer-events: none;
    text-shadow:
        0 0 1px rgba(255, 255, 255, 0.45),
        0 1px 2px rgba(0, 0, 0, 0.35);
}

.cadastro {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: clamp(-10%, -3vw, 24px) auto 0;
    text-align: center;
}

.cadastro-bloco {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.cadastro h1 {
    width: max-content;
    max-width: 100%;
    margin: 0 auto 10px;
    padding: 0;
    color: #fff;
    font-family: 'f_heavy', Arial, sans-serif;
    font-size: clamp(11px, 2.4vw, 28px);
    letter-spacing: 1px;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.55),
        0 3px 0 rgba(0, 0, 0, 0.3);
}

.cadastro__form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(2px, 0.6vw, 4px);
    width: 100%;
    box-sizing: border-box;
    padding: clamp(12px, 2.5vw, 36px);
    border: 3px solid rgba(255, 255, 255, 0.86);
    border-radius: clamp(18px, 3vw, 28px);
    background:
        linear-gradient(180deg, rgba(0, 76, 191, 0.84), rgba(0, 34, 128, 0.86)),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 68%);
    box-shadow:
        0 0 0 2px rgba(255, 151, 109, 0.34),
        inset 0 0 32px rgba(0, 156, 255, 0.5),
        0 0 12px rgba(255, 255, 255, 0.95),
        0 0 28px rgba(49, 143, 255, 0.8);
    text-align: left;
    margin-top: 0;
}

.cadastro__form label {
    color: #ffa07c;
    font-family: 'f_bold', Arial, sans-serif;
    font-size: clamp(9px, 1.6vw, 18px);
    letter-spacing: 1.5px;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
    white-space: normal;
    overflow-wrap: break-word;

}

.cadastro__form input {
    width: 100%;
    min-height: clamp(32px, 4.5vw, 64px);
    margin-bottom: clamp(4px, 1vw, 12px);
    border: 0;
    border-radius: clamp(8px, 1.2vw, 10px);
    background: rgba(138, 152, 217, 0.48);
    color: #fff;
    font-family: 'f_regular', Arial, sans-serif;
    font-size: clamp(13px, 1.6vw, 20px);
    outline: 0;
    padding: 0 clamp(12px, 2vw, 18px);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.12);
}

.cadastro__form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.cadastro__form input:focus {
    background: rgba(138, 152, 217, 0.48);
    color: #fff;
    box-shadow: 0 0 0 2px #ffa07c;
}

.cadastro__form input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.contrato-grupo {
    --campo-altura: clamp(32px, 4.5vw, 64px);
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.8vw, 8px);
    width: 100%;
    margin-bottom: clamp(4px, 1vw, 12px);
}

.contrato-grupo input {
    flex: 1;
    min-width: 0;
    height: var(--campo-altura);
    min-height: var(--campo-altura);
    margin-bottom: 0;
}

.contrato-busca {
    flex-shrink: 0;
    width: var(--campo-altura);
    height: var(--campo-altura);
    min-width: var(--campo-altura);
    min-height: var(--campo-altura);
    max-width: var(--campo-altura);
    max-height: var(--campo-altura);
    border: 1px solid #ffa07c;
    border-radius: clamp(5px, 1vw, 8px);
    background: rgba(0, 61, 159, 0.78);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.contrato-busca svg.contrato-busca__icone {
    width: 55%;
    height: 55%;
    max-width: 22px;
    max-height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.contrato-busca:hover,
.contrato-busca:focus {
    background: rgba(0, 86, 205, 0.9);
    box-shadow:
        0 0 10px rgba(255, 160, 124, 0.5),
        0 0 16px rgba(48, 146, 255, 0.5);
    outline: 0;
}

.telefone-grupo {
    --campo-altura: clamp(32px, 4.5vw, 64px);
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.8vw, 8px);
    width: 100%;
    margin-bottom: clamp(4px, 1vw, 12px);
}

.telefone-grupo input {
    flex: 1;
    min-width: 0;
    height: var(--campo-altura);
    min-height: var(--campo-altura);
    margin-bottom: 0;
}

.prefixo {
    position: relative;
    flex-shrink: 0;
}

.prefixo__btn {
    display: flex;
    align-items: center;
    gap: clamp(5px, 0.9vw, 8px);
    width: clamp(80px, 11vw, 112px);
    height: var(--campo-altura);
    min-height: var(--campo-altura);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: clamp(8px, 1.2vw, 10px);
    background: rgba(138, 152, 217, 0.48);
    color: #fff;
    font-family: 'f_regular', Arial, sans-serif;
    font-size: clamp(12px, 1.5vw, 18px);
    letter-spacing: 0.2px;
    padding: 0 clamp(9px, 1.4vw, 13px);
    cursor: pointer;
    outline: 0;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.prefixo__btn:hover {
    border-color: rgba(255, 160, 124, 0.6);
    background: rgba(146, 160, 224, 0.55);
}

.prefixo__btn:focus-visible {
    border-color: #ffa07c;
    box-shadow: 0 0 0 2px rgba(255, 160, 124, 0.55);
}

.prefixo__flag {
    font-size: 1.1em;
    line-height: 1;
}

.prefixo__code {
    font-family: 'f_bold', Arial, sans-serif;
}

.prefixo__caret {
    margin-left: auto;
    width: 0;
    height: 0;
    border-left: 0.3em solid transparent;
    border-right: 0.3em solid transparent;
    border-top: 0.32em solid rgba(255, 255, 255, 0.8);
    transition: transform 0.18s ease;
}

.prefixo__btn[aria-expanded="true"] .prefixo__caret {
    transform: rotate(180deg);
}

.prefixo__panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 6px);
    left: 0;
    width: clamp(230px, 62vw, 300px);
    max-width: 80vw;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: #062766;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}

.prefixo__panel[hidden] {
    display: none;
}

.prefixo__list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: clamp(180px, 42vh, 280px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.prefixo__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #fff;
    font-family: 'f_regular', Arial, sans-serif;
    font-size: clamp(12px, 1.4vw, 15px);
    line-height: 1.2;
    cursor: pointer;
}

.prefixo__item:hover,
.prefixo__item[aria-selected="true"] {
    background: rgba(255, 255, 255, 0.12);
}

.prefixo__item-flag {
    font-size: 1.15em;
    line-height: 1;
    flex-shrink: 0;
}

.prefixo__item-code {
    min-width: 3ch;
    color: #ffd0bb;
    font-family: 'f_bold', Arial, sans-serif;
}

.prefixo__item-name {
    color: rgba(255, 255, 255, 0.86);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cadastro__check {
    display: flex;
    align-items: center;
    gap: clamp(7px, 1.1vw, 11px);
    margin-bottom: clamp(6px, 1.2vw, 14px);
}

.cadastro__form .cadastro__check input[type="checkbox"] {
    flex: 0 0 auto;
    width: clamp(15px, 2.1vw, 20px);
    height: clamp(15px, 2.1vw, 20px);
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: clamp(4px, 0.7vw, 6px);
    background: rgba(138, 152, 217, 0.32);
    box-shadow: none;
    cursor: pointer;
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: background 0.16s ease, border-color 0.16s ease;
}

.cadastro__form .cadastro__check input[type="checkbox"]:hover {
    border-color: rgba(255, 160, 124, 0.65);
}

.cadastro__form .cadastro__check input[type="checkbox"]:checked {
    background: #ffa07c;
    border-color: #ffa07c;
    box-shadow: none;
}

.cadastro__form .cadastro__check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 45%;
    width: 24%;
    height: 52%;
    border: solid #062766;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.cadastro__form .cadastro__check input[type="checkbox"]:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 2px rgba(255, 160, 124, 0.6);
}

.cadastro__check label {
    margin: 0;
    cursor: pointer;
}

.cadastro__check input[type="checkbox"]:disabled,
.cadastro__check input[type="checkbox"]:disabled + label {
    opacity: 0.65;
    cursor: not-allowed;
}

.cadastro__form button:not(.contrato-busca):not(.prefixo__btn) {
    align-self: center;
    min-width: min(100%, 360px);
    margin-top: 8px;
    border: 2px solid #ffa07c;
    border-radius: 16px;
    background: rgba(0, 61, 159, 0.78);
    color: #fff;
    cursor: pointer;
    font-family: 'f_heavy', Arial, sans-serif;
    font-size: clamp(15px, 2vw, 22px);
    letter-spacing: 1px;
    line-height: 1;
    padding: 18px 24px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cadastro__form button:not(.contrato-busca):not(.prefixo__btn):hover,
.regulamento:hover {
    background: rgba(0, 86, 205, 0.9);
    box-shadow:
        0 0 14px rgba(255, 160, 124, 0.68),
        0 0 24px rgba(48, 146, 255, 0.68);
    transform: translateY(-2px);
}

.regulamento {
    display: block;
    width: fit-content;
    max-width: 72%;
    min-width: 0;
    margin: clamp(10px, 2vw, 28px) auto 0;
    border: 2px solid #ffa07c;
    border-radius: clamp(4px, 0.7vw, 8px);
    background: rgba(0, 61, 159, 0.78);
    color: #fff;
    cursor: pointer;
    font-family: 'f_heavy', Arial, sans-serif;
    font-size: clamp(9px, 1.4vw, 16px);
    letter-spacing: 0.5px;
    line-height: 1.2;
    padding: clamp(8px, 1.2vw, 14px) clamp(12px, 2vw, 22px);
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 10, 40, 0.75);
}

.modal[hidden] {
    display: none;
}

.modal__conteudo {
    width: min(100%, 620px);
    padding: clamp(20px, 4vw, 32px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: clamp(12px, 2vw, 18px);
    background: linear-gradient(180deg, rgba(0, 76, 191, 0.95), rgba(0, 34, 128, 0.98));
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.6),
        0 0 24px rgba(49, 143, 255, 0.7);
    text-align: center;
}

.modal__conteudo p {
    color: #fff;
    font-family: 'f_heavy', Arial, sans-serif;
    font-size: clamp(14px, 2.5vw, 20px);
    line-height: 1.3;
    text-transform: uppercase;
}

.modal__numeros {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 8px;
    padding: 0;
}

.modal__numeros li {
    min-width: 72px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 160, 124, 0.9);
    border-radius: 8px;
    background: rgba(0, 40, 110, 0.85);
    color: #fff;
    font-family: 'f_heavy', Arial, sans-serif;
    font-size: clamp(16px, 3vw, 22px);
    letter-spacing: 1px;
    text-transform: none;
}

.modal__rodape {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'f_regular', Arial, sans-serif;
    font-size: clamp(12px, 2vw, 16px);
    line-height: 1.4;
    text-transform: none;
}

.modal--sucesso-numeros .modal__conteudo p {
    font-size: clamp(13px, 2.2vw, 18px);
}

.modal__fechar {
    margin-top: 18px;
    border: 1px solid #ffa07c;
    border-radius: clamp(4px, 0.7vw, 8px);
    background: rgba(0, 61, 159, 0.9);
    color: #fff;
    cursor: pointer;
    font-family: 'f_heavy', Arial, sans-serif;
    font-size: clamp(12px, 1.8vw, 16px);
    padding: 10px 28px;
    text-transform: uppercase;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.modal__fechar:hover {
    background: rgba(0, 86, 205, 0.95);
    box-shadow: 0 0 14px rgba(255, 160, 124, 0.6);
}

.modal--erro .modal__conteudo {
    border-color: rgba(255, 120, 120, 0.95);
    box-shadow:
        0 0 12px rgba(255, 120, 120, 0.55),
        0 0 24px rgba(255, 80, 80, 0.45);
}

.contrato-busca--loading {
    cursor: wait;
    pointer-events: none;
}

.contrato-busca--loading .contrato-busca__icone {
    opacity: 0;
}

.contrato-busca__spinner {
    display: none;
    width: 55%;
    height: 55%;
    max-width: 22px;
    max-height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cadastro-girar 0.7s linear infinite;
}

.contrato-busca--loading .contrato-busca__spinner {
    display: block;
}

.contrato-busca:disabled {
    cursor: wait;
}

.cadastro__form--loading {
    pointer-events: none;
}

.cadastro__loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: rgba(0, 23, 73, 0.72);
    backdrop-filter: blur(2px);
}

.cadastro__loading[hidden] {
    display: none;
}

.cadastro__loading-conteudo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    text-align: center;
}

.cadastro__loading-conteudo p {
    margin: 0;
    color: #fff;
    font-family: 'f_heavy', Arial, sans-serif;
    font-size: clamp(12px, 2vw, 16px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cadastro__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffa07c;
    border-radius: 50%;
    animation: cadastro-girar 0.8s linear infinite;
}

@keyframes cadastro-girar {
    to {
        transform: rotate(360deg);
    }
}

.marca {
    display: block;
    max-width: 45%;
    width: clamp(150px, 34vw, 420px);
    margin: clamp(24px, 5vw, 48px) auto 0;
}

.legal {
    width: 100vw;
    max-width: 100vw;
    margin: clamp(16px, 3vw, 32px) calc(50% - 50vw) 0;
    padding: 0 clamp(10px, 2.5vw, 28px);
    font-family: 'f_regular', Arial, sans-serif;
    font-size: clamp(6px, 1.6vw, 13px);
    line-height: 1.35;
    text-align: center;
}

@media (max-width: 1024px) {
    .cadastro__form {
        padding: clamp(12px, 2vw, 18px);
    }
}

@media (max-width: 768px) {
    body {
        background-size: 240% auto;
    }

    main {
        margin-top: 58%;
        padding-inline: 16px;
    }

    .premios__legenda {
        right: 3px;
        bottom: clamp(22px, 6vw, 48px);
        font-size: clamp(4.5px, 1.5vw, 7px);
        letter-spacing: 0.02em;
    }

    .cadastro {
        margin-top: clamp(-12%, -4vw, 12px);
    }

    .cadastro h1 {
        margin-bottom: 10px;
        font-size: clamp(10px, 2.2vw, 13px);
        letter-spacing: 0.3px;
        line-height: 1.2;
    }

    .cadastro__form {
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 2px;
        padding: clamp(10px, 2vw, 14px);
        border-width: 2px;
        border-radius: 16px;
        box-shadow:
            0 0 0 1px rgba(255, 151, 109, 0.3),
            inset 0 0 20px rgba(0, 156, 255, 0.45),
            0 0 8px rgba(255, 255, 255, 0.85),
            0 0 18px rgba(49, 143, 255, 0.65);
    }

    .cadastro__form label {
        font-size: clamp(7px, 2vw, 8px);
        letter-spacing: 0.5px;
    }

    .cadastro__form input {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: clamp(28px, 7vw, 34px);
        margin-bottom: 4px;
        font-size: clamp(10px, 2.8vw, 12px);
        padding: 0 8px;
        border-radius: 7px;
    }

    .contrato-grupo {
        --campo-altura: clamp(28px, 7vw, 34px);
    }

    .contrato-grupo input {
        margin-bottom: 0;
    }

    .telefone-grupo {
        --campo-altura: clamp(28px, 7vw, 34px);
    }

    .telefone-grupo input {
        margin-bottom: 0;
    }

    .prefixo__btn {
        width: clamp(70px, 22vw, 92px);
        font-size: clamp(9px, 2.6vw, 11px);
        padding: 0 clamp(6px, 1.8vw, 9px);
        gap: 4px;
        border-radius: 7px;
    }

    .prefixo__panel {
        width: clamp(200px, 74vw, 260px);
    }

    .cadastro__check {
        gap: clamp(6px, 1.8vw, 9px);
    }

    .cadastro__form .cadastro__check input[type="checkbox"] {
        width: clamp(13px, 3.6vw, 16px);
        height: clamp(13px, 3.6vw, 16px);
    }

    .cadastro__check label {
        font-size: clamp(7px, 2vw, 8px);
        letter-spacing: 0.5px;
    }

    .marca {
        display: block;
        max-width: 60%;
        width: clamp(150px, 34vw, 420px);
        margin: clamp(24px, 5vw, 48px) auto 0;
    }
}
