:root {
    --primary: #f59e0b; /* Amber/Orange for hope */
    --primary-hover: #d97706;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --success: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, .logo span {
    font-family: 'Outfit', sans-serif;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* --- Visual Side (Left) --- */
.visual-side {
    position: relative;
    flex: 1.2;
    overflow: hidden;
}

.carousel {
    position: absolute;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 10s linear;
    transform: scale(1);
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(15, 23, 42, 0.4),
        rgba(15, 23, 42, 0.8)
    );
    z-index: 1;
}

.story-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    max-width: 800px;
}

.story-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.story-content p {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    gap: 1.5rem;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge i {
    color: var(--primary);
}

/* --- Form Side (Right) --- */
.form-side {
    flex: 0.8;
    background-color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 5;
}

.form-container {
    width: 100%;
    max-width: 440px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.logo i {
    font-size: 2rem;
    color: var(--primary);
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.form-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Donation Type Buttons */
.donation-type {
    display: flex;
    background: var(--dark-lighter);
    padding: 0.4rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.type-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.type-btn.active {
    background: var(--primary);
    color: var(--dark);
}

/* Amount Selector */
.amount-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.amount-btn {
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    border-color: var(--primary);
}

.amount-btn.active {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.custom-amount {
    grid-column: span 3;
    position: relative;
    display: flex;
    align-items: center;
}

.custom-amount .currency {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.custom-amount input {
    width: 100%;
    padding: 1rem 1rem 1rem 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--white);
    outline: none;
    transition: border-color 0.3s;
}

.custom-amount input:focus {
    border-color: var(--primary);
}

/* Form Styles */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    background: var(--dark-lighter);
    border: 1px solid transparent;
    padding: 1rem;
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.card-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.card-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.card-input-wrapper input {
    padding-left: 3rem;
    width: 100%;
}

.input-row {
    display: flex;
    gap: 1rem;
}

.input-row .input-group {
    flex: 1;
}

.submit-btn {
    margin-top: 1rem;
    background: var(--primary);
    color: var(--dark);
    padding: 1.25rem;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.2);
}

.footer-links {
    margin-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--dark-lighter);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    border: 1px solid var(--glass-border);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: var(--dark);
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.modal p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.close-btn {
    padding: 0.75rem 2rem;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    .visual-side {
        min-height: 400px;
    }
    .story-content h1 {
        font-size: 2.5rem;
    }
    .form-side {
        padding: 3rem 1rem;
    }
}
