/* DONATE.CSS - Split Layout Donation Page */

:root {
    --green: #7f9b4d;
    --orange: #cc4e00;
    --dark: #2a2a2a;
    --text: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --border-light: #e0e0e0;
}

/* ===== DONATE HERO SECTION ===== */
.donate-hero {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 50px);
    margin-top: 50px;
    background: white;
}

@media (min-width: 769px) {
    .donate-hero {
        flex-direction: row;
        min-height: 100vh;
    }
}

/* ===== HERO IMAGE (LEFT SIDE) ===== */
.donate-hero-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    order: -1;
}

@media (min-width: 769px) {
    .donate-hero-image {
        width: 50%;
        height: auto;
        min-height: 100vh;
        order: 0;
    }
}

/* ===== FORM CONTENT (RIGHT SIDE) ===== */
.donate-hero-content {
    width: 100%;
    background: white;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 769px) {
    .donate-hero-content {
        width: 53%;
        padding: 3rem 2.5rem;
    }
}

@media (min-width: 1024px) {
    .donate-hero-content {
        padding: 3rem 3.5rem;
    }
}

.donate-content-inner {
    width: 100%;
    max-width: 520px;
    text-align: center;
}

.donation-form-section {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

/* ===== TITLE ===== */
.donate-title.page-title {
    font-size: clamp(2.4rem, 6vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* ===== DESCRIPTION ===== */
.donate-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 400;
}

.donate-description:last-of-type {
    margin-bottom: 2.5rem;
}

/* ===== DONATION TOGGLE ===== */
.donation-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    background: var(--bg-light);
    padding: 0.25rem;
    border-radius: 25px;
}

.toggle-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--green);
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover:not(.active) {
    color: var(--text);
}

/* ===== DONATION AMOUNTS ===== */
.donation-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 769px) {
    .donation-amounts {
        grid-template-columns: repeat(3, 1fr);
    }
}

.other-option {
    grid-column: 2 / 4;
}

.amount-option {
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.amount-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
    gap: 0.4rem;
}

.amount-impact {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.4rem;
    line-height: 1.3;
    font-weight: 400;
}

.amount-option input[type="radio"]:checked + .amount-label {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.amount-option input[type="radio"]:checked + .amount-label + .amount-impact {
    color: var(--green);
    font-weight: 500;
}

.amount-label:hover {
    border-color: var(--green);
}

/* ===== CUSTOM AMOUNT INPUT ===== */
.other-amount-text {
    display: block;
}

.other-option input[type="radio"]:checked + .amount-label .other-amount-text {
    display: none;
}

.currency-prefix {
    font-size: 1rem;
    font-weight: 700;
    display: none;
    color: var(--text-light);
}

.other-option input[type="radio"]:checked + .amount-label .currency-prefix {
    display: inline;
    color: white;
}

.custom-amount-input {
    width: 60px;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: var(--text);
    display: none;
}

.other-option input[type="radio"]:checked + .amount-label .custom-amount-input {
    display: inline;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem;
    border-radius: 4px;
}

.custom-amount-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.custom-amount-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
}

/* Hide number input spinners */
.custom-amount-input::-webkit-outer-spin-button,
.custom-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.custom-amount-input[type=number] {
    -moz-appearance: textfield;
}

/* ===== DONATE BUTTON ===== */
.donate-btn {
    width: 100%;
    padding: 1rem;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.donate-btn:hover {
    background: #6d8540;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(127, 155, 77, 0.3);
}

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

/* ===== FORM STEPS ===== */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== FORM GROUPS ===== */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text);
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--green);
}

/* ===== FORM NAVIGATION ===== */
.form-navigation {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-back-btn {
    flex: 1;
    padding: 1rem 1.2rem;
    background: var(--bg-light);
    color: var(--text);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-back-btn:hover {
    background: #e0e0e0;
}

.continue-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== INFO TEXTS ===== */
.donation-info {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.security-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
}

.security-text i {
    color: var(--green);
    font-size: 0.9rem;
}

/* ===== FORM SECTION ===== */
.donate-form {
    width: 100%;
}

/* ===== IMPACT DISPLAY ===== */
.impact-display {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
}

/* ===== MOBILE RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .donate-hero {
        margin-top: 50px;
    }

    .donate-hero-image {
        height: 200px;
    }

    .donate-hero-content {
        padding: 1.5rem 1rem;
    }

    .donate-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .donate-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .donation-toggle {
        margin-bottom: 1.5rem;
    }

    .toggle-btn {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
    }
}