/* ================================================================
   DR. AYESHA MEMORIAL CLINIC — Donation Form CSS
   File: donation-form.css
   Usage: Enqueue via WordPress functions.php OR paste into
          Elementor > Site Settings > Custom CSS
   All classes prefixed "damc-" to avoid theme conflicts
================================================================ */

/* ── Section Wrapper ── */
.damc-donate-section {
    padding: 90px 20px;
    background: linear-gradient(160deg, #0d4a2c 0%, #1a6b40 40%, #0d4a2c 100%);
    position: relative;
    overflow: hidden;
}
.damc-donate-section::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    top: -200px; right: -150px;
    pointer-events: none;
}
.damc-donate-section::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    bottom: -100px; left: -100px;
    pointer-events: none;
}
.damc-donate-inner {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto;
}

/* ── Header ── */
.damc-donate-header {
    text-align: center;
    margin-bottom: 50px;
}
.damc-don-badge {
    display: inline-block;
    background: rgba(255,235,59,0.15);
    border: 1px solid rgba(255,235,59,0.4);
    color: #ffeb3b;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.damc-donate-header h2 {
    font-size: 38px;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
}
.damc-donate-header p {
    color: rgba(255,255,255,0.75);
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Two-Column Layout ── */
.damc-donate-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 32px;
    align-items: start;
}

/* ── Left Panel: Bank Info ── */
.damc-bank-panel {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 32px 28px;
}
.damc-bank-panel h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.damc-bank-why {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-bottom: 24px;
    line-height: 1.6;
}
.damc-bank-item {
    margin-bottom: 20px;
}
.damc-bank-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,235,59,0.85);
    margin-bottom: 5px;
}
.damc-bank-value {
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
}
.damc-bank-value span {
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    font-size: 13px;
    display: block;
    margin-top: 2px;
    line-height: 1.5;
}
.damc-bank-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 18px 0;
}
.damc-security-badge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(61,153,112,0.2);
    border: 1px solid rgba(77,184,151,0.3);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 22px;
}
.damc-security-badge .damc-sec-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}
.damc-security-badge p {
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
}
.damc-security-badge strong {
    color: #4db897;
}

/* ── Right Panel: Donor Form ── */
.damc-donor-form-wrap {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.damc-donor-form-wrap h3 {
    color: #1a6b40;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}
.damc-donor-form-sub {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ── Amount Chips ── */
.damc-amount-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.damc-chip {
    padding: 8px 18px;
    border-radius: 50px;
    border: 2px solid #d1fae5;
    background: #f0fdf4;
    color: #1a6b40;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.damc-chip:hover,
.damc-chip.damc-selected {
    background: #3d9970;
    border-color: #3d9970;
    color: #fff;
}

/* ── Form Fields ── */
.damc-dform-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.damc-dfield {
    margin-bottom: 16px;
}
.damc-dfield label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.damc-dfield label .damc-req {
    color: #e8402a;
    margin-left: 2px;
}
.damc-dfield input,
.damc-dfield textarea,
.damc-dfield select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: #1f2937;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    appearance: auto;
    -webkit-appearance: auto;
}
.damc-dfield input:focus,
.damc-dfield textarea:focus,
.damc-dfield select:focus {
    outline: none;
    border-color: #3d9970;
    box-shadow: 0 0 0 3px rgba(61,153,112,0.12);
}
.damc-dfield textarea {
    resize: vertical;
    min-height: 80px;
}
.damc-field-note {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

/* ── Submit Button ── */
.damc-dform-submit {
    width: 100%;
    padding: 15px 32px;
    background: linear-gradient(135deg, #e8402a 0%, #c0271b 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.4px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(192,39,27,0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    font-family: inherit;
}
.damc-dform-submit:hover {
    background: linear-gradient(135deg, #ff5236, #d42e1e);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(192,39,27,0.5);
}
.damc-dform-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Privacy Note ── */
.damc-privacy-note {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

/* ── Success Box ── */
.damc-success-box {
    display: none;
    background: #f0fdf4;
    border: 2px solid #3d9970;
    border-radius: 14px;
    padding: 32px 28px;
    text-align: center;
}
.damc-success-box.damc-visible {
    display: block;
    animation: damcFadeUp 0.5s ease;
}
@keyframes damcFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.damc-success-icon {
    font-size: 52px;
    margin-bottom: 12px;
    display: block;
}
.damc-success-box h4 {
    color: #1a6b40;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.damc-success-box p {
    color: #374151;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 6px;
}
.damc-success-ref {
    display: inline-block;
    background: #dcfce7;
    color: #1a6b40;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
}

/* ── WooCommerce Override inside donate section ── */
.damc-woo-wrap {
    margin-top: 40px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.damc-woo-wrap h3 {
    color: #1a6b40;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}
.damc-woo-sub {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}
/* Clean up WooCommerce default styles inside our wrapper */
.damc-woo-wrap .woocommerce-page .woocommerce,
.damc-woo-wrap .woocommerce {
    max-width: 100%;
}
.damc-woo-wrap .woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.damc-woo-wrap .woocommerce ul.products li.product {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border: 1.5px solid #e5e7eb;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
    margin: 0;
    float: none;
    width: auto;
}
.damc-woo-wrap .woocommerce ul.products li.product:hover {
    border-color: #3d9970;
    transform: translateY(-4px);
}
.damc-woo-wrap .woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
    display: none; /* hide product images for donation tiers */
}
.damc-woo-wrap .woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #1a6b40;
    font-size: 16px;
    font-weight: 700;
    padding: 0 0 8px;
}
.damc-woo-wrap .woocommerce ul.products li.product .price {
    color: #3d9970;
    font-size: 22px;
    font-weight: 800;
}
.damc-woo-wrap .woocommerce ul.products li.product .button,
.damc-woo-wrap .woocommerce a.button,
.damc-woo-wrap .woocommerce button.button {
    background: linear-gradient(135deg, #e8402a, #c0271b) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 10px 22px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(192,39,27,0.35) !important;
    transition: all 0.3s !important;
}
.damc-woo-wrap .woocommerce ul.products li.product .button:hover,
.damc-woo-wrap .woocommerce a.button:hover,
.damc-woo-wrap .woocommerce button.button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(192,39,27,0.5) !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .damc-donate-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .damc-donate-header h2 {
        font-size: 28px;
    }
    .damc-donor-form-wrap {
        padding: 28px 20px;
    }
    .damc-dform-row {
        grid-template-columns: 1fr;
    }
    .damc-woo-wrap {
        padding: 24px 16px;
    }
}
@media (max-width: 480px) {
    .damc-donate-section {
        padding: 60px 16px;
    }
    .damc-bank-panel {
        padding: 24px 18px;
    }
}
