/* Index Page Specific Styles */

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding-bottom: 32px;
    border-bottom: 1px solid #e6ebf1;
    margin-bottom: 32px;
}

/* Form */
.donation-form {
    /* No extra padding needed, main-card handles it */
}

.form-section {
    margin-bottom: 32px;
}

/* Amount Display */
.amount-display {
    text-align: center;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency {
    font-size: 40px;
    color: #525f7f;
    font-weight: 500;
    opacity: 0.7;
    margin-right: 4px;
}

#amount-value {
    font-size: 56px;
    font-weight: 600;
    color: #2c5f2d;
}

/* Slider */
.slider-container {
    margin-bottom: 20px;
}

.amount-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e6ebf1;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.amount-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2c5f2d;
    cursor: pointer;
    transition: all 0.15s ease;
}

.amount-slider::-webkit-slider-thumb:hover {
    background: #1e4620;
    transform: scale(1.1);
}

.amount-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2c5f2d;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
}

.amount-slider::-moz-range-thumb:hover {
    background: #1e4620;
    transform: scale(1.1);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    color: #8898aa;
}

/* Custom Amount Input */
.custom-amount {
    margin-top: 20px;
}

.custom-amount label {
    display: block;
    font-size: 14px;
    color: #525f7f;
    margin-bottom: 8px;
}

.custom-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e6ebf1;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.15s ease;
    color: #32325d;
}

.custom-input:focus {
    outline: none;
    border-color: #2c5f2d;
    box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

/* Frequency Options */
.frequency-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.frequency-option {
    position: relative;
}

.frequency-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.frequency-label {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    border: 1px solid #e6ebf1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: white;
}

.frequency-label:hover {
    border-color: #2c5f2d;
    background: #f8faf8;
}

.frequency-option input[type="radio"]:checked + .frequency-label {
    border-color: #2c5f2d;
    background: #f8faf8;
    box-shadow: 0 0 0 1px #2c5f2d;
}

.frequency-title {
    font-size: 15px;
    font-weight: 600;
    color: #32325d;
    margin-bottom: 4px;
}

.frequency-description {
    font-size: 14px;
    color: #525f7f;
}

/* Donation Summary */
.donation-summary {
    background: #f7fafc;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.summary-row:last-child {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 16px;
}

.summary-row span:first-child {
    color: #525f7f;
    font-size: 15px;
}

.summary-row span:last-child {
    color: #32325d;
    font-weight: 500;
    font-size: 15px;
}

/* Loading Spinner for Submit Button */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin-button 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin-button {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    #amount-value {
        font-size: 48px;
    }
    
    .currency {
        font-size: 32px;
    }
    
    .frequency-options {
        gap: 8px;
    }
    
    .frequency-label {
        padding: 12px 16px;
    }
}

