/* ============================================================================
   SEAP - Estilos para Formulario de Registro de Socios
   ============================================================================ */

.registro-socio-page {
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo p {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.header nav a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.header nav a:hover {
    opacity: 0.8;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Registro Form */
.registro-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #ecf0f1;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    color: #e91e63;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-left: 4px solid #e91e63;
    padding-left: 1rem;
}

.subsection-title {
    color: #34495e;
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Form Groups */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.form-group.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.form-group.col-md-4 {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.form-group.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.form-group.col-md-8 {
    flex: 0 0 66.666%;
    max-width: 66.666%;
}

.form-group.col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.form-group.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Form Controls */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #34495e;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-control:disabled {
    background-color: #ecf0f1;
    cursor: not-allowed;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Input Groups */
.input-group {
    display: flex;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Checkboxes Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #e91e63;
}

.form-check-label {
    cursor: pointer;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #34495e;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #e91e63, #c2185b);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-outline-secondary {
    background: white;
    color: #6c757d;
    border: 1px solid #cbd5e0;
}

.btn-outline-secondary:hover {
    background: #f8f9fa;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #ecf0f1;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-info {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1976d2;
}

.alert-success {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #388e3c;
}

.alert-danger {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

.alert-secondary {
    background-color: #f5f7fa;
    border: 1px solid #e0e7ee;
    color: #6c757d;
}

/* Text Utilities */
.text-danger {
    color: #dc3545;
}

.text-muted {
    color: #6c757d;
}

.text-center {
    text-align: center;
}

.small {
    font-size: 0.875rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.font-weight-bold {
    font-weight: 700;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.footer p {
    margin: 0;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-group.col-md-3,
    .form-group.col-md-4,
    .form-group.col-md-6,
    .form-group.col-md-8,
    .form-group.col-md-9,
    .form-group.col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header nav {
        margin-top: 1rem;
    }

    .header nav a {
        margin: 0 1rem;
    }

    .form-header h1 {
        font-size: 1.75rem;
    }

    .registro-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .btn-lg {
        width: 100%;
        padding: 1rem;
    }
}

/* ============================================================================
   Wizard Styles
   ============================================================================ */

.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ecf0f1;
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: #95a5a6;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.85rem;
    color: #95a5a6;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    border-color: #e91e63;
    background: #e91e63;
    color: white;
    box-shadow: 0 0 0 5px rgba(233, 30, 99, 0.1);
}

.progress-step.active .step-label {
    color: #e91e63;
    font-weight: 700;
}

.progress-step.completed .step-number {
    border-color: #e91e63;
    background: white;
    color: #e91e63;
}

/* Wizard Steps transitions */
.wizard-step {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
}

.wizard-step.active {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
    transform: translateY(0);
}

/* Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #ecf0f1;
}

.btn-prev {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-prev:hover {
    background: #bdc3c7;
}

.d-none {
    display: none !important;
}

@media (max-width: 600px) {
    .step-label {
        display: none;
    }
    
    .wizard-progress {
        margin-bottom: 2rem;
    }
}
