/* Main container */
#msdf-donation-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    margin-bottom: 40px;
}

/* Screen transitions */
.msdf-screen {
    display: none;
}

.msdf-screen.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Introduction text */
.msdf-intro-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #f37127;
    text-align: center;
    font-weight: 600;
}

/* Amount Selection Section */
.msdf-amount-section {
    background: #ffffff;
    border: 2px solid #f37127;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(243, 113, 39, 0.1);
}

.msdf-amount-section h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    text-align: center;
    font-weight: 600;
    color: #f37127;
}

/* Donation Options */
.msdf-donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.msdf-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid #e6e6e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #ffffff;
    text-align: center;
}

.msdf-option:hover {
    border-color: #f37127;
    background: #fff7f0;
}

.msdf-option.selected {
    border-color: #f37127;
    background: #fff7f0;
    box-shadow: 0 2px 8px rgba(243, 113, 39, 0.2);
}

.msdf-option input[type="radio"] {
    margin: 0 15px 0 0;
    width: auto !important;
    height: auto !important;
    flex-shrink: 0;
    transform: scale(1.3);
    cursor: pointer;
    accent-color: #f37127;
}

.msdf-option label {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    color: #333;
}

/* Custom amount container */
#msdf-custom-amount-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#msdf-custom-amount-container input {
    background: #ffffff;
    border: 1px solid #ccc;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.msdf-min-note {
    font-size: 13px;
    color: #f37127;
    margin-top: 8px;
    margin-bottom: 0;
    font-style: italic;
    font-weight: 500;
}

/* Form Section */
.msdf-form-section {
    background: #ffffff;
    border: 2px solid #1d334b;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(29, 51, 75, 0.1);
}

.msdf-form-section h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    text-align: center;
    font-weight: 600;
    color: #1d334b;
}

/* Mandatory field note */
.msdf-mandatory-note {
    text-align: center;
    font-size: 14px;
    color: #d32f2f;
    margin-bottom: 25px;
    font-weight: 500;
}

/* PAN field note */
.msdf-pan-note {
    font-size: 12px;
    color: #f37127;
    margin-top: 5px;
    margin-bottom: 0;
    font-style: italic;
    font-weight: 500;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    margin: 0 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333;
}

input::placeholder,
textarea::placeholder {
    color: #666;
}

input:focus, 
textarea:focus, 
select:focus {
    border-color: #1d334b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 51, 75, 0.1);
}

input.error, 
textarea.error {
    border-color: #d32f2f;
    background-color: #fff6f6;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Form layout */
.msdf-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.msdf-form-group {
    flex: 1 0 calc(50% - 8px);
    min-width: 250px;
}

.msdf-form-group.full-width {
    flex: 1 0 100%;
}

/* Consent Section */
.msdf-consent-section {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
}

.msdf-consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.msdf-consent-label input[type="checkbox"] {
    margin: 4px 12px 0 0;
    flex-shrink: 0;
    width: auto !important;
    height: auto !important;
    transform: scale(1.2);
    accent-color: #1d334b;
}

.msdf-consent-text {
    flex: 1;
}

/* Buttons */
.msdf-button,
button#msdf-donate-now {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    background: #f37127;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(243, 113, 39, 0.3);
}

.msdf-button:hover,
button#msdf-donate-now:hover:not(:disabled) {
    background: #e6651f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 113, 39, 0.4);
}

.msdf-button:active,
button#msdf-donate-now:active:not(:disabled) {
    transform: translateY(0);
}

.msdf-button:disabled,
button#msdf-donate-now:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Thank you screen */
.msdf-thank-you {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border: 2px solid #28a745;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.msdf-thank-you h2 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 28px;
}

.msdf-receipt-info {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e6e6e6;
}

/* Responsive styles */
@media (max-width: 768px) {
    .msdf-donation-options {
        grid-template-columns: 1fr;
    }
    
    .msdf-form-group {
        flex: 1 0 100%;
    }
    
    #msdf-donation-form {
        padding: 15px;
    }
    
    .msdf-amount-section,
    .msdf-form-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .msdf-amount-section h3,
    .msdf-form-section h3 {
        font-size: 18px;
    }
    
    .msdf-intro-text {
        font-size: 14px;
    }
    
    .msdf-option {
        padding: 15px;
    }
    
    .msdf-option label {
        font-size: 16px;
    }
    
    .msdf-consent-label {
        font-size: 13px;
    }
}