/* ---------- Hero ---------- */
.donate-hero {
    text-align: center;
    padding: 150px 0 60px;
    background: var(--bg-main);
}

.donate-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 12px;
}

.donate-hero__title {
    font-family: 'Playfair Display', var(--font-head);
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 20px;
}

.donate-hero__sub {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.donate-hero__sub strong {
    color: var(--text-main);
    font-weight: 600;
}


/* ---------- Main Grid ---------- */
.donate-main {
    padding: 40px 0 120px;
    background: var(--bg-main);
}

.donate-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}


/* ========================
   LEFT: QR PAYMENT CARD
   ======================== */
.donate-qr-col {
    position: sticky;
    top: 100px;
}

.qr-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: clamp(28px, 3.5vw, 44px);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 8px 32px rgba(35, 87, 216, 0.06);
}

/* Badge */
.qr-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #15803d;
    background: rgba(21, 128, 61, 0.08);
    margin-bottom: 20px;
}

.qr-card__badge svg {
    flex-shrink: 0;
    color: #15803d;
}

/* Title */
.qr-card__title {
    font-family: 'Playfair Display', var(--font-head);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.qr-card__subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* QR Image */
.qr-card__image-wrap {
    background: #faf9f7;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
}

.qr-card__image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* UPI Copy Block */
.qr-card__upi-copy {
    margin-bottom: 16px;
}

.qr-card__upi-copy-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.qr-card__upi-copy-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid rgba(35, 87, 216, 0.12);
    border-radius: 14px;
    background: rgba(35, 87, 216, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qr-card__upi-copy-row:hover {
    border-color: rgba(35, 87, 216, 0.25);
    box-shadow: 0 2px 12px rgba(35, 87, 216, 0.06);
}

.qr-card__upi-copy-id {
    flex: 1;
    min-width: 0;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.01em;
    word-break: break-all;
    line-height: 1.4;
    user-select: all;
    -webkit-user-select: all;
}

.qr-card__copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.qr-card__copy-btn:hover {
    background: var(--primary-dark, #1d46ae);
    transform: translateY(-1px);
}

.qr-card__copy-btn:active {
    transform: scale(0.97);
}

.qr-card__copy-btn--copied {
    background: #15803d;
}

.qr-card__copy-btn--copied:hover {
    background: #15803d;
}

.qr-card__copy-icon,
.qr-card__check-icon {
    flex-shrink: 0;
}

/* Meta row */
.qr-card__meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}


/* ========================
   RIGHT: GATEWAY (GREYED)
   ======================== */
.donate-gateway-col {}

.gateway-card {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
}

/* The greyed overlay */
.gateway-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.gateway-card__overlay-content {
    text-align: center;
    padding: 32px;
    max-width: 320px;
}

.gateway-card__overlay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(35, 87, 216, 0.06);
    color: var(--primary);
    margin-bottom: 20px;
}

.gateway-card__overlay-content h3 {
    font-family: 'Playfair Display', var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

.gateway-card__overlay-content p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Inner form (shown beneath the overlay, muted) */
.gateway-card__inner {
    padding: clamp(28px, 3.5vw, 44px);
    filter: grayscale(0.6);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.gateway-card__desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}


/* ---------- Shared Form Styles ---------- */
.form-title {
    font-family: 'Playfair Display', var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.field--selector {
    margin-bottom: 10px;
}

/* Amount Pills */
.amount-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.pill {
    padding: 12px 24px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill:hover:not(:disabled) {
    border-color: #B08968;
    color: #B08968;
}

.pill--active {
    background: #B08968;
    border-color: #B08968;
    color: white;
}

.pill--gold {
    border-color: rgba(176, 137, 104, 0.3);
}

.pill-custom {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: white;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    transition: border-color 0.2s ease;
}

.pill-custom:focus-within {
    border-color: #B08968;
}

.pill-custom input {
    border: none;
    outline: none;
    width: 80px;
    padding: 12px 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    background: transparent;
}

.pill-custom input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

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

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

/* Form Fields */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.field input,
.field select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-main);
    background: white;
    transition: border-color 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.field input:focus,
.field select:focus {
    border-color: #B08968;
}

.field input::placeholder {
    color: #c0b8b0;
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #8f7a66 50%),
        linear-gradient(135deg, #8f7a66 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 3px),
        calc(100% - 14px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Donate Button */
.donate-btn {
    width: 100%;
    padding: 18px 32px;
    border: none;
    border-radius: 14px;
    background: #B08968;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.donate-btn:hover:not(:disabled) {
    background: #9a7556;
    transform: translateY(-2px);
}

.donate-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.donate-btn__icon {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.donate-btn:hover:not(:disabled) .donate-btn__icon {
    transform: translateX(4px);
}

.donate-secure {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 14px;
}


/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
    .donate-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 900px) {
    .donate-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .donate-qr-col {
        position: static;
    }

    .qr-card__image {
        max-width: 340px;
    }

    .donate-hero {
        padding: 130px 0 40px;
    }
}

@media (max-width: 480px) {
    .donate-hero {
        padding: 120px 0 32px;
    }

    .donate-main {
        padding: 24px 0 80px;
    }

    .qr-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .qr-card__image {
        max-width: 100%;
    }

    .qr-card__upi-copy-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .qr-card__upi-copy-id {
        font-size: 0.7rem;
    }

    .qr-card__copy-btn {
        align-self: flex-start;
    }

    .gateway-card__inner {
        padding: 24px 18px;
    }

    .amount-pills {
        gap: 8px;
    }

    .pill {
        padding: 10px 18px;
        font-size: 0.82rem;
    }

    .field-row {
        grid-template-columns: 1fr;
    }
}
