/* css/empresa.css */

/* Cores e Variáveis */
:root {
    --bg-light: #f8f9fa;
    --primary-blue: #1976D2;
    --primary-dark: #1565C0;
    --text-dark: #333333;
    --text-muted: #666666;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.1);
    --success-green: #2e7d32;
}

/* Overlay do Modal - Adaptativo */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light); 
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

/* Esconde elementos */
.hidden { display: none !important; }

/* Card Principal - Híbrido */
.modal-card {
    background: white;
    width: 100%;
    height: 100%; /* Full screen no mobile */
    max-width: 500px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Ajustes para telas maiores (Desktop/Tablet) */
@media (min-width: 600px) {
    .modal-overlay {
        background-color: rgba(0, 0, 0, 0.4); 
        padding: 40px 0;
    }
    .modal-card {
        height: auto;
        max-height: 90vh;
        border-radius: 28px;
        box-shadow: var(--card-shadow);
    }
}

/* Header fixo no topo */
.screen-header {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.btn-back {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
    border-radius: 50%;
    transition: background 0.2s;
}

.btn-back:hover { background-color: #f0f0f0; }

/* --- Termos de Uso --- */
.terms-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.terms-scroll-view {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 16px;
    background-color: #fafafa;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch; /* Suavidade no iOS/Capacitor */
}

/* Estilização interna dos termos */
.terms-scroll-view section { margin-bottom: 15px; }
.terms-scroll-view h4 { color: var(--primary-blue); margin-bottom: 5px; }
.terms-scroll-view p { font-size: 0.9rem; line-height: 1.4; color: var(--text-muted); }

/* Custom Scrollbar para Desktop */
.terms-scroll-view::-webkit-scrollbar { width: 6px; }
.terms-scroll-view::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

/* Container do Checkbox */
.terms-acceptance {
    padding: 15px 0;
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: not-allowed;
    font-size: 0.9rem;
    color: var(--text-muted);
    user-select: none;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.checkbox-container.active {
    opacity: 1;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
}

.checkbox-container input {
    margin-right: 12px;
    width: 22px;
    height: 22px;
    cursor: inherit;
}

/* --- Formulário de Cadastro --- */
#form-empresa-container {
    overflow-y: auto;
    flex: 1;
}

.form-instruction {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.avatar-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.circle-avatar {
    width: 80px;
    height: 80px;
    background-color: #e3f2fd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: var(--primary-blue);
    border: 2px dashed var(--primary-blue);
}

.input-group-form {
    display: flex;
    align-items: center;
    background: #f1f3f4;
    border-radius: 12px;
    padding: 4px 15px;
    margin-bottom: 12px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.input-group-form:focus-within {
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.input-group-form i {
    color: var(--text-muted);
    width: 25px;
    font-size: 1.1rem;
}

.input-group-form input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    padding: 12px 5px;
    font-size: 1rem;
    color: var(--text-dark);
}

/* Botões */
.btn-full {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

.btn-primary:active { transform: scale(0.98); }

.btn-primary:disabled, .btn-primary.disabled {
    background-color: #ccc !important;
    color: #888;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Animação de entrada */
.modal-card {
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ajustes de Spinner para o botão de carregamento */
.fa-spin {
    animation: spin 1s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}