/* =========================================
   PÁGINA DE CADASTRO DE CLIENTE
   ========================================= */

/* wrapper geral da página de cadastro */
.cadastro-page {
    display: flex;
    justify-content: center;
    padding: 32px 16px 48px;
}

/* centraliza dentro do site-main-inner */
.cadastro-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* CARD GRANDÃO (pode ficar largão em desktop) */
.cadastro-card {
    width: 100%;
    max-width: 720px;          /* AQUI é a largura do card em desktop */
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
    padding: 32px 40px 36px;
    margin: 0 auto;
}

/* títulos */
.cadastro-title {
    margin: 0 0 4px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.cadastro-subtitle {
    margin: 0 0 20px;
    font-size: 0.95rem;
    color: #6b7280;
}

/* alerts */
.alert-error,
.alert-success {
    border-radius: 0.75rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert-success {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* formulário */
.cadastro-form {
    display: flex;
    max-width: 720px;
    flex-direction: column;
    gap: 14px;
}

/* esconde honeypot */
.bot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* grupo */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.cadastro-form input[type="text"],
.cadastro-form input[type="tel"],
.cadastro-form input[type="date"] {
    height: 44px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 0 16px;
    font-size: 0.95rem;
    outline: none;
    background: #f9fafb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    width: 100%;
}

.cadastro-form input[type="date"] {
    padding-right: 40px;
}

.cadastro-form input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

/* termos */
.form-termos {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #4b5563;
}

.termos-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.termos-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

/* estado "apagado" até rolar os termos */
.termos-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.termos-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.link-termos {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    color: #2563eb;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
}

.termos-erro {
    margin-top: 4px;
    font-size: 0.8rem;
    color: #b91c1c;
}

/* botão principal */
.btn-primary {
    margin-top: 10px;
    height: 46px;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.45);
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(37, 99, 235, 0.55);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.45);
    opacity: 0.95;
}

/* rodapé do form */
.form-footer-text {
    margin-top: 14px;
    font-size: 0.85rem;
    color: #6b7280;
}

.form-footer-text a {
    color: #2563eb;
    text-decoration: underline;
}

/* =========================================
   MODAL TERMOS
   ========================================= */

.termos-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.termos-modal-overlay.open {
    display: flex;
}

.termos-modal {
    width: 100%;
    max-width: 960px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
}

.termos-close {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    color: #6b7280;
}

.termos-modal-header {
    padding: 1rem 1.5rem 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
}

.termos-modal-body {
    padding: 1rem 1.5rem;
    flex: 1;
    overflow-y: auto;
    font-size: 0.9rem;
    color: #111827;
}

/* deixa os textos do termo mais bonitinhos caso não tenham css próprio */
.termos-modal-body h1,
.termos-modal-body h2,
.termos-modal-body h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.termos-modal-body p {
    margin: 0.25rem 0;
    line-height: 1.5;
}
.termos-modal-body ul {
    padding-left: 1.2rem;
}

/* rodapé do modal */
.termos-modal-footer {
    padding: 0.75rem 1.5rem 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.btn-termos-aceitar {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(22, 163, 74, 0.4);
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-termos-aceitar:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-termos-aceitar:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.5);
}

.btn-termos-aceitar:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.45);
}

/* =========================================
   MODAL LOGIN (reaproveitando estilos base)
   ========================================= */

.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    padding: 1rem;
}

.login-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.login-modal {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.45);
    position: relative;
    padding: 1.25rem 1.25rem 1.2rem;
}

/* =========================================
   RESPONSIVO
   ========================================= */

@media (max-width: 640px) {
    .cadastro-page {
    width: 100vw;         /* usa a largura inteira da janela */
    }
}

@media (min-width: 1024px) {
    .cadastro-page {
    width: 620px;          /* usa a largura inteira da janela */
    }
}

/* Faz a área cinza do cadastro ocupar a tela toda,
   ignorando o max-width do container global */
.cadastro-page {
    width: 620px;          /* usa a largura inteira da janela */
  
}

@media (max-width: 620px) {
    .cadastro-page {
    width: 100vw;         /* usa a largura inteira da janela */
    }
}



