/**
 * headacheMD for all - Donate Section Styles
 * Version: 1.1.0
 */

/* ========================================
   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 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;
}

/* ========================================
   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;
}

/* ========================================
   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
   ======================================== */

@media (max-width: 992px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .donate-content {
        padding: 25px 20px;
    }

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

    .donation-type-btn {
        width: 100%;
        justify-content: center;
    }

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

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

    .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;
    }
}

@media (max-width: 480px) {
    .donate-section {
        padding: 60px 0;
    }

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

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

    .preset-amount {
        padding: 12px;
        font-size: 16px;
    }

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

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

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

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

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

/* ========================================
   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;
    }
}

