/* ═══════════════════════════════════════════════════════════════
   ESTILOS PARA FORMULARIO DE INSCRIPCIÓN
   ═══════════════════════════════════════════════════════════════ */

.personal-data-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

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

.form-group label {
    color: #909090;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-group input {
    padding: 14px 18px;
    background: #0f1419;
    border: 1px solid #2a3440;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #b47b18;
    background: #151c22;
    box-shadow: 0 0 0 3px rgba(180, 123, 24, 0.1);
}

.form-group input::placeholder {
    color: #606060;
}

.form-group input:required {
    border-left: 3px solid rgba(180, 123, 24, 0.5);
}

/* Select fields - mismo estilo que inputs */
.form-group select,
.personal-data-form .form-group select,
#customer-tax-id-type {
    padding: 14px 18px !important;
    background: linear-gradient(135deg, #0f1419 0%, #151c22 100%) !important;
    border: 1.5px solid #2a3440 !important;
    border-radius: 8px !important;
    color: #e0e0e0 !important;
    font-size: 15px !important;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23b47b18' d='M7 10L1 4h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
    padding-right: 44px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    height: auto !important;
    margin-bottom: 0 !important;
    width: 100%;
}

.form-group select:hover,
.personal-data-form .form-group select:hover,
#customer-tax-id-type:hover {
    border-color: #3a4450 !important;
    background-color: #151c22 !important;
    box-shadow: 0 4px 12px rgba(180, 123, 24, 0.15);
}

.form-group select:focus,
.personal-data-form .form-group select:focus,
#customer-tax-id-type:focus {
    outline: none !important;
    border-color: #b47b18 !important;
    background: linear-gradient(135deg, #151c22 0%, #1a2230 100%) !important;
    box-shadow: 0 0 0 4px rgba(180, 123, 24, 0.15), 0 0 20px rgba(180, 123, 24, 0.1);
}

.form-group select option {
    background: #0f1419;
    color: #e0e0e0;
    padding: 12px;
    border-radius: 4px;
}

.form-group select option:checked {
    background: linear-gradient(#b47b18, #b47b18);
    background-color: #b47b18 !important;
    color: #000 !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.btn-complete-inscription:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Price Details Styles */
.price-note {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

.price-breakdown {
    display: inline-block;
    margin-right: 15px;
    color: #999;
}

.price-breakdown strong {
    color: #b47b18;
    font-weight: 600;
}

.summary-total-label .price-note {
    margin-top: 8px;
}

.summary-total-label .price-breakdown {
    display: block;
    margin: 5px 0;
}

/* ═══════════════════════════════════════════════════════════════
   TARJETA INFORMATIVA DE FINANCIACIÓN
   ═══════════════════════════════════════════════════════════════ */

.installment-info-card {
    background: linear-gradient(135deg, rgba(180, 123, 24, 0.05) 0%, rgba(180, 123, 24, 0.02) 100%);
    border: 2px solid rgba(180, 123, 24, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    animation: fadeIn 0.5s ease;
}

.installment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.installment-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #b47b18 0%, #d49832 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.installment-title h4 {
    font-size: 20px;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 0.25rem 0;
}

.installment-title p {
    font-size: 14px;
    color: #909090;
    margin: 0;
}

.installment-content p {
    font-size: 15px;
    color: #bbbbbb;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.installment-content p strong {
    color: #d49832;
    font-weight: 600;
}

.installment-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.installment-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.installment-list li:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(180, 123, 24, 0.3);
    transform: translateX(5px);
}

.installment-list li span {
    font-size: 14px;
    color: #bbbbbb;
}

.installment-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.installment-badge.klarna {
    background: linear-gradient(135deg, #FFB3C7 0%, #FF6FA3 100%);
    color: #000;
}

.installment-badge.paypal {
    background: linear-gradient(135deg, #34B4EB 0%, #3455EB 100%);
    color: #000;
}

.installment-badge.billie {
    background: linear-gradient(135deg, #00D4FF 0%, #0091FF 100%);
    color: #000;
}

.installment-badge.sequra {
    background: linear-gradient(135deg, #90EE90 0%, #32CD32 100%);
    color: #000;
    opacity: 0.7;
}

.installment-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(180, 123, 24, 0.08);
    border-left: 3px solid #b47b18;
    border-radius: 6px;
    font-size: 13px;
    color: #999;
    margin-top: 1.5rem;
    line-height: 1.5;
}

.installment-note i {
    color: #b47b18;
    margin-top: 2px;
    flex-shrink: 0;
}

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

/* Responsive */
@media (max-width: 768px) {
    .installment-info-card {
        padding: 1.5rem;
    }
    
    .installment-header {
        flex-direction: column;
        text-align: center;
    }
    
    .installment-list li {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .installment-badge {
        width: 100%;
    }
}

/* ===========================
   NOTIFICATION STYLES
   =========================== */
.wizard-notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 1rem 1.25rem 1rem 1rem;
    background: linear-gradient(135deg, #1a1f2e 0%, #252a3a 100%);
    color: white;
    border-radius: 14px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
    transform: translateX(420px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    max-width: 420px;
    font-weight: 500;
    backdrop-filter: blur(12px);
    border-left: 4px solid #667eea;
}

.wizard-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
}

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.notification-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.3;
}

.notification-message {
    flex: 1;
    line-height: 1.5;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1rem;
    line-height: 1;
}

.notification-close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* Success Notification */
.notification-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #0f1f1a 0%, #132f23 100%);
}

.notification-success .notification-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(52, 211, 153, 0.15) 100%);
    color: #34d399;
}

/* Error Notification */
.notification-error {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #1f0f0f 0%, #2f1313 100%);
    animation: errorShake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.notification-error .notification-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(248, 113, 113, 0.15) 100%);
    color: #f87171;
}

/* Warning Notification */
.notification-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #1f1a0f 0%, #2f2613 100%);
}

.notification-warning .notification-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(251, 191, 36, 0.15) 100%);
    color: #fbbf24;
}

/* Info Notification */
.notification-info {
    border-left-color: #b47b18;
    background: linear-gradient(135deg, #1a1510 0%, #2a2218 100%);
}

.notification-info .notification-icon {
    background: linear-gradient(135deg, rgba(180, 123, 24, 0.2) 0%, rgba(212, 160, 60, 0.15) 100%);
    color: #d4a03c;
}

/* Notification progress bar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 0 0 0 14px;
    animation: notificationProgress linear forwards;
}

.notification-error .notification-progress {
    background: #ef4444;
    animation-duration: 4s;
}

.notification-success .notification-progress {
    background: #10b981;
    animation-duration: 3s;
}

.notification-info .notification-progress {
    background: #b47b18;
    animation-duration: 3s;
}

@keyframes notificationProgress {
    from { width: 100%; }
    to { width: 0%; }
}

@keyframes errorShake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

@media (max-width: 768px) {
    .wizard-notification {
        right: 12px;
        left: 12px;
        top: 16px;
        max-width: none;
        padding: 0.875rem 1rem 0.875rem 0.875rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .notification-title {
        font-size: 0.9rem;
    }
    
    .notification-message {
        font-size: 0.825rem;
    }
}

/* ===========================
   INLINE FIELD ERROR STYLES
   =========================== */
.form-group.has-error input,
.form-group.has-error select {
    border-color: #ef4444 !important;
    background: linear-gradient(135deg, #1f0f0f 0%, #180d0d 100%) !important;
    animation: inputShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

.form-group.has-error input:focus,
.form-group.has-error select:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15), 0 0 20px rgba(239, 68, 68, 0.1) !important;
}

.form-group .field-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-radius: 8px;
    border-left: 3px solid #ef4444;
    animation: fadeSlideIn 0.3s ease forwards;
}

.field-error-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #f87171;
}

.field-error-text {
    color: #fca5a5;
    font-size: 0.825rem;
    line-height: 1.4;
    font-weight: 500;
}

@keyframes inputShake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-3px); }
    40%, 60% { transform: translateX(3px); }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Valid field styling */
.form-group.has-success input,
.form-group.has-success select {
    border-color: #10b981 !important;
}

.form-group.has-success input:focus,
.form-group.has-success select:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15), 0 0 20px rgba(16, 185, 129, 0.1) !important;
}

