/**
 * Nandivan Donations Frontend Styles
 * Beautiful, modern, and responsive donation form styling
 */

/* Container */
.nandivan-donation-wrapper {
    max-width: 100%;
    margin: 40px auto;
    padding: 0 20px;
}

.nandivan-donation-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Form Title */
.donation-form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: center;
}

.donation-form-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Amount Buttons */
.amount-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.amount-btn {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #FF6B35;
    background: #fff;
    border: 2px solid #FF6B35;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    background: #FF6B35;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.amount-btn.active {
    background: #FF6B35;
    color: #fff;
}

/* Custom Amount */
.custom-amount-wrapper {
    position: relative;
    margin-top: 15px;
}

.custom-amount-wrapper input {
    width: 100%;
    padding: 15px 60px 15px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.custom-amount-wrapper input:focus {
    border-color: #FF6B35;
    outline: none;
}

.currency-symbol {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #666;
}

/* Form Controls */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #FF6B35;
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

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

@media (min-width: 768px) {
    .form-row.two-columns {
        grid-template-columns: 1fr 1fr;
    }
}

/* Info Box */
.info-box {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.info-box p {
    margin: 5px 0;
    font-size: 14px;
    color: #2e7d32;
}

/* Payment Methods Info */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.payment-method {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.payment-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.payment-method span:not(.payment-icon) {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.payment-method small {
    display: block;
    font-size: 11px;
    color: #666;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* Submit Button */
.donate-button {
    width: 100%;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.donate-button:active {
    transform: translateY(0);
}

.donate-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.button-icon {
    font-size: 20px;
}

.secure-info {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 15px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 50px;
    color: #fff;
    background: #4caf50;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.success-message h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 16px;
    color: #666;
    margin: 10px 0;
}

.receipt-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px;
    background: #ffebee;
    border-radius: 12px;
    margin-top: 20px;
}

.error-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 50px;
    color: #fff;
    background: #f44336;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.error-message h3 {
    font-size: 24px;
    color: #d32f2f;
    margin-bottom: 15px;
}

.error-message p {
    font-size: 16px;
    color: #666;
    margin: 10px 0;
}

.retry-button {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: #FF6B35;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

.retry-button:hover {
    background: #e55a2b;
}

/* Responsive */
@media (max-width: 768px) {
    .nandivan-donation-form-container {
        padding: 30px 20px;
    }
    
    .donation-form-title {
        font-size: 24px;
    }
    
    .donation-form-subtitle {
        font-size: 14px;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Standalone Donation Button */
.nandivan-donate-button {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.nandivan-donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: #fff;
}

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

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #FF6B35;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
