/* Main Container */
.rfa-registration-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.rfa-form-wrapper {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 40px;
}

.rfa-form-title {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

.rfa-form-subtitle {
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 40px;
    font-size: 16px;
}

/* Form Sections */
.rfa-form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid #ecf0f1;
}

.rfa-form-section h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* Form Layout */
.rfa-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.rfa-form-group {
    flex: 1;
    min-width: 250px;
}

.rfa-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.rfa-form-group input,
.rfa-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dfe6e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.rfa-form-group input:focus,
.rfa-form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Date Inputs */
.rfa-date-inputs {
    display: flex;
    gap: 10px;
}

.rfa-date-inputs input {
    flex: 1;
    text-align: center;
}

/* Age Groups Selection */
.rfa-age-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.rfa-age-option {
    position: relative;
}

.rfa-age-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.rfa-age-option label {
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #dfe6e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.rfa-age-option input[type="radio"]:checked + label {
    background: #e3f2fd;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.rfa-age-option input[type="radio"]:checked + label .rfa-age-range {
    color: #2980b9;
}

.rfa-age-range {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.rfa-age-price {
    display: block;
    font-size: 14px;
    color: #7f8c8d;
}

.rfa-base-price {
    display: block;
    color: #27ae60;
}

.rfa-gst-price {
    display: block;
    color: #e67e22;
}

.rfa-total-price {
    display: block;
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
    margin-top: 5px;
}

/* Selected Amount Display */
.rfa-selected-amount {
    background: #27ae60;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    animation: fadeIn 0.5s;
}

.rfa-selected-amount h4 {
    margin: 0;
    font-size: 24px;
}

#rfa-total-amount, #bc-total-amount {
    font-weight: bold;
}

/* Checkboxes */
.rfa-form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.rfa-form-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

/* Payment Button */
.rfa-form-actions {
    text-align: center;
    margin-top: 40px;
}

.rfa-payment-button {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    justify-content: center;
}

.rfa-payment-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(39, 174, 96, 0.3);
    background: linear-gradient(135deg, #229954, #27ae60);
}

.rfa-payment-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

.rfa-amount-display {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 16px;
}

/* Loading Indicator */
.rfa-loading {
    text-align: center;
    color: #3498db;
    font-weight: bold;
    margin-top: 20px;
}

.rfa-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Message Display */
.rfa-message {
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

.rfa-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rfa-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Error states */
input.rfa-error,
select.rfa-error {
    border-color: #e74c3c !important;
    background-color: #fff5f5 !important;
}

input.rfa-error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rfa-form-wrapper {
        padding: 20px;
    }
    
    .rfa-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .rfa-form-group {
        min-width: 100%;
    }
    
    .rfa-age-groups {
        grid-template-columns: 1fr;
    }
    
    .rfa-payment-button {
        min-width: 100%;
        padding: 15px 20px;
    }
    
    .rfa-date-inputs {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .rfa-form-title {
        font-size: 24px;
    }
    
    .rfa-form-section {
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}