/**
 * CSS Frontend - ASENF Fondo Concursable
 */

.afc-form-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.afc-logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.afc-logo {
    max-width: 200px;
    height: auto;
}

.afc-form-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.afc-form-header h2 {
    color: #1e3a8a;
    font-size: 28px;
    margin: 0 0 10px 0;
}

.afc-form-subtitle {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

.afc-form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 4px solid #3b82f6;
}

.afc-form-section h3 {
    color: #1e3a8a;
    font-size: 20px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.afc-section-description {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 20px 0;
    font-style: italic;
}

.afc-form-group {
    margin-bottom: 20px;
}

.afc-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.afc-col-6 {
    flex: 1;
}

.afc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

.afc-required::after {
    content: " *";
    color: #ef4444;
}

.afc-input,
.afc-textarea,
.afc-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.afc-input:focus,
.afc-textarea:focus,
.afc-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.afc-textarea {
    resize: vertical;
    font-family: inherit;
}

.afc-file-input {
    width: 100%;
    padding: 10px;
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.afc-file-input:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.afc-help-text {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 13px;
    font-style: italic;
}

.afc-form-actions {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.afc-btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.afc-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.afc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

.afc-btn-primary:active {
    transform: translateY(0);
}

.afc-btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.afc-btn-text {
    display: inline-block;
}

.afc-btn-loader {
    display: none;
}

.afc-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: afc-spin 0.6s linear infinite;
}

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

.afc-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
}

.afc-message.success {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.afc-message.error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
    .afc-form-container {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .afc-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .afc-form-header h2 {
        font-size: 24px;
    }
    
    .afc-form-subtitle {
        font-size: 14px;
    }
    
    .afc-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

/* Loading state */
.afc-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.afc-form.loading .afc-btn-text {
    display: none;
}

.afc-form.loading .afc-btn-loader {
    display: inline-block;
}
