/* ==================================================
   Report Fundraiser Modal
   This CSS affects this modal only
================================================== */

#reportFundraiserModal {
    --report-green: #137653;
    --report-red: #e7354f;
    --report-dark: #1f2d27;
    --report-muted: #718078;
    padding-right: 0 !important;
}

/* Modal size */
#reportFundraiserModal .modal-dialog {
    width: calc(100% - 32px);
    max-width: 680px;
    margin: 24px auto;
}

/* Remove transparent background */
#reportFundraiserModal .modal-content {
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: #ffffff !important;
    border: 1px solid #e3ebe7 !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 70px rgba(18, 43, 33, 0.22) !important;
}

/* Header */
#reportFundraiserModal .modal-header {
    flex-shrink: 0;
    align-items: flex-start;
    padding: 22px 24px 18px;
    background: #f3fbf7 !important;
    border-bottom: 1px solid #e2eee8 !important;
}

#reportFundraiserModal .modal-title {
    margin: 0;
    color: var(--report-dark) !important;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700 !important;
}

#reportFundraiserModal .modal-header p {
    margin-top: 5px !important;
    color: var(--report-muted) !important;
    font-size: 13px !important;
}

/* Close button */
#reportFundraiserModal .btn-close {
    width: 32px;
    height: 32px;
    margin: -3px -4px 0 15px;
    padding: 0;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 50%;
    box-shadow: none !important;
    filter: none !important;
    opacity: 0.55;
}

#reportFundraiserModal .btn-close:hover {
    background-color: #e5f0eb !important;
    opacity: 0.9;
}

/* Form */
#reportFundraiserModal form {
    display: flex;
    min-height: 0;
    overflow: hidden;
    flex-direction: column;
    background: #ffffff !important;
}

#reportFundraiserModal .modal-body {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 24px 12px;
    background: #ffffff !important;
}

/* Labels */
#reportFundraiserModal .form-label {
    margin-bottom: 7px;
    color: #31433b !important;
    font-size: 14px;
    font-weight: 600 !important;
}

#reportFundraiserModal .text-danger {
    color: var(--report-red) !important;
}

/* Inputs */
#reportFundraiserModal .form-control,
#reportFundraiserModal .form-select {
    width: 100%;
    min-height: 45px;
    padding: 10px 12px;
    color: #263730 !important;
    font-size: 14px;
    background-color: #ffffff !important;
    border: 1px solid #d8e1dd !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#reportFundraiserModal textarea.form-control {
    min-height: 120px;
    line-height: 1.6;
    resize: vertical;
}

#reportFundraiserModal .form-control::placeholder {
    color: #929e98;
    opacity: 1;
}

#reportFundraiserModal .form-control:focus,
#reportFundraiserModal .form-select:focus {
    border-color: var(--report-green) !important;
    box-shadow: 0 0 0 3px rgba(19, 118, 83, 0.11) !important;
}

/* File input */
#reportFundraiserModal input[type="file"] {
    padding: 4px !important;
}

#reportFundraiserModal input[type="file"]::file-selector-button {
    min-height: 35px;
    margin: 0 10px 0 0;
    padding: 7px 13px;
    color: #385148;
    font-size: 13px;
    font-weight: 600;
    background: #edf4f1;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

#reportFundraiserModal input[type="file"]::file-selector-button:hover {
    background: #e0ece7;
}

/* Help text */
#reportFundraiserModal .form-text {
    margin-top: 6px;
    color: #89958f !important;
    font-size: 12px;
    line-height: 1.5;
}

/* Validation */
#reportFundraiserModal .is-invalid {
    border-color: var(--report-red) !important;
}

#reportFundraiserModal .invalid-feedback {
    margin-top: 5px;
    color: var(--report-red);
    font-size: 12px;
}

/* Alerts */
#reportFundraiserModal .alert {
    padding: 11px 13px;
    border: 0;
    border-radius: 10px;
    font-size: 13px;
}

#reportFundraiserModal .alert-success {
    color: #12623f;
    background: #e9f8f0;
}

#reportFundraiserModal .alert-danger {
    color: #a72637;
    background: #fff0f2;
}

/* Footer */
#reportFundraiserModal .modal-footer {
    flex-shrink: 0;
    gap: 9px;
    padding: 14px 24px 22px;
    background: #ffffff !important;
    border-top: 0 !important;
}

#reportFundraiserModal .modal-footer .btn {
    min-height: 42px;
    margin: 0 !important;
    padding: 9px 20px;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none !important;
}

/* Cancel */
#reportFundraiserModal .modal-footer .btn-light {
    color: #33483f !important;
    background: #edf3f0 !important;
}

#reportFundraiserModal .modal-footer .btn-light:hover {
    background: #dfe9e4 !important;
}

/* Submit */
#reportFundraiserModal #campaignReportSubmitButton {
    min-width: 138px;
    color: #ffffff !important;
    background: var(--report-red) !important;
}

#reportFundraiserModal #campaignReportSubmitButton:hover {
    background: #cd2b43 !important;
}

#reportFundraiserModal #campaignReportSubmitButton:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Mobile */
@media (max-width: 575px) {
    #reportFundraiserModal .modal-dialog {
        width: calc(100% - 24px);
        margin: 12px auto;
    }

    #reportFundraiserModal .modal-content {
        max-height: calc(100vh - 24px);
        border-radius: 16px !important;
    }

    #reportFundraiserModal .modal-header {
        padding: 18px 17px 14px;
    }

    #reportFundraiserModal .modal-title {
        font-size: 18px;
    }

    #reportFundraiserModal .modal-body {
        padding: 17px 17px 8px;
    }

    #reportFundraiserModal .modal-footer {
        display: grid;
        grid-template-columns: 1fr 1.35fr;
        padding: 13px 17px 17px;
    }

    #reportFundraiserModal .modal-footer .btn,
    #reportFundraiserModal #campaignReportSubmitButton {
        width: 100%;
        min-width: 0;
        padding-right: 10px;
        padding-left: 10px;
    }

    #reportFundraiserModal textarea.form-control {
        min-height: 105px;
    }
}

/* Fix Report Fundraiser modal excessive height */
#reportFundraiserModal .modal-dialog {
    height: auto !important;
}

#reportFundraiserModal .modal-content {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 48px) !important;
}

#reportFundraiserModal form {
    height: auto !important;
    min-height: 0 !important;
}

#reportFundraiserModal .modal-body {
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 210px) !important;
    overflow-y: auto !important;
}

@media (max-width: 575px) {
    #reportFundraiserModal .modal-content {
        max-height: calc(100vh - 24px) !important;
    }

    #reportFundraiserModal .modal-body {
        max-height: calc(100vh - 190px) !important;
    }
}


.withdraw-fee-acknowledgement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
    color: #53645e;
    background: #f3faf7;
    border: 1px solid #d3eadf;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.withdraw-fee-acknowledgement i {
    flex-shrink: 0;
    margin-top: 3px;
    color: #11966f;
}


/* How It Works FAQ fix */
.gi-how-faq-answer {
    max-height: 0;
    overflow: hidden;
    color: var(--gi-text);
    font-size: 14px;
    line-height: 1.75;
    transition: max-height 0.32s ease;
}

.gi-how-faq-question {
    cursor: pointer;
}


