/* Estilos modernos para el formulario de donantes */
.modern-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header moderno */
.modern-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.modern-form-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-form-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gfn-dark-teal), var(--gfn-light-teal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.modern-form-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gfn-dark-teal);
}

.modern-form-help-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gfn-light-gray);
    border: 1px solid var(--gfn-light-teal);
    border-radius: 12px;
    color: var(--gfn-dark-teal);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-form-help-btn:hover {
    background: var(--gfn-light-teal);
    transform: translateY(-1px);
}

/* Progress indicator moderno */
.modern-progress-container {
    margin-bottom: 2rem;
}

.modern-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modern-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 12px;
    min-width: 120px;
}

.modern-progress-step.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.modern-progress-step.active {
    background: linear-gradient(135deg, var(--gfn-dark-teal), var(--gfn-light-teal));
    color: white;
    transform: scale(1.05);
}

.modern-progress-step.pending {
    background: var(--gfn-light-gray);
    color: #6b7280;
}

.modern-progress-step-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.modern-progress-step-text {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.modern-progress-line {
    width: 40px;
    height: 3px;
    margin: 0 0.5rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.modern-progress-line.completed {
    background: linear-gradient(90deg, #10b981, #059669);
}

.modern-progress-line.pending {
    background: var(--gfn-light-gray);
}

/* Resumen moderno */
.modern-form-summary {
    margin-bottom: 2rem;
}

.modern-summary-card {
    display: flex;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    gap: 2rem;
    flex-wrap: wrap;
}

.modern-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 150px;
}

.modern-summary-item.modern-summary-total {
    background: linear-gradient(135deg, var(--gfn-light-teal), var(--gfn-dark-teal));
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin-left: auto;
}

.modern-summary-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.modern-summary-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gfn-dark-teal);
}

.modern-summary-total .modern-summary-label {
    color: rgba(255, 255, 255, 0.8);
}

.modern-summary-total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* Contenido del formulario */
.modern-form-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modern-form-card {
    padding: 2rem;
}

.modern-form-section {
    margin-bottom: 2rem;
}

.modern-form-section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modern-form-section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gfn-dark-teal);
    margin-bottom: 0.5rem;
}

.modern-form-section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 400;
}

/* Grid del formulario */
.modern-form-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.modern-form-grid-metrics {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.modern-form-grid-donors {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Campos del formulario */
.modern-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modern-form-field-full {
    grid-column: 1 / -1;
}

.modern-form-field-metric {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.modern-form-field-metric:hover {
    border-color: var(--gfn-light-teal);
    transform: translateY(-2px);
}

.modern-form-field-total {
    background: linear-gradient(135deg, var(--gfn-light-teal), var(--gfn-dark-teal));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    grid-column: 1 / -1;
}

.modern-form-field-donor {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.modern-form-field-donor:hover {
    border-color: var(--gfn-light-teal);
    transform: translateY(-1px);
}

.modern-form-field-group {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.modern-form-field-flex {
    flex: 1;
}

.modern-form-field-button {
    flex-shrink: 0;
}

/* Labels */
.modern-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gfn-dark-teal);
    margin-bottom: 0.25rem;
}

.modern-form-label-total {
    color: white;
    font-size: 1rem;
}

/* Inputs */
.modern-form-input {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.modern-form-input:focus {
    outline: none;
    border-color: var(--gfn-dark-teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.modern-form-input-readonly {
    background: var(--gfn-light-gray);
    color: #6b7280;
    cursor: not-allowed;
}

.modern-form-input-metric {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    background: white;
    border: 2px solid var(--gfn-light-teal);
}

.modern-form-input-total {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

/* Lista de valores */
.modern-form-values-list {
    background: var(--gfn-light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.modern-form-values-header {
    margin-bottom: 1rem;
}

.modern-form-values-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gfn-dark-teal);
}

.modern-form-values-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modern-form-value-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--gfn-light-teal);
    transition: all 0.3s ease;
}

.modern-form-value-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modern-form-value-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modern-form-value-name {
    font-weight: 600;
    color: var(--gfn-dark-teal);
}

.modern-form-value-amount {
    font-weight: 700;
    color: var(--gfn-dark-teal);
    font-size: 1.125rem;
}

/* Botones */
.modern-form-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.modern-form-btn-primary {
    background: linear-gradient(135deg, var(--gfn-dark-teal), var(--gfn-light-teal));
    color: white;
}

.modern-form-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.modern-form-btn-secondary {
    background: var(--gfn-light-gray);
    color: var(--gfn-dark-teal);
    border: 1px solid var(--gfn-light-teal);
}

.modern-form-btn-secondary:hover {
    background: var(--gfn-light-teal);
    transform: translateY(-1px);
}

.modern-form-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.modern-form-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(16, 185, 129, 0.3);
}

.modern-form-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

.modern-form-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

/* Acciones del formulario */
.modern-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    gap: 1rem;
    flex-wrap: wrap;
}

.modern-form-navigation {
    display: flex;
    gap: 1rem;
}

.modern-form-submit {
    display: flex;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-form-container {
        padding: 1rem;
    }
    
    .modern-form-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .modern-progress-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modern-progress-line {
        width: 3px;
        height: 40px;
        margin: 0.5rem 0;
    }
    
    .modern-summary-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modern-form-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modern-form-navigation,
    .modern-form-submit {
        width: 100%;
        justify-content: center;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-form-section {
    animation: fadeInUp 0.5s ease-out;
}

/* Estados de hover mejorados */
.modern-form-field:hover .modern-form-label {
    color: var(--gfn-dark-teal);
}

.modern-form-input:hover {
    border-color: var(--gfn-light-teal);
}

/* Focus states */
.modern-form-input:focus {
    transform: scale(1.02);
}

/* Loading states */
.modern-form-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success states */
.modern-form-input:valid {
    border-color: #10b981;
}

.modern-form-input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}
