/* =========================================================
   SUPPORT NOW MODAL & COMPONENT STYLING (support.css)
   Clean, modern, responsive Thaagam-style popup & CTA
   Synchronized with Official Logo Colors (#0B508D & #F0B70C)
   ========================================================= */

/* --- Navbar & Mobile Action Buttons --- */
.nav-support-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #F0B70C, #d99b00) !important;
    color: #07223b !important;
    padding: 0.55rem 1.15rem !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(240, 183, 12, 0.38) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    border: none;
    text-decoration: none !important;
    white-space: nowrap;
}

.nav-support-btn::after {
    display: none !important;
}

.nav-support-btn:hover {
    background: linear-gradient(135deg, #f7ca38, #F0B70C) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 183, 12, 0.55) !important;
    color: #07223b !important;
}

.nav-support-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Mobile Header Direct Support Button */
.mobile-header-support-btn {
    display: none;
}

@media (max-width: 768px) {
    .nav-actions-mobile-group {
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    /* Keep top header clean & uncrowded on mobile screens */
    .mobile-header-support-btn {
        display: none !important;
    }

    /* Inside Hamburger Drawer full width */
    .nav-links .nav-support-btn-mobile {
        display: block !important;
        width: 100% !important;
        margin-top: 0.5rem;
        padding: 0.75rem 1.25rem !important;
        text-align: center;
    }
}

/* --- Mobile Hero Video Support Button (Floating at Lower Video) --- */
.hero-video-support-container {
    display: none;
}

@media (max-width: 768px) {
    .hero-video-support-container {
        display: flex;
        justify-content: center;
        position: absolute;
        bottom: 2.85rem;
        bottom: max(2.65rem, calc(2.2rem + env(safe-area-inset-bottom, 0px)));
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        width: auto;
        max-width: 210px;
        text-align: center;
        pointer-events: auto;
    }

    .hero-video-support-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: auto;
        min-width: 175px;
        background: rgba(240, 183, 12, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: #07223b;
        font-weight: 700;
        font-size: 0.98rem;
        white-space: nowrap;
        padding: 0.82rem 1.3rem;
        border-radius: 50px;
        border: 1px solid rgba(255, 255, 255, 0.45);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(240, 183, 12, 0.45);
        cursor: pointer;
        text-decoration: none;
        transition: transform 0.2s ease, background 0.2s ease;
        animation: pulseSubtle 2.5s infinite;
    }

    .hero-video-support-btn:active {
        transform: scale(0.97);
    }

    .hero-video-support-btn svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    @keyframes pulseSubtle {
        0%, 100% {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(240, 183, 12, 0.5);
        }
        50% {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 8px rgba(240, 183, 12, 0);
        }
    }
}

/* --- Support Modal Styles --- */
.support-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.support-modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.support-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
}

.support-modal-backdrop.active .support-modal {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.support-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.support-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.support-modal-title svg {
    color: #F0B70C;
    width: 22px;
    height: 22px;
}

.support-badge {
    background: #fef9c3;
    color: #854d0e;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.support-modal-close {
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.support-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.support-modal-body {
    padding: 1.4rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Step 1: Donor & Amount Selection */
.support-banner-card {
    background: linear-gradient(135deg, #073863 0%, #0B508D 100%) !important;
    color: #ffffff !important;
    border-radius: 14px;
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(7, 56, 99, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.support-banner-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.support-banner-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #F0B70C !important;
    font-weight: 800;
    display: block;
    margin-bottom: 0.35rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.support-banner-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.35;
    margin: 0 !important;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.support-banner-desc {
    font-size: 0.84rem !important;
    color: #f8fafc !important;
    opacity: 0.95;
    margin: 0.45rem 0 0 !important;
    line-height: 1.45;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Preset Amount Pills */
.amount-pills-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.6rem;
}

.amount-pills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    margin-bottom: 0.9rem;
}

.amount-pill-btn {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.6rem 0.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
}

.amount-pill-btn:hover {
    border-color: #0B508D;
    color: #0B508D;
    background: #f0f7ff;
}

.amount-pill-btn.active {
    background: #0B508D;
    border-color: #073863;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(11, 80, 141, 0.3);
}

/* Custom Amount Box */
.custom-amount-wrapper {
    position: relative;
    margin-bottom: 1.15rem;
}

.currency-symbol {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    font-weight: 700;
    color: #64748b;
}

.custom-amount-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.2rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.custom-amount-input:focus {
    border-color: #0B508D;
    box-shadow: 0 0 0 3px rgba(11, 80, 141, 0.18);
}

/* Form Fields */
.support-input-group {
    margin-bottom: 0.85rem;
}

.support-input-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.35rem;
}

.support-input-label span {
    color: #ef4444;
}

.support-form-input {
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #0f172a;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.support-form-input:focus {
    border-color: #0B508D;
    box-shadow: 0 0 0 3px rgba(11, 80, 141, 0.18);
}

.support-form-input::placeholder {
    color: #94a3b8;
}

/* Proceed Button */
.btn-proceed-support {
    width: 100%;
    background: linear-gradient(135deg, #0B508D, #073863);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.85rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(11, 80, 141, 0.35);
    transition: all 0.2s;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-proceed-support:hover {
    background: linear-gradient(135deg, #1669b3, #0B508D);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 80, 141, 0.45);
}

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

/* Step 2: QR & UPI Display */
.support-step-qr {
    display: none;
    text-align: center;
    animation: fadeIn 0.28s ease;
}

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

.qr-amount-summary {
    background: #f0f7ff;
    border: 1px dashed #93c5fd;
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
}

.qr-amount-summary .donor-greet {
    font-size: 0.85rem;
    color: #1e3a5f;
    margin: 0 0 0.2rem;
}

.qr-amount-summary .summary-val {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0B508D;
    margin: 0;
}

/* QR Code Card */
.qr-frame {
    display: inline-block;
    padding: 10px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.15rem;
}

.qr-frame img {
    display: block;
    width: 210px;
    height: 210px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
}

.qr-instruction {
    font-size: 0.85rem;
    color: #475569;
    margin: 0 0 1rem;
    line-height: 1.4;
}

/* UPI ID Box with 1-Tap Copy */
.upi-copy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.6rem 0.85rem;
    margin-bottom: 1.15rem;
}

.upi-id-text {
    font-family: monospace;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.5px;
}

.btn-copy-upi {
    background: #0B508D;
    color: #ffffff;
    border: none;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-copy-upi:hover {
    background: #1669b3;
}

.btn-copy-upi.copied {
    background: #16a34a;
}

/* WhatsApp Confirmation Button (Option B) */
.btn-whatsapp-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #25D366;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.4rem;
    box-sizing: border-box;
}

.btn-whatsapp-confirm:hover {
    background: #1eb956;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #ffffff !important;
}

.btn-whatsapp-confirm svg {
    flex-shrink: 0;
}

.whatsapp-hint {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0 0 1rem;
    line-height: 1.35;
}

/* Back button in Step 2 */
.btn-back-step {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-back-step:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Mobile Modal Full-width Bottom Sheet Polish */
@media (max-width: 600px) {
    .support-modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .support-modal {
        max-width: 100%;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        max-height: 88vh;
        transform: translateY(100%);
    }

    .support-modal-backdrop.active .support-modal {
        transform: translateY(0);
    }

    .qr-frame img {
        width: 190px;
        height: 190px;
    }
}
