/* css/cadastro-escola.css */
:root {
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --primary-light: #64b5f6;
    --secondary-color: #4db6ac;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --light-blue: #e3f2fd;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e3f2fd 100%);
    color: var(--text-color);
    min-height: 100vh;
}

.cadastro-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Cabeçalho */
.cadastro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.logo-container h1 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.trial-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.badge-text {
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Barra de Progresso */
.progress-container {
    margin: 40px 0;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-circle {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Formulário */
.cadastro-form-container {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.cadastro-form {
    display: none;
    animation: fadeIn 0.5s ease;
}

.cadastro-form.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-header p {
    color: var(--text-light);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--danger-color);
}

.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar::before {
    content: '';
    display: block;
    height: 100%;
    width: 20%;
    background-color: var(--danger-color);
    transition: width 0.3s ease;
}

.strength-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Termos e Condições */
.termos-container {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 30px;
}

.termos-content {
    background-color: var(--light-blue);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.termos-section {
    margin-bottom: 20px;
}

.termos-section h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.termos-section p,
.termos-section li {
    color: var(--text-light);
    line-height: 1.6;
}

.termos-section ul {
    padding-left: 20px;
    margin-top: 10px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.checkbox-group:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
}

/* Botões */
.form-actions {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-prev,
.btn-next {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-prev {
    background-color: #f5f5f5;
    color: var(--text-color);
}

.btn-prev:hover {
    background-color: #e0e0e0;
}

.btn-next {
    background-color: var(--primary-color);
    color: white;
}

.btn-next:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Tela de Sucesso */
.success-screen {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 20px;
    animation: bounce 1s ease infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.success-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.success-message {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.success-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.detail-card {
    background-color: var(--light-blue);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.detail-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.detail-card h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.detail-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--light-blue);
}

.support-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.support-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.support-info a:hover {
    text-decoration: underline;
}

/* Rodapé */
.cadastro-footer {
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 768px) {
    .cadastro-container {
        padding: 10px;
    }
    
    .cadastro-form-container {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-prev,
    .btn-next {
        width: 100%;
        justify-content: center;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .progress-bar {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .progress-bar::before {
        display: none;
    }
    
    .progress-step {
        flex-direction: row;
        width: 100%;
        gap: 15px;
    }
    
    .step-label {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .cadastro-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .success-content h2 {
        font-size: 1.5rem;
    }
}

/* Estilos para o campo de plano */
.plano-info {
    margin-top: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.plano-detalhes {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plano-preco {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.preco-valor {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.preco-periodo {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.plano-descricao {
    font-size: 0.9rem;
    color: var(--text-light);
    max-width: 60%;
    line-height: 1.4;
}

/* Responsividade para plano */
@media (max-width: 768px) {
    .plano-detalhes {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .plano-descricao {
        max-width: 100%;
    }
}

/* ===========================================
   CONFIGURAÇÃO INICIAL - ESTILOS
   =========================================== */

.configuracao-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Cabeçalho da Configuração */
.configuracao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.empresa-info {
    text-align: right;
}

.empresa-nome {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.configuracao-status {
    font-size: 14px;
    color: var(--text-light);
}

/* Stepper */
.stepper-container {
    margin-bottom: 40px;
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--primary-color);
    color: white;
}

.step.completed .step-circle {
    background: var(--success-color);
    color: white;
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: var(--text-light);
    max-width: 80px;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-connector {
    width: 80px;
    height: 2px;
    background: var(--border-color);
    margin: 0 15px;
}

.step.completed + .step-connector {
    background: var(--success-color);
}

/* Conteúdo dos Passos */
.configuracao-content {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.config-step {
    display: none;
    padding: 40px;
}

.config-step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

.step-header p {
    font-size: 16px;
    color: var(--text-light);
}

.step-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Ações dos Passos */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.btn-prev, .btn-next, .btn-skip {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-prev {
    background: var(--border-color);
    color: var(--text-color);
}

.btn-prev:hover {
    background: #d0d0d0;
}

.btn-skip {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-skip:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.btn-next {
    background: var(--primary-color);
    color: white;
}

.btn-next:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #26a69a;
    transform: translateY(-2px);
}

/* Modalidades */
.modalidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.modalidade-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.modalidade-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.modalidade-card.selected {
    border-color: var(--primary-color);
    background: var(--light-blue);
}

.modalidade-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

.modalidade-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.modalidade-info p {
    font-size: 14px;
    color: var(--text-light);
}

.modalidade-toggle {
    margin-left: auto;
}

.modalidade-checkbox {
    display: none;
}

.modalidade-checkbox + label {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.modalidade-checkbox:checked + label {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.modalidade-checkbox:checked + label::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
}

/* Turmas */
.turmas-sugestoes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.sugestao-card {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.sugestao-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sugestao-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-sugestao {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-sugestao:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Horários */
.dias-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.dia-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

.horario-inputs {
    display: flex;
    gap: 20px;
}

/* Equipe */
.equipe-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.equipe-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.equipe-member {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.member-info h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.member-info p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.member-role {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 500;
}

/* Resumo Final */
.final-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.summary-card i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
}

.summary-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.summary-card p {
    font-size: 14px;
    color: var(--text-light);
}

.final-message {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.final-message i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.final-message h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.final-message p {
    font-size: 16px;
    opacity: 0.9;
}

/* Estados vazios */
.empty-state {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 40px;
}

/* Responsividade */
@media (max-width: 768px) {
    .configuracao-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .stepper {
        padding: 20px;
    }

    .step-connector {
        width: 40px;
    }

    .step-label {
        font-size: 11px;
    }

    .config-step {
        padding: 20px;
    }

    .step-actions {
        flex-direction: column;
        gap: 15px;
    }

    .modalidades-grid {
        grid-template-columns: 1fr;
    }

    .turmas-sugestoes {
        grid-template-columns: 1fr;
    }

    .final-summary {
        grid-template-columns: 1fr;
    }

    .dias-grid {
        grid-template-columns: 1fr;
    }

    .horario-inputs {
        flex-direction: column;
    }
}