/**
 * headacheMD for all - Donate Section Styles
 * Version: 1.5.0 - Fixed floating admin login modal as proper overlay popup
 */

/* ========================================
   DONATE SECTION - Main Container
   ======================================== */

.donate-section {
    background: linear-gradient(135deg, #f8fdf0 0%, #f0f7e6 100%);
    padding: 80px 0;
    position: relative;
}

.donate-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
}

.donate-content {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(165, 196, 34, 0.2);
}

/* ========================================
   DONATION TYPE TOGGLE
   ======================================== */

.donation-type-toggle {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.donation-type-btn {
    padding: 15px 30px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--dark-color);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.donation-type-btn:hover {
    background: rgba(165, 196, 34, 0.1);
}

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

.donation-type-btn i {
    font-size: 18px;
}

/* ========================================
   DONATION NOTICE
   ======================================== */

.donation-notice {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border: 1px solid #e6d499;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 30px;
    text-align: center;
}

.donation-notice p {
    margin: 0;
    color: #8b6914;
    font-size: 15px;
}

/* ========================================
   DONATION DESTINATION TOGGLE
   ======================================== */

.donation-destination-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e8f0d8;
}

.destination-heading {
    text-align: center;
    color: var(--dark-color);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.donation-destination-toggle {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.destination-option {
    flex: 1;
    min-width: 240px;
    max-width: 300px;
    padding: 20px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.destination-option:hover {
    border-color: var(--primary-color);
    background: rgba(165, 196, 34, 0.03);
}

.destination-option.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f8fdf0 0%, #f0f7e6 100%);
    box-shadow: 0 4px 15px rgba(165, 196, 34, 0.2);
}

.destination-option input[type="radio"] {
    display: none;
}

.destination-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.destination-option.active .destination-icon {
    transform: scale(1.1);
}

.destination-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.destination-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.destination-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.4;
}

/* ========================================
   ENDOWMENT INFO TOOLTIP
   ======================================== */

.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.info-tooltip i {
    font-size: 16px;
    color: #0c5aa5;
    transition: color 0.2s ease;
}

.info-tooltip:hover i {
    color: #094580;
}

.tooltip-content {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    padding: 18px;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: var(--white);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    white-space: normal;
    text-align: left;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #2c5282;
}

.info-tooltip:hover .tooltip-content,
.info-tooltip:focus .tooltip-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tooltip-content strong {
    display: block;
    font-size: 15px;
    margin-bottom: 10px;
    color: #90cdf4;
}

.tooltip-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

/* ========================================
   PATIENT ID INPUT SECTION
   ======================================== */

.patient-id-section {
    margin-top: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.patient-id-input-wrapper {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border: 2px solid #e6d499;
    border-radius: 12px;
    padding: 25px;
}

.patient-id-input-wrapper label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #8b6914;
    margin-bottom: 12px;
}

.patient-id-input-wrapper label i {
    font-size: 18px;
}

.patient-id-input {
    width: 100%;
    max-width: 200px;
    padding: 15px 20px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 8px;
    border: 3px solid #e6d499;
    border-radius: 10px;
    background: var(--white);
    color: var(--dark-color);
    outline: none;
    transition: all 0.3s ease;
}

.patient-id-input::placeholder {
    color: #ccc;
    letter-spacing: 8px;
}

.patient-id-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(165, 196, 34, 0.15);
}

.patient-id-input:valid:not(:placeholder-shown) {
    border-color: #27ae60;
}

.patient-id-help {
    margin: 12px 0 0;
    font-size: 13px;
    color: #8b6914;
    line-height: 1.5;
}

.patient-id-status {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.patient-id-status.loading {
    background: #e8f4fd;
    color: #0c5aa5;
    border: 1px solid #b3d7f5;
}

.patient-id-status.valid {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.patient-id-status.invalid {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.patient-id-status i {
    font-size: 16px;
}

/* ========================================
   DONATION MESSAGES
   ======================================== */

.donation-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.donation-message.info {
    background: #e8f4fd;
    border: 1px solid #b3d7f5;
    color: #0c5aa5;
}

.donation-message.success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.donation-message.error {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
}

/* ========================================
   ACH SECTION
   ======================================== */

.donation-section-content {
    padding: 20px 0;
}

.ach-intro, .wire-intro {
    text-align: center;
    margin-bottom: 30px;
}

.ach-intro h3, .wire-intro h3 {
    color: var(--dark-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.ach-intro p, .wire-intro p {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   DONATION STEPS
   ======================================== */

.donation-step {
    background: #fafcf5;
    border: 1px solid #e8f0d8;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.step-header h4 {
    margin: 0;
    color: var(--dark-color);
    font-size: 18px;
}

/* ========================================
   CONNECT BANK BUTTON
   ======================================== */

.connect-bank-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.connect-bank-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(165, 196, 34, 0.4);
}

.connect-bank-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.connect-bank-btn i {
    font-size: 20px;
}

.security-note {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 15px;
}

.security-note i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* ========================================
   ACCOUNT LIST
   ======================================== */

.account-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-option:hover {
    border-color: var(--primary-color);
}

.account-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.account-option input[type="radio"]:checked + .account-info {
    color: var(--dark-color);
}

.account-info {
    display: flex;
    flex-direction: column;
}

.account-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
}

.account-details {
    font-size: 14px;
    color: var(--text-light);
    text-transform: capitalize;
}

/* ========================================
   PRESET AMOUNTS
   ======================================== */

.preset-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.preset-amount {
    padding: 15px;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-amount:hover {
    border-color: var(--primary-color);
    background: rgba(165, 196, 34, 0.05);
}

.preset-amount.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

/* ========================================
   CUSTOM AMOUNT
   ======================================== */

.custom-amount-row {
    margin-bottom: 25px;
}

.custom-amount-row label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.custom-amount-input {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 15px;
    font-size: 20px;
    color: var(--text-light);
    font-weight: 600;
}

.custom-amount-input input {
    width: 100%;
    padding: 15px 15px 15px 35px;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease;
}

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

/* ========================================
   DONOR INFO
   ======================================== */

.donor-info {
    margin-bottom: 25px;
}

.donor-info h5 {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 16px;
}

.donor-info .optional {
    font-weight: 400;
    color: var(--text-light);
    font-size: 14px;
}

.donor-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.donor-fields input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.donor-fields input:focus {
    border-color: var(--primary-color);
}

/* ========================================
   SUBMIT BUTTON
   ======================================== */

.submit-donation-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.submit-donation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.submit-donation-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tax-deductible-note {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 15px;
}

.tax-deductible-note i {
    margin-right: 5px;
}

/* ========================================
   WIRE TRANSFER SECTION
   ======================================== */

.wire-instructions {
    background: #fafcf5;
    border: 1px solid #e8f0d8;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.wire-details h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
    text-align: center;
}

.wire-table {
    width: 100%;
    border-collapse: collapse;
}

.wire-table tr {
    border-bottom: 1px solid #e8f0d8;
}

.wire-table tr:last-child {
    border-bottom: none;
}

.wire-table th,
.wire-table td {
    padding: 12px 10px;
    text-align: left;
}

.wire-table th {
    color: var(--text-light);
    font-weight: 500;
    width: 40%;
}

.wire-table td {
    color: var(--text-dark);
    font-weight: 500;
}

.wire-table code {
    background: #e8f0d8;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.wire-note {
    background: #fff9e6;
    border: 1px solid #e6d499;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.wire-note p {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.wire-note p:last-child {
    margin-bottom: 0;
}

.wire-benefits {
    margin-bottom: 25px;
}

.wire-benefits h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.wire-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wire-benefits li {
    padding: 8px 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wire-benefits li i {
    color: var(--primary-color);
}

.wire-contact {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.wire-contact p {
    margin: 5px 0;
}

.wire-contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.wire-contact a:hover {
    text-decoration: underline;
}

/* ========================================
   DONATION IMPACT
   ======================================== */

.donation-impact {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e8f0d8;
    text-align: center;
}

.donation-impact h4 {
    color: var(--dark-color);
    font-size: 22px;
    margin-bottom: 25px;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.impact-item {
    background: linear-gradient(135deg, #f8fdf0 0%, #f0f7e6 100%);
    border: 1px solid #e8f0d8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.impact-amount {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.impact-desc {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.4;
}

.impact-subnote {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}

.impact-subnote strong {
    font-style: normal;
    color: var(--text-dark);
}

/* ========================================
   SUCCESS MESSAGE
   ======================================== */

.donation-success-message {
    text-align: center;
    padding: 40px 20px;
}

.donation-success-message .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    margin: 0 auto 25px;
}

.donation-success-message h3 {
    color: var(--dark-color);
    font-size: 28px;
    margin-bottom: 15px;
}

.donation-success-message .amount-confirmed {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.donation-success-message .confirmation-id {
    margin-bottom: 25px;
}

.donation-success-message .confirmation-id code {
    background: #e8f0d8;
    padding: 8px 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.donation-success-message .next-steps {
    background: #fafcf5;
    border: 1px solid #e8f0d8;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.donation-success-message .next-steps h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.donation-success-message .next-steps ul {
    margin: 0;
    padding-left: 20px;
}

.donation-success-message .next-steps li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.donation-success-message .tax-info {
    background: #fff9e6;
    border: 1px solid #e6d499;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    color: #8b6914;
}

.donation-success-message .contact-info {
    margin-top: 20px;
    color: var(--text-light);
}

.donation-success-message .contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Donation Destination Confirmation in Success */
.donation-destination-confirmation {
    border-radius: 10px;
    padding: 18px 20px;
    margin: 20px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.donation-destination-confirmation.endowment-donation {
    background: linear-gradient(135deg, #e8f4fd 0%, #d0e8f7 100%);
    border: 1px solid #b3d7f5;
}

.donation-destination-confirmation.endowment-donation i {
    color: #0c5aa5;
    font-size: 28px;
}

.donation-destination-confirmation.endowment-donation strong {
    color: #0c5aa5;
}

.donation-destination-confirmation.endowment-donation p {
    color: #0c5aa5;
    margin: 0;
    font-size: 14px;
}

.donation-destination-confirmation.patient-donation {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 1px solid #a5d6a7;
}

.donation-destination-confirmation.patient-donation i {
    color: #2e7d32;
    font-size: 28px;
}

.donation-destination-confirmation.patient-donation strong {
    color: #2e7d32;
}

.donation-destination-confirmation.patient-donation p {
    color: #2e7d32;
    margin: 0;
    font-size: 14px;
}

/* Patient Fundraising Progress */
.patient-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.fundraising-progress {
    margin-top: 8px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 13px;
    color: var(--text-dark);
    display: block;
    margin-top: 5px;
}

.remaining {
    font-size: 12px;
    color: var(--text-light);
    font-style: italic;
}

.patient-id-status.info {
    background: #f5f5f5;
    color: var(--text-light);
    border: 1px solid #e0e0e0;
}

/* ========================================
   LOADING STATE
   ======================================== */

.loading-text {
    text-align: center;
    color: var(--text-light);
    padding: 30px;
}

.loading-text i {
    margin-right: 10px;
}

.error-text {
    text-align: center;
    color: #c62828;
    padding: 20px;
}

.error-text a {
    color: var(--primary-color);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet and below (992px and under) */
@media (max-width: 992px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .donation-destination-toggle {
        flex-direction: column;
        align-items: center;
    }

    .destination-option {
        max-width: 100%;
        width: 100%;
    }

    .tooltip-content {
        width: 280px;
        left: auto;
        right: 0;
        transform: translateX(0);
    }

    .tooltip-content::after {
        left: auto;
        right: 20px;
        transform: none;
    }
}

/* Large Mobile / Small Tablet (768px and under) */
@media (max-width: 768px) {
    .donate-content {
        padding: 25px 20px;
    }

    .donation-type-toggle {
        flex-direction: column;
        gap: 12px;
    }

    /* Consistent donation type buttons */
    .donation-type-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 25px;
        font-size: 15px;
        border-radius: 50px;
    }

    .preset-amounts {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Consistent preset amount buttons */
    .preset-amount {
        padding: 14px 10px;
        font-size: 16px;
        border-radius: 10px;
    }

    .donor-fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Consistent connect bank button */
    .connect-bank-btn {
        padding: 16px 25px;
        font-size: 16px;
        border-radius: 10px;
    }

    /* Consistent submit donation button */
    .submit-donation-btn {
        padding: 16px 25px;
        font-size: 18px;
        border-radius: 10px;
    }

    .wire-table th,
    .wire-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }

    .wire-table th {
        font-size: 12px;
        padding-bottom: 0;
    }

    .wire-table tr {
        padding: 10px 0;
        display: block;
    }

    .ach-intro h3, 
    .wire-intro h3 {
        font-size: 20px;
    }

    .ach-intro p, 
    .wire-intro p {
        font-size: 15px;
    }

    .donation-impact h4 {
        font-size: 20px;
    }
}

/* Large Mobile (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .donate-section {
        padding: 70px 0;
    }

    /* Maintain button consistency on large mobile */
    .donation-type-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .preset-amount {
        padding: 14px;
        font-size: 17px;
    }

    .connect-bank-btn {
        padding: 16px 22px;
        font-size: 16px;
    }

    .submit-donation-btn {
        padding: 16px 22px;
        font-size: 18px;
    }

    .custom-amount-input input {
        font-size: 22px;
        padding: 14px 14px 14px 35px;
    }

    .donor-fields input {
        padding: 14px 15px;
        font-size: 16px;
    }
}

/* Small Mobile (480px and under) */
@media (max-width: 480px) {
    .donate-section {
        padding: 60px 0;
    }

    .donate-content {
        padding: 20px 15px;
    }

    .donation-destination-section {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .destination-heading {
        font-size: 16px;
    }

    .destination-option {
        padding: 15px;
        gap: 12px;
        min-width: auto;
    }

    .destination-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 16px;
    }

    .destination-title {
        font-size: 13px;
        white-space: nowrap;
    }

    .destination-desc {
        font-size: 12px;
    }

    .tooltip-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100vw - 40px);
        max-width: 320px;
        bottom: auto;
    }

    .tooltip-content::after {
        display: none;
    }

    .patient-id-input-wrapper {
        padding: 20px 15px;
    }

    .patient-id-input-wrapper label {
        font-size: 14px;
    }

    .patient-id-input {
        font-size: 24px;
        padding: 12px 15px;
        letter-spacing: 6px;
    }

    .patient-id-help {
        font-size: 12px;
    }

    .donation-type-toggle {
        gap: 10px;
    }

    /* Consistent donation type buttons on small mobile */
    .donation-type-btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 50px;
    }

    .donation-type-btn i {
        font-size: 16px;
    }

    .preset-amounts {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    /* Consistent preset amount buttons on small mobile */
    .preset-amount {
        padding: 12px 8px;
        font-size: 16px;
        border-radius: 8px;
    }

    .custom-amount-input input {
        font-size: 20px;
        padding: 12px 12px 12px 32px;
    }

    .currency-symbol {
        font-size: 18px;
        left: 12px;
    }

    .impact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .impact-item {
        padding: 15px;
    }

    .impact-amount {
        font-size: 20px;
    }

    .impact-desc {
        font-size: 13px;
    }

    .step-header h4 {
        font-size: 16px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .donation-step {
        padding: 20px 15px;
    }

    /* Consistent connect bank button on small mobile */
    .connect-bank-btn {
        font-size: 15px;
        padding: 14px 18px;
        border-radius: 10px;
    }

    .connect-bank-btn i {
        font-size: 18px;
    }

    /* Consistent submit donation button on small mobile */
    .submit-donation-btn {
        font-size: 16px;
        padding: 14px 18px;
        border-radius: 10px;
    }

    .submit-donation-btn i {
        font-size: 16px;
    }

    .security-note {
        font-size: 12px;
    }

    .tax-deductible-note {
        font-size: 12px;
    }

    .ach-intro h3, 
    .wire-intro h3 {
        font-size: 18px;
    }

    .ach-intro p, 
    .wire-intro p {
        font-size: 14px;
    }

    .donor-info h5 {
        font-size: 15px;
    }

    .donor-info .optional {
        font-size: 13px;
    }

    .donor-fields input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .donation-impact {
        margin-top: 30px;
        padding-top: 25px;
    }

    .donation-impact h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .wire-benefits h4 {
        font-size: 16px;
    }

    .wire-benefits li {
        font-size: 14px;
    }

    .wire-contact p {
        font-size: 14px;
    }

    /* Success message responsive */
    .donation-success-message {
        padding: 30px 15px;
    }

    .donation-success-message .success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .donation-success-message h3 {
        font-size: 22px;
    }

    .donation-success-message .amount-confirmed {
        font-size: 17px;
    }

    .donation-success-message .next-steps {
        padding: 15px;
    }

    .donation-success-message .next-steps h4 {
        font-size: 16px;
    }

    .donation-success-message .next-steps li {
        font-size: 14px;
    }

    .donation-success-message .tax-info {
        font-size: 13px;
        padding: 12px;
    }
}

/* Extra Small Mobile (360px and under) */
@media (max-width: 360px) {
    .donate-content {
        padding: 18px 12px;
    }

    .destination-title {
        font-size: 12px;
    }

    .destination-desc {
        font-size: 11px;
    }

    .info-tooltip i {
        font-size: 14px;
    }

    .donation-type-btn {
        padding: 11px 16px;
        font-size: 13px;
    }

    .preset-amount {
        padding: 10px 6px;
        font-size: 15px;
    }

    .connect-bank-btn {
        font-size: 14px;
        padding: 13px 15px;
    }

    .submit-donation-btn {
        font-size: 15px;
        padding: 13px 15px;
    }

    .custom-amount-input input {
        font-size: 18px;
    }

    .donation-notice p {
        font-size: 13px;
    }
}

/* ========================================
   CONTRIBUTOR RECOGNITION SECTION
   ======================================== */

.contributor-recognition {
    background: linear-gradient(135deg, #f8fdf0 0%, #f0f7e6 100%);
    border: 2px solid #e8f0d8;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.recognition-checkbox {
    margin-bottom: 15px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 24px;
    width: 24px;
    min-width: 24px;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-container:hover .checkmark {
    background-color: rgba(165, 196, 34, 0.1);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--primary-color);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark::after {
    content: '✓';
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
}

.checkbox-label {
    padding-top: 2px;
}

/* Contributor Options (when checkbox is checked) */
.contributor-options {
    padding-top: 20px;
    border-top: 1px solid #e8f0d8;
    margin-top: 15px;
}

.contributor-options h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.contributor-type-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Radio button styling */
.radio-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-dark);
}

.radio-container input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-mark {
    height: 22px;
    width: 22px;
    min-width: 22px;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.radio-container:hover .radio-mark {
    background-color: rgba(165, 196, 34, 0.1);
}

.radio-container input[type="radio"]:checked ~ .radio-mark::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* Company Details Section */
.company-details {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.company-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
    margin-bottom: 15px;
}

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

/* Logo Upload Section */
.logo-upload-section {
    margin-bottom: 15px;
}

.logo-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border: 2px dashed var(--primary-color);
    border-radius: 10px;
    background: #fafcf5;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.logo-upload-label:hover {
    background: rgba(165, 196, 34, 0.1);
    border-style: solid;
}

.logo-upload-label i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.logo-upload-label span {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
}

.logo-requirements {
    font-size: 12px !important;
    color: var(--text-light) !important;
    font-weight: 400 !important;
    margin-top: 5px;
}

.logo-input {
    display: none;
}

/* Logo Preview */
.logo-preview {
    position: relative;
    display: inline-block;
    margin-top: 15px;
    padding: 15px;
    background: var(--white);
    border: 2px solid #e8f0d8;
    border-radius: 10px;
}

.logo-preview img {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
}

.remove-logo-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: #e74c3c;
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s ease;
}

.remove-logo-btn:hover {
    background: #c0392b;
}

.logo-note {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 10px;
}

.logo-note i {
    color: var(--primary-color);
    margin-right: 5px;
}

.contributor-privacy-note {
    font-size: 13px;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.03);
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.contributor-privacy-note i {
    color: var(--primary-color);
    margin-right: 5px;
}

.contributor-privacy-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.contributor-privacy-note a:hover {
    text-decoration: underline;
}

/* Contributor Confirmation in Success Message */
.contributor-confirmation {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border: 1px solid #e6d499;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
}

.contributor-confirmation i {
    color: #f39c12;
    font-size: 20px;
    margin-right: 10px;
}

.contributor-confirmation strong {
    color: #8b6914;
}

.contributor-confirmation p {
    margin: 10px 0 0;
    font-size: 14px;
    color: #8b6914;
}

/* ========================================
   CONTRIBUTORS GRID (Display Section)
   ======================================== */

.contributors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    margin: 20px 0;
}

.contributor-item {
    background: var(--white);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contributor-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.contributor-item.contributor-logo img {
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
}

.contributor-item.contributor-name {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    min-height: auto;
}

.contributors-cta {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contributors-cta a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.contributors-cta a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ========================================
   CONTRIBUTOR RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .contributor-type-options {
        flex-direction: column;
        gap: 12px;
    }

    .contributor-item.contributor-logo img {
        max-width: 120px;
        max-height: 50px;
    }

    .contributors-grid {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contributor-recognition {
        padding: 20px 15px;
    }

    .logo-upload-label {
        padding: 20px 15px;
    }

    .logo-upload-label i {
        font-size: 24px;
    }

    .logo-preview img {
        max-width: 150px;
    }
}

/* ========================================
   FLOATING ADMIN LOGIN BUTTON & MODAL
   Version: 1.0.0
   ======================================== */

/* Floating Button - Bottom Right */
.admin-button-container {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
}

.admin-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    min-height: 44px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.admin-btn:hover {
    background: linear-gradient(135deg, #1a252f 0%, #0d1318 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.admin-btn i {
    font-size: 16px !important;
}

/* Admin Login Modal - Full Screen Overlay */
.admin-login-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.admin-login-modal.active {
    display: flex !important;
}

/* Dark backdrop behind modal */
.admin-login-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 1 !important;
}

/* Modal Content Box - Centered */
.admin-login-content {
    position: relative !important;
    z-index: 2 !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 20px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5) !important;
    animation: adminModalSlideIn 0.3s ease !important;
    overflow: hidden !important;
}

@keyframes adminModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Header - Green branded */
.admin-login-header {
    padding: 30px 30px 25px !important;
    text-align: center !important;
    background: linear-gradient(135deg, #a5c422 0%, #8ba91c 100%) !important;
    position: relative !important;
}

.admin-login-header img {
    width: 180px !important;
    height: auto !important;
    margin-bottom: 15px !important;
}

.admin-login-header h3 {
    color: white !important;
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

/* Close Button */
.admin-login-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    transition: all 0.2s ease !important;
}

.admin-login-close:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: scale(1.1) !important;
}

/* Modal Body - Form area */
.admin-login-body {
    padding: 30px !important;
    background: #ffffff !important;
}

.admin-login-form .form-group {
    margin-bottom: 20px !important;
}

.admin-login-form label {
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.admin-login-form label i {
    margin-right: 8px !important;
    color: #a5c422 !important;
}

.admin-login-form input[type="email"],
.admin-login-form input[type="password"] {
    width: 100% !important;
    padding: 14px 16px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    background: #fafafa !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
    box-sizing: border-box !important;
}

.admin-login-form input[type="email"]:focus,
.admin-login-form input[type="password"]:focus {
    outline: none !important;
    border-color: #a5c422 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(165, 196, 34, 0.15) !important;
}

/* Error Message */
.admin-login-error {
    display: none !important;
    padding: 12px 16px !important;
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 8px !important;
    color: #dc2626 !important;
    font-size: 14px !important;
    margin-bottom: 20px !important;
    align-items: center !important;
    gap: 10px !important;
}

.admin-login-error.active {
    display: flex !important;
}

/* Submit Button */
.admin-login-submit {
    width: 100% !important;
    padding: 16px 24px !important;
    background: linear-gradient(135deg, #a5c422 0%, #8ba91c 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.admin-login-submit:hover {
    background: linear-gradient(135deg, #8ba91c 0%, #7a9618 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(165, 196, 34, 0.4) !important;
}

.admin-login-submit:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Modal Footer */
.admin-login-footer {
    padding: 18px 30px !important;
    text-align: center !important;
    border-top: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
}

.admin-login-footer p {
    margin: 0 !important;
    font-size: 12px !important;
    color: #6b7280 !important;
}

.admin-login-footer i {
    color: #a5c422 !important;
    margin-right: 5px !important;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .admin-button-container {
        bottom: 15px !important;
        right: 15px !important;
    }
    
    .admin-btn {
        padding: 10px 18px !important;
        font-size: 13px !important;
    }
    
    .admin-login-content {
        margin: 10px !important;
        max-width: calc(100vw - 20px) !important;
    }
    
    .admin-login-header,
    .admin-login-body,
    .admin-login-footer {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .admin-login-header img {
        width: 140px !important;
    }
}
