/* Webpay Eventos - Main Styles */

.webpay-eventos-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.webpay-eventos-form-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.webpay-eventos-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #0056b3;
    text-align: center;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 15px;
}

/* Pricing Section */
.webpay-pricing-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.webpay-pricing-section h3 {
    color: #ff6600;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.webpay-pricing-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

.webpay-pricing-item:nth-child(even) {
    background-color: #e9ecef;
}

.webpay-pricing-item:last-child {
    border-bottom: none;
}

.pricing-name {
    font-weight: 500;
    color: #333;
}

.pricing-value {
    font-weight: 700;
    color: #0056b3;
}

/* Alert Styles */
.webpay-eventos-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid;
}

.webpay-alert-info {
    background-color: #d1ecf1;
    border-color: #0c5460;
    color: #0c5460;
}

.webpay-alert-info strong {
    display: block;
    margin-bottom: 10px;
}

.webpay-alert-info ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.webpay-alert-info li {
    margin: 5px 0;
}

.webpay-alert-error {
    background-color: #f8d7da;
    border-color: #721c24;
    color: #721c24;
}

.webpay-alert-success {
    background-color: #d4edda;
    border-color: #155724;
    color: #155724;
}

/* Form Sections */
.webpay-form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #0056b3;
}

.section-title {
    color: #0056b3;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

/* Form Rows (2 columns) */
.webpay-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* Form Groups */
.webpay-form-group {
    margin-bottom: 15px;
}

.webpay-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.webpay-form-group .required {
    color: #dc3545;
}

.webpay-form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.webpay-form-control:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* Radio and Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    gap: 20px;
    padding-top: 5px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: normal;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Total Display */
.webpay-total-display {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    color: white;
    padding: 20px;
    border-radius: 5px;
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.webpay-total-label {
    font-weight: 600;
    font-size: 18px;
}

.webpay-total-amount {
    font-size: 28px;
    font-weight: 700;
}

/* Button Styles */
.webpay-form-actions {
    margin-top: 25px;
}

.webpay-btn {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.webpay-btn-primary {
    background-color: #0056b3;
    color: #ffffff;
}

.webpay-btn-primary:hover {
    background-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.3);
}

.webpay-btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Loader Spinner */
.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: spinner 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Messages */
.webpay-messages {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .webpay-eventos-container {
        padding: 10px;
    }

    .webpay-eventos-form-wrapper {
        padding: 20px;
    }

    .webpay-eventos-title {
        font-size: 22px;
    }

    .webpay-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .webpay-total-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .webpay-total-amount {
        font-size: 24px;
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }

    .webpay-pricing-item {
        flex-direction: column;
        gap: 5px;
    }
}

/* Print Styles */
@media print {
    .webpay-btn {
        display: none;
    }
    
    .webpay-eventos-alert {
        display: none;
    }
}
