:root {
    --primary-color: #0070c0;
    --secondary-color: #00b0f0;
    --text-color: #4a4a4a;
    --heading-color: #1a1a1a;
    --footer-bg: #032e54;
    --bg-color: #f4f7fa;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100vh;
    position: relative;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,112,192,0.05) 0%, rgba(0,176,240,0.05) 100%);
    z-index: -1;
}

.donation-container {
    background-color: var(--card-bg);
    max-width: 800px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

/* Header */
.form-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

.logo {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
}

.form-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: white;
}

.form-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Form Layout */
.donation-form {
    padding: 40px;
}

.form-section {
    margin-bottom: 35px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--heading-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h2 i {
    color: var(--primary-color);
    background: rgba(0, 112, 192, 0.1);
    padding: 8px;
    border-radius: 8px;
    font-size: 1rem;
}

.form-section h2 span {
    color: var(--error-color);
    font-size: 1rem;
}

/* Payment Methods & Donation Types (Cards) */
.payment-methods, .donation-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.payment-card, .type-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.payment-card:hover, .type-card:hover {
    border-color: var(--secondary-color);
    background-color: rgba(0, 176, 240, 0.02);
}

.payment-card input, .type-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.payment-card.active, .type-card.active {
    border-color: var(--primary-color);
    background-color: rgba(0, 112, 192, 0.05);
    box-shadow: 0 4px 15px rgba(0, 112, 192, 0.1);
}

.payment-card i {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.payment-card.active i {
    color: var(--primary-color);
}

.payment-card span {
    font-weight: 500;
}

.type-content {
    display: flex;
    flex-direction: column;
}

.type-title {
    font-weight: 600;
    color: var(--heading-color);
}

.type-desc {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Form Inputs */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group.full-width {
    flex: 100%;
}

.form-row.triple .input-group {
    flex: 1;
    min-width: 150px;
}

label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--heading-color);
}

label span {
    color: var(--error-color);
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 112, 192, 0.1);
    background-color: white;
}

/* Options & Toggles */
.options-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.option-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.option-text strong {
    display: block;
    color: var(--heading-color);
}

.option-text p {
    font-size: 0.85rem;
    color: var(--text-color);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Checkbox Styling */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-wrapper input {
    display: none;
}

.checkbox-wrapper label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    font-weight: 400;
}

.tick_mark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
    background-color: white;
    flex-shrink: 0;
}

.checkbox-wrapper input:checked + label .tick_mark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-wrapper input:checked + label .tick_mark::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

.mt-3 {
    margin-top: 15px;
}

/* Terms */
.terms-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.terms-link:hover {
    text-decoration: underline;
}

.terms-content {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f8fafc;
    border-left: 3px solid var(--primary-color);
    font-size: 0.9rem;
    border-radius: 0 8px 8px 0;
}

.terms-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Mock Captcha */
.captcha-container {
    margin-top: 25px;
}

.captcha-box {
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    width: 300px;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.captcha-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    background: white;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.captcha-checkbox:hover {
    border-color: #8c8c8c;
}

.captcha-checkbox.verifying {
    border-color: transparent;
    background: transparent;
}

.captcha-checkbox.verified {
    border-color: transparent;
    background: transparent;
}

.spinner {
    display: none;
    width: 28px;
    height: 28px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.check-icon {
    display: none;
    color: var(--success-color);
    font-size: 24px;
}

.captcha-checkbox.verifying .spinner { display: block; }
.captcha-checkbox.verified .check-icon { display: block; }

.captcha-text {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: #444;
    flex-grow: 1;
    margin-left: 15px;
}

.captcha-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #999;
}

.captcha-logo i {
    font-size: 24px;
    color: #4g4g4g;
}

.captcha-logo small {
    font-size: 10px;
    margin-top: 2px;
}

/* Submit Section */
.submit-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.donation-total {
    display: flex;
    flex-direction: column;
}

.donation-total span {
    font-size: 0.9rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.donation-total h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 112, 192, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 112, 192, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Footer Note */
.form-footer-note {
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 30px 40px;
    font-size: 0.9rem;
}

.form-footer-note h4 {
    color: white;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-footer-note ul {
    margin: 10px 0 15px 20px;
}

.form-footer-note p {
    margin-bottom: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Donation Amount Selection */
.amount-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.amount-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: inherit;
}

.amount-btn:hover {
    border-color: var(--secondary-color);
    background-color: rgba(0, 176, 240, 0.02);
}

.amount-btn.active {
    border-color: var(--primary-color);
    background-color: rgba(0, 112, 192, 0.05);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 112, 192, 0.1);
}

.custom-amount-wrapper {
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

.amount-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.amount-input-container .currency-prefix {
    position: absolute;
    left: 15px;
    font-weight: 600;
    color: var(--heading-color);
    font-size: 1.1rem;
    pointer-events: none;
}

.amount-input-container input {
    padding-left: 35px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .donation-form, .form-header, .form-footer-note {
        padding: 25px 20px;
    }
    
    .submit-section {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .submit-btn {
        justify-content: center;
    }
}
