/* =========================================
   NEW DONATE PAGE STYLES
   ========================================= */

/* Keep donate page desktop navbar sizing aligned with index page */
@media (min-width: 1025px) {
    .site-header .header-container {
        padding: 0.5rem 2rem;
    }

    .site-header .site-logo {
        height: 60px;
        width: auto;
    }

    .site-header .navbar-banner {
        height: 78px;
        width: auto;
    }

    .site-header .main-nav>ul {
        gap: 2rem;
    }

    .site-header .main-nav a {
        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1.2;
    }
}

/* Mobile First Base */
.donate-hero {
    position: relative;
    height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/donate_bg/3.png') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: 0;
    overflow: hidden;
}

.hero-overlay {
    display: none;
}

.donate-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.donate-hero-content h1 {
    font-family: var(--font-cormorant);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
}

.separator {
    margin: 0 0.5rem;
}

/* Container */
.donate-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* Grid Layout */
.donate-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    /* approximate ratio */
    gap: 2rem;
}

@media (max-width: 900px) {
    .donate-grid {
        grid-template-columns: 1fr;
    }
}

/* Notice Box */
.notice-box {
    background: #fff8e1;
    /* Light yellow */
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 4px;
    color: #856404;
    font-size: 0.9rem;
}

.notice-icon {
    font-size: 1.2rem;
}

/* Donation Form Card */
.donation-form-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 2rem;
    border: 1px solid #eee;
}

.donation-amount-header {
    background: var(--primary-brand);
    /* Ocean Blue */
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-bottom: 2rem;
}

.currency-symbol {
    font-size: 1.5rem;
    font-weight: 600;
}

.amount-display-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    text-align: right;
    width: 150px;
    outline: none;
    font-weight: 700;
}

/* Remove Arrows from Number Input */
.amount-display-input::-webkit-outer-spin-button,
.amount-display-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Amount Selection Buttons */
.amount-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.amount-opt-btn {
    flex: 1;
    min-width: 80px;
    padding: 0.8rem;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.amount-opt-btn.active {
    background: var(--primary-brand);
    color: white;
}

.custom-opt-btn {
    flex: 1.5;
    /* Slightly wider */
}

/* Form Sections */
.form-section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 700;
}

.qr-payment-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .qr-payment-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .qr-card {
        margin: 0 auto;
    }
}

.qr-card {
    background: white;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 160px;
    height: 160px;
}

.qr-code-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.upi-input-container {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upi-label {
    font-weight: 700;
    color: #444;
    font-size: 0.95rem;
    margin-left: 2px;
}

.upi-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fcfcfc;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.upi-input:focus {
    border-color: var(--primary-brand);
    background: white;
    box-shadow: 0 0 0 4px rgba(40, 114, 161, 0.15);
}

/* Personal Info Inputs */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
}

.form-row.full-width {
    display: block;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fcfcfc;
    font-size: 0.95rem;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-brand);
    background: white;
}

.donate-submit-btn-new {
    width: 100%;
    padding: 1rem;
    background: #f4c150;
    /* Golden Yellow */
    border: none;
    border-radius: 30px;
    font-weight: 700;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    text-transform: uppercase;
    transition: transform 0.2s;
}

.donate-submit-btn-new:hover {
    transform: translateY(-2px);
    background: #eebb40;
}


/* SIDEBAR STYLES */

/* Fundraising Card */
.fundraising-card {
    background: #f4efeb;
    /* Beige/Off-white background from image */
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    text-align: center;
}

.card-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    height: 200px;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #333;
}

.fund-progress-container {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin-top: -30px;
    /* Overlap effect */
    position: relative;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.progress-bar-bg {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    margin-bottom: 1rem;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-brand);
    border-radius: 3px;
}

.progress-thumb {
    position: absolute;
    top: -25px;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-brand);
}

.fund-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
}

.fund-title {
    font-family: var(--font-primary);
    /* Using primary font as per image clean look */
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #333;
    line-height: 1.4;
}

.donation-details-btn {
    background: transparent;
    border: 2px solid #333;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.donation-details-btn:hover {
    background: #333;
    color: white;
}

/* Organizer Card */
.organizer-card {
    background: #f4efeb;
    padding: 2rem;
    border-radius: 16px;
}

.sidebar-title {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.organizer-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.organizer-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.organizer-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.organizer-info .location {
    font-size: 0.85rem;
    color: #888;
}

.organizer-address {
    font-size: 0.9rem;
    color: #555;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.website-link {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
    color: #999;
    font-weight: 600;
}

/* Subscribe Section */
.subscribe-section-new {
    background: url('assets/donate_bg/2.png') center/cover;
    /* Placeholder bg */
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.subscribe-section-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    /* Dark overlay matching site style */
    z-index: 1;
}

.subscribe-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.subscribe-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subscribe-left h3 {
    font-size: 1.5rem;
    margin: 0;
}

.subscribe-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 50px;
    flex: 1;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.subscribe-form input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    flex: 1;
    outline: none;
}

.subscribe-form button {
    background: #f4c150;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
}

/* QR Section Show/Hide */
.qr-section-wrapper {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
    max-height: 600px;
    opacity: 1;
    margin-top: 1.5rem;
}

.qr-section-wrapper.qr-hidden {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.qr-reveal-header {
    background: linear-gradient(135deg, #e8f4fd, #f0f7ff);
    border: 1px solid #c8e0f4;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qr-amount-display {
    font-size: 0.95rem;
    color: #555;
}

.qr-amount-display strong {
    color: var(--primary-brand);
    font-size: 1.1rem;
}

/* Placeholder styling for amount input when empty */
.amount-display-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    font-weight: 400;
}

/* ========= MOBILE RESPONSIVE ========= */
@media (max-width: 768px) {
    .donate-hero-content h1 {
        font-size: 2.5rem;
    }

    .donate-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .subscribe-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .subscribe-form {
        width: 100%;
        max-width: 100%;
    }

    .subscribe-section-new {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }

    .subscribe-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 1rem;
    }

    .subscribe-form input {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 30px;
        padding: 1rem;
        width: 100%;
    }

    .subscribe-form button {
        width: 100%;
    }

    .donate-hero {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .donate-hero-content h1 {
        font-size: 1.8rem;
    }

    .subscribe-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .donate-container {
        margin: 1rem auto;
    }
}