/* ==========================================================
   JUNKSI - CADASTRO EXPERIMENTAL
   Desenvolvido por MBD Softwares
   ========================================================== */


/* ==========================================================
   1. CONFIGURAÇÕES GERAIS
   ========================================================== */

.cadastro-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--junksi-background);
}

.cadastro-main {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 55px 0;
}

.cadastro-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--junksi-white);
    border: 1px solid var(--junksi-border);
    border-radius: 24px;
    box-shadow: var(--junksi-shadow-lg);
}


/* ==========================================================
   2. CABEÇALHO
   ========================================================== */

.cadastro-header {
    padding: 18px 0;
    background: var(--junksi-white);
    border-bottom: 1px solid var(--junksi-border);
}

.cadastro-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cadastro-header .navbar-brand {
    margin: 0;
}

.cadastro-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cadastro-header-actions > span {
    color: var(--junksi-muted);
    font-size: 13px;
}

.cadastro-header-actions .btn {
    font-size: 13px;
}


/* ==========================================================
   3. APRESENTAÇÃO DO PLANO EXPERIMENTAL
   ========================================================== */

.cadastro-apresentacao {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 48px 38px 30px;
    background: linear-gradient(
        145deg,
        #102e29 0%,
        #183b36 55%,
        #20574b 100%
    );
}

.cadastro-apresentacao::before {
    position: absolute;
    content: "";
    top: -200px;
    right: -240px;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(38, 156, 136, 0.25),
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
}

.cadastro-apresentacao::after {
    position: absolute;
    content: "";
    bottom: -220px;
    left: -150px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.cadastro-apresentacao-content {
    position: relative;
}

.cadastro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 26px;
    color: #9be4d3;
    background: rgba(38, 156, 136, 0.15);
    border: 1px solid rgba(99, 208, 183, 0.25);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.cadastro-apresentacao h1 {
    margin-bottom: 22px;
    color: var(--junksi-white);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.cadastro-apresentacao h1 span {
    display: block;
    color: #65d4b7;
}

.cadastro-apresentacao-content > p {
    margin-bottom: 28px;
    color: #c5dbd5;
    font-size: 15px;
    line-height: 1.85;
}


/* ==========================================================
   4. DESTAQUE DOS 14 DIAS GRATUITOS
   ========================================================== */

.cadastro-periodo {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 23px;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
}

.cadastro-periodo > strong {
    color: #65d4b7;
    font-size: 62px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
}

.cadastro-periodo span {
    display: block;
    color: var(--junksi-white);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.cadastro-periodo small {
    display: block;
    margin-top: 4px;
    color: #b5cec6;
    font-size: 11px;
}


/* ==========================================================
   5. BENEFÍCIOS DO PLANO
   ========================================================== */

.cadastro-beneficios {
    padding: 0;
    margin: 0 0 28px;
    list-style: none;
}

.cadastro-beneficios li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 9px 0;
    color: #e0ede9;
    font-size: 13px;
    line-height: 1.7;
}

.cadastro-beneficios i {
    flex-shrink: 0;
    margin-top: 4px;
    color: #65d4b7;
    font-size: 15px;
}


/* ==========================================================
   6. INFORMAÇÕES DE SEGURANÇA
   ========================================================== */

.cadastro-seguranca {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    background: rgba(38, 156, 136, 0.10);
    border: 1px solid rgba(101, 212, 183, 0.20);
    border-radius: 12px;
}

.cadastro-seguranca > i {
    flex-shrink: 0;
    margin-top: 4px;
    color: #65d4b7;
    font-size: 23px;
}

.cadastro-seguranca strong {
    display: block;
    margin-bottom: 5px;
    color: var(--junksi-white);
    font-size: 13px;
}

.cadastro-seguranca small {
    display: block;
    color: #b5cec6;
    font-size: 12px;
    line-height: 1.75;
}

.cadastro-apresentacao-footer {
    padding-top: 25px;
    margin-top: 35px;
    color: #95afa6;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 11px;
}

.cadastro-apresentacao-footer strong {
    color: #65d4b7;
    font-weight: 700;
}


/* ==========================================================
   7. FORMULÁRIO DE CADASTRO
   ========================================================== */

.cadastro-formulario {
    min-width: 0;
    padding: 42px 45px;
    background: var(--junksi-white);
}

.cadastro-form-heading {
    margin-bottom: 30px;
}

.cadastro-form-heading .section-label {
    margin-bottom: 9px;
    font-size: 11px;
}

.cadastro-form-heading h2 {
    margin-bottom: 12px;
    color: var(--junksi-dark);
    font-size: clamp(27px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -1px;
}

.cadastro-form-heading p {
    margin: 0;
    color: var(--junksi-muted);
    font-size: 14px;
    line-height: 1.8;
}

.cadastro-form-section {
    margin-bottom: 25px;
}

.cadastro-form-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 18px;
    color: var(--junksi-dark);
    border-bottom: 1px solid var(--junksi-border);
    font-size: 15px;
    font-weight: 700;
}

.cadastro-form-section h3 i {
    color: var(--junksi-primary);
    font-size: 15px;
}


/* ==========================================================
   8. CAMPOS DO FORMULÁRIO
   ========================================================== */

.cadastro-field {
    margin-bottom: 18px;
}

.cadastro-field:last-child {
    margin-bottom: 0;
}

.cadastro-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--junksi-text);
    font-size: 13px;
    font-weight: 600;
}

.cadastro-field label span {
    margin-left: 2px;
    color: #dc3545;
}

.cadastro-input-group {
    position: relative;
}

.cadastro-input-group > i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #8da39d;
    font-size: 15px;
    pointer-events: none;
    transition: var(--junksi-transition);
}

.cadastro-input-group .form-control {
    width: 100%;
    min-height: 49px;
    padding: 12px 15px 12px 42px;
    color: var(--junksi-text);
    background: #fafcfb;
    border: 1px solid var(--junksi-border);
    border-radius: 9px;
    font-size: 14px;
    transition: var(--junksi-transition);
}

.cadastro-input-group .form-control::placeholder {
    color: #9aa9a5;
    font-size: 13px;
}

.cadastro-input-group .form-control:hover {
    border-color: #b5cec6;
}

.cadastro-input-group .form-control:focus {
    background: var(--junksi-white);
    border-color: var(--junksi-primary);
    box-shadow: 0 0 0 4px rgba(38, 156, 136, 0.10);
    outline: none;
}

.cadastro-input-group:focus-within > i {
    color: var(--junksi-primary);
}

.cadastro-field-help {
    display: block;
    margin-top: 6px;
    color: var(--junksi-muted);
    font-size: 11px;
    line-height: 1.6;
}


/* ==========================================================
   9. VALIDAÇÃO DOS CAMPOS
   ========================================================== */

.cadastro-input-group .form-control.is-invalid {
    padding-right: 40px;
    border-color: #dc3545;
    background-color: #fffafb;
}

.cadastro-input-group .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.10);
}

.cadastro-input-group .form-control.is-valid {
    padding-right: 40px;
    border-color: var(--junksi-primary);
}

.cadastro-input-group .form-control.is-valid:focus {
    border-color: var(--junksi-primary);
    box-shadow: 0 0 0 4px rgba(38, 156, 136, 0.10);
}

.cadastro-field .invalid-feedback {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
}

.cadastro-field .valid-feedback {
    margin-top: 6px;
    color: var(--junksi-primary-dark);
    font-size: 12px;
}


/* ==========================================================
   10. INFORMAÇÕES DO PLANO
   ========================================================== */

.cadastro-plano-info {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px;
    margin: 26px 0;
    background: var(--junksi-primary-light);
    border: 1px solid rgba(38, 156, 136, 0.20);
    border-radius: 10px;
}

.cadastro-plano-info > i {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--junksi-primary-dark);
    font-size: 18px;
}

.cadastro-plano-info strong {
    display: block;
    margin-bottom: 5px;
    color: var(--junksi-primary-dark);
    font-size: 13px;
    font-weight: 700;
}

.cadastro-plano-info p {
    margin: 0;
    color: #4b7469;
    font-size: 12px;
    line-height: 1.7;
}


/* ==========================================================
   11. BOTÃO DE CADASTRO
   ========================================================== */

#btnCadastrar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 55px;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 700;
}

#btnCadastrar i {
    margin: 0;
}

#btnCadastrar:disabled {
    color: var(--junksi-white);
    background: var(--junksi-primary-dark);
    border-color: var(--junksi-primary-dark);
    opacity: 0.75;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.cadastro-form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    color: var(--junksi-muted);
    font-size: 11px;
    text-align: center;
}

.cadastro-form-note i {
    flex-shrink: 0;
    color: var(--junksi-primary);
}


/* ==========================================================
   12. LINK PARA VOLTAR AO SITE
   ========================================================== */

.cadastro-voltar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin: 25px auto 0;
    color: var(--junksi-muted);
    font-size: 13px;
    font-weight: 600;
    transition: var(--junksi-transition);
}

.cadastro-voltar:hover {
    color: var(--junksi-primary-dark);
}

.cadastro-voltar i {
    font-size: 12px;
}


/* ==========================================================
   13. MENSAGENS DE RETORNO
   ========================================================== */

.cadastro-formulario .alert {
    padding: 14px 17px;
    margin-bottom: 25px;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.75;
}

.cadastro-formulario .alert-danger {
    color: #a52b38;
    background: #fff2f3;
    border: 1px solid #f4c9ce;
}

.cadastro-formulario .alert-warning {
    color: #856404;
    background: #fff9e8;
    border: 1px solid #f0dfa4;
}

.cadastro-formulario .alert-success {
    color: var(--junksi-primary-dark);
    background: var(--junksi-primary-light);
    border: 1px solid rgba(38, 156, 136, 0.25);
}


/* ==========================================================
   14. TELA DE CADASTRO CONCLUÍDO
   ========================================================== */

.cadastro-sucesso {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 30px 0;
    text-align: center;
}

.cadastro-sucesso-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 105px;
    height: 105px;
    margin-bottom: 27px;
    color: var(--junksi-primary);
    background: var(--junksi-primary-light);
    border: 1px solid rgba(38, 156, 136, 0.20);
    border-radius: 50%;
    font-size: 53px;
    animation: cadastroSucessoEntrada 0.55s ease-out;
}

.cadastro-sucesso .section-label {
    margin-bottom: 10px;
}

.cadastro-sucesso h2 {
    margin-bottom: 18px;
    color: var(--junksi-dark);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
}

.cadastro-sucesso > p {
    max-width: 420px;
    margin-bottom: 27px;
    color: var(--junksi-muted);
    font-size: 15px;
    line-height: 1.85;
}

.cadastro-sucesso > .btn {
    max-width: 420px;
    min-height: 53px;
}

@keyframes cadastroSucessoEntrada {

    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }

}


/* ==========================================================
   15. AVISO DE ENVIO DO E-MAIL
   ========================================================== */

.cadastro-email-aviso {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
    background: var(--junksi-primary-light);
    border: 1px solid rgba(38, 156, 136, 0.20);
    border-radius: 12px;
}

.cadastro-email-aviso > i {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--junksi-primary);
    font-size: 24px;
}

.cadastro-email-aviso strong {
    display: block;
    margin-bottom: 7px;
    color: var(--junksi-primary-dark);
    font-size: 14px;
}

.cadastro-email-aviso p {
    margin: 0;
    color: #4b7469;
    font-size: 13px;
    line-height: 1.75;
}


/* ==========================================================
   16. RODAPÉ
   ========================================================== */

.cadastro-footer {
    padding: 22px 0;
    background: var(--junksi-white);
    border-top: 1px solid var(--junksi-border);
}

.cadastro-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--junksi-muted);
    font-size: 12px;
}

.cadastro-footer-content strong {
    color: var(--junksi-primary-dark);
    font-weight: 700;
}


/* ==========================================================
   17. RESPONSIVIDADE - TABLETS
   ========================================================== */

@media (max-width: 1199px) {

    .cadastro-apresentacao {
        padding: 40px 30px 25px;
    }

    .cadastro-formulario {
        padding: 38px 35px;
    }

}

@media (max-width: 991px) {

    .cadastro-main {
        padding: 35px 0;
    }

    .cadastro-wrapper {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .cadastro-apresentacao {
        padding: 35px;
    }

    .cadastro-apresentacao h1 {
        max-width: 520px;
        font-size: 37px;
    }

    .cadastro-apresentacao-content > p {
        max-width: 540px;
    }

    .cadastro-periodo {
        max-width: 100%;
    }

    .cadastro-beneficios {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px 15px;
    }

    .cadastro-apresentacao-footer {
        display: none;
    }

    .cadastro-formulario {
        padding: 35px;
    }

}


/* ==========================================================
   18. RESPONSIVIDADE - CELULARES
   ========================================================== */

@media (max-width: 767px) {

    .cadastro-header {
        padding: 14px 0;
    }

    .cadastro-header-content {
        gap: 12px;
    }

    .cadastro-header-actions {
        gap: 0;
    }

    .cadastro-header-actions > span {
        display: none;
    }

    .cadastro-header-actions .btn {
        padding: 9px 12px;
        font-size: 11px;
    }

    .cadastro-header .brand-name {
        font-size: 28px;
    }

    .cadastro-main {
        padding: 24px 0;
    }

    .cadastro-wrapper {
        border-radius: 16px;
    }

    .cadastro-apresentacao {
        padding: 27px 23px;
    }

    .cadastro-badge {
        margin-bottom: 18px;
        font-size: 10px;
    }

    .cadastro-apresentacao h1 {
        margin-bottom: 15px;
        font-size: 31px;
        letter-spacing: -1px;
    }

    .cadastro-apresentacao-content > p {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .cadastro-periodo {
        gap: 15px;
        padding: 17px;
        margin-bottom: 18px;
    }

    .cadastro-periodo > strong {
        font-size: 50px;
    }

    .cadastro-periodo span {
        font-size: 16px;
    }

    .cadastro-periodo small {
        font-size: 10px;
    }

    .cadastro-beneficios {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 18px;
    }

    .cadastro-beneficios li {
        padding: 5px 0;
        font-size: 12px;
    }

    .cadastro-seguranca {
        padding: 14px;
    }

    .cadastro-seguranca strong {
        font-size: 12px;
    }

    .cadastro-seguranca small {
        font-size: 11px;
    }

    .cadastro-formulario {
        padding: 28px 23px;
    }

    .cadastro-form-heading {
        margin-bottom: 25px;
    }

    .cadastro-form-heading h2 {
        font-size: 28px;
    }

    .cadastro-form-heading p {
        font-size: 13px;
    }

    .cadastro-form-section h3 {
        font-size: 14px;
    }

    .cadastro-field {
        margin-bottom: 16px;
    }

    .cadastro-input-group .form-control {
        min-height: 48px;
        font-size: 16px;
    }

    .cadastro-input-group .form-control::placeholder {
        font-size: 12px;
    }

    .cadastro-plano-info {
        padding: 14px;
        margin: 22px 0;
    }

    #btnCadastrar {
        min-height: 52px;
        padding: 13px;
        font-size: 13px;
    }

    .cadastro-form-note {
        font-size: 10px;
    }

    .cadastro-sucesso {
        padding: 15px 0;
    }

    .cadastro-sucesso-icon {
        width: 85px;
        height: 85px;
        font-size: 43px;
    }

    .cadastro-sucesso h2 {
        font-size: 28px;
    }

    .cadastro-sucesso > p {
        font-size: 13px;
    }

    .cadastro-email-aviso {
        padding: 15px;
    }

    .cadastro-email-aviso > i {
        font-size: 20px;
    }

    .cadastro-email-aviso strong {
        font-size: 13px;
    }

    .cadastro-email-aviso p {
        font-size: 12px;
    }

    .cadastro-footer-content {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        text-align: center;
        font-size: 11px;
    }

}


/* ==========================================================
   19. TELAS MUITO PEQUENAS
   ========================================================== */

@media (max-width: 375px) {

    .cadastro-header .brand-name {
        font-size: 25px;
    }

    .cadastro-header-actions .btn {
        padding: 8px 10px;
        font-size: 10px;
    }

    .cadastro-apresentacao {
        padding: 24px 18px;
    }

    .cadastro-apresentacao h1 {
        font-size: 28px;
    }

    .cadastro-formulario {
        padding: 25px 18px;
    }

    .cadastro-form-heading h2 {
        font-size: 25px;
    }

    #btnCadastrar {
        font-size: 12px;
    }

}


/* ==========================================================
   20. ACESSIBILIDADE
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .cadastro-sucesso-icon {
        animation: none;
    }

    .cadastro-input-group .form-control,
    .cadastro-input-group > i,
    .cadastro-voltar {
        transition: none;
    }

}

/* ==========================================================
   21. COMBOBOXES DE ESTADO E CIDADE
   ========================================================== */

.cadastro-input-group .form-select {
    background-image: var(--bs-form-select-bg-img);
    padding-right: 36px;
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    cursor: pointer;
    text-overflow: ellipsis;
}

/* Preserva a seta do Bootstrap também quando o campo recebe foco. */
.cadastro-input-group .form-select:focus {
    background-color: var(--junksi-white);
    background-image: var(--bs-form-select-bg-img);
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
}

.cadastro-input-group .form-select:disabled {
    color: var(--junksi-muted);
    background-color: #eef3f1;
    border-color: var(--junksi-border);
    cursor: not-allowed;
    opacity: 1;
}

.cadastro-input-group .form-select.is-valid,
.cadastro-input-group .form-select.is-invalid {
    padding-right: 36px;
    background-image: var(--bs-form-select-bg-img);
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
}

#cidadeStatus:empty {
    display: none;
}

#cidadeStatus {
    min-height: 0;
    overflow-wrap: anywhere;
}

