/* Estilos para la integración de WebPay */
.payment-section {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.payment-section h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.payment-section p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.payment-section strong {
    color: #d9534f;
    font-weight: bold;
}

.payment-success-message,
.payment-error-message {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.payment-success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payment-error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.payment-success-message h3,
.payment-error-message h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.payment-success,
.payment-error {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.payment-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.payment-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.payment-success h2,
.payment-error h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
}

.payment-success h2 {
    color: #155724;
}

.payment-error h2 {
    color: #721c24;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Estilo para el botón de envío del formulario */
input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Estilo para campos deshabilitados */
input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Indicador de carga durante el proceso de pago */
.payment-loading {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.payment-loading span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #007bff;
    border-radius: 50%;
    animation: loading 1.4s infinite ease-in-out both;
    margin: 0 2px;
}

.payment-loading span:nth-child(1) {
    animation-delay: -0.32s;
}

.payment-loading span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loading {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1.0);
    }
}