/**
 * Estilos para el proceso de pago de la Ronda de Negocios
 * Encuentro Ferretero 2026
 */

/* Header del formulario */
.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.form-header p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.step-counter {
    display: inline-block;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Indicador de progreso */
.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem 0;
    position: relative;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin: 0 2rem;
    transition: all 0.3s ease;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -2rem;
    width: 4rem;
    height: 2px;
    background-color: #e0e0e0;
    z-index: -1;
}

.progress-step:first-child::before {
    display: none;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.4s ease;
    border: 3px solid transparent;
    position: relative;
    z-index: 2;
}

.step-label {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
    transform: scale(1.1);
}

.progress-step.active .step-label {
    color: #007bff;
    font-weight: 700;
    text-transform: uppercase;
}

.progress-step.completed .step-number {
    background: linear-gradient(135deg, #28a745, #20aa3a);
    color: white;
    border-color: #28a745;
    transform: scale(1.05);
}

.progress-step.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 0.8rem;
    font-weight: bold;
}

.progress-step.completed .step-label {
    color: #28a745;
    font-weight: 700;
}

.progress-step.completed::before {
    background: linear-gradient(90deg, #28a745, #20aa3a);
    height: 3px;
}

.progress-step.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.progress-step.locked .step-number {
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

/* Selección de precios */
.pricing-selection {
    margin-bottom: 2rem;
}

.pricing-selection h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.pricing-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pricing-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-option:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.pricing-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pricing-option input[type="radio"]:checked + .option-content {
    color: #007bff;
}

.pricing-option input[type="radio"]:checked {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.pricing-option:has(input:checked) {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.option-content {
    text-align: center;
}

.option-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.option-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0.25rem;
}

.option-description {
    font-size: 0.9rem;
    color: #666;
}

/* Resumen de pago */
.payment-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.payment-summary h4 {
    margin-bottom: 1rem;
    color: #333;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.1rem;
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.summary-description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Acciones de pago */
.payment-actions {
    margin-bottom: 2rem;
}

.payment-actions .btn {
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Información de pago */
.payment-info {
    background-color: #e9f7ff;
    border-left: 4px solid #007bff;
    padding: 1rem;
    border-radius: 4px;
}

.payment-info h5 {
    margin-bottom: 0.75rem;
    color: #333;
}

.payment-info ul {
    margin: 0;
    padding-left: 1.25rem;
}

.payment-info li {
    margin-bottom: 0.25rem;
    color: #555;
}

/* Confirmación exitosa */
.confirmation-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.confirmation-success h4 {
    color: #28a745;
    margin-bottom: 1rem;
}

.confirmation-success p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.next-steps {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.next-steps h5 {
    margin-bottom: 1rem;
    color: #333;
}

.next-steps ul {
    margin: 0;
    padding-left: 1.25rem;
}

.next-steps li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Mensajes de estado */
.payment-message {
    margin-bottom: 1rem;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-content {
    display: flex;
    align-items: center;
    padding: 1rem;
    position: relative;
}

.payment-message.success .message-content {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.payment-message.error .message-content {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.payment-message.info .message-content {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.payment-message.warning .message-content {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.message-icon {
    margin-right: 0.75rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.message-text {
    flex: 1;
}

.message-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    color: inherit;
    opacity: 0.7;
}

.message-close:hover {
    opacity: 1;
}

/* Spinner de carga */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .pricing-options {
        grid-template-columns: 1fr;
    }

    .progress-indicator {
        flex-direction: column;
        gap: 1rem;
    }

    .progress-step {
        margin: 0;
        flex-direction: row;
        gap: 0.5rem;
    }

    .progress-step::before {
        display: none;
    }

    .step-number {
        margin-bottom: 0;
    }

    .confirmation-success {
        padding: 1rem;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}