/* ativacao-cadastro.css - small overrides for cadastro page */

/* Basic responsive grid: left card + right form on desktop */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px
}

/* Estilos responsivos para mobile */
@media (max-width: 768px) {
    .page-main {
        padding: 16px 12px !important;
        margin-top: 0 !important;
    }
    #formTitle {
        font-size: 24px !important;
    }
    #formSubtitle {
        font-size: 14px !important;
    }
    .form-row {
        flex-direction: column !important;
    }
    .form-row .form-group {
        width: 100% !important;
    }
    /* Exceção: campos de influenciador ficam lado a lado no mobile */
    #influenciadorFields .form-row {
        flex-direction: row !important;
    }
    #influenciadorFields .form-row .form-group {
        width: auto !important;
        flex: 1;
    }
    /* Grid de lojista: 1 coluna no mobile */
    .lojista-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Melhorias gerais */
.form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.form-row .form-group {
    flex: 1;
    min-width: 0;
}
.form-row .form-group.small {
    flex: 0 0 auto;
    min-width: 120px;
}
.form-row .form-group.flex {
    flex: 1;
}

/* Grid de 2 colunas para campos de lojista */
.lojista-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}

.lojista-grid .form-group {
    margin-bottom: 0;
}

.btn-primary:hover {
    background: #de272e !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    margin-top: 12px;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    animation: pulse-shadow 2.5s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(#de272e) 0%, var(#de272e) 100%);
    border: none;
    color: white;
    width: 100%;
}

.card {
    background: var(--card-bg, #0b1220);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgb(2 6 23 / 11%);
}

.formulario-card {
    background: var(--panel-bg, #fff);
    color: var(--text);
}

.destaque-card {
    background: linear-gradient(135deg, var(--primary) 0%, #0ea5a6 100%);
    color: #fff
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    font-size: 14px
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 166, 0.12)
}

/* Estilo para campos com erro de validação */
.form-group input[style*="border-color: rgb(239, 68, 68)"],
.form-group select[style*="border-color: rgb(239, 68, 68)"] {
    border-width: 2px;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-row {
    display: flex;
    gap: 12px
}

.form-row .small {
    flex: 0 0 140px
}

.form-row .flex {
    flex: 1
}

@media(max-width:600px) {
    .form-row {
        flex-direction: column
    }

    .form-row .small {
        flex: unset
    }
}

.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.file-name {
    font-size: 13px;
    color: var(--muted, #6b7280);
    flex: 1;
    min-width: 150px;
}

/* Estilos melhorados para botões de arquivo */
#btnChooseFile {
    background: linear-gradient(135deg, #de272e 0%, #de272e 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#btnChooseFile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #de272e;
}

#btnChooseFile i {
    font-size: 14px;
}

#btnRemoveFile {
    background: #fff;
    color: #ef4444;
    border: 2px solid #ef4444;
    padding: 10px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#btnRemoveFile:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

#btnRemoveFile i {
    font-size: 14px;
}

/* Responsivo para botões de arquivo */
@media (max-width: 600px) {
    .file-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .file-name {
        order: 2;
        text-align: center;
        padding: 8px 0;
    }
    
    #btnChooseFile {
        order: 1;
        width: 100%;
    }
    
    #btnRemoveFile {
        order: 3;
        width: 100%;
    }
}

.btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer
}

.btn-primary {
    background: #e41b23;
    color: #fff;
    border-color: transparent
}

.btn-outline {
    background: transparent;
    border: 2px solid rgb(255, 255, 255);
    color: white
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.6);
    z-index: 1200
}

.modal-content {
    width: 100%;
    max-width: 520px;
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6)
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    border: none;
    background: transparent;
    font-size: 18px
}

.form-error {
    color: #e11d48;
    font-size: 13px;
    min-height: 18px
}

.muted {
    color: #6b7280;
    font-size: 13px
}

/* small improvements for accessibility focus */
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(16, 185, 129, 0.12);
    outline-offset: 2px
}

/* make sure the whatsapp FAB sits above modal if needed */
a[aria-label="WhatsApp"] {
    z-index: 1300
}