/* Prevent Bootstrap 3 from shifting the navbar when a modal opens/closes.
   Bootstrap adds padding-right to body to compensate for the hidden scrollbar;
   this accumulates across multiple sequential show/hide calls and creates
   a visible gap next to the fixed navbar. */
body.modal-open {
    padding-right: 0 !important;
}

/* ── Contact Support Modal ─────────────────────────────── */

#contact-support-modal .cs-modal-dialog {
    width: 680px;
    max-width: calc(100vw - 30px);
}

#contact-support-modal .cs-modal-content,
#cs-thank-you-modal .cs-modal-content {
    border-radius: 20px;
    overflow: hidden;
}

#contact-support-modal .cs-modal-header {
    padding: 20px 24px 12px;
}

#contact-support-modal .cs-modal-header .close {
    color: #fff;
    opacity: 1;
}

#contact-support-modal .cs-modal-header .close:hover,
#contact-support-modal .cs-modal-header .close:focus {
    color: #fff;
    opacity: 0.75;
}

#contact-support-modal .cs-modal-body {
    padding: 20px 24px 10px;
}

#contact-support-modal .cs-field {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
}

#contact-support-modal .cs-field > label {
    flex: 0 0 120px;
    width: 120px;
    padding-top: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #2b2f33;
}

#contact-support-modal .cs-field-control {
    flex: 1;
    min-width: 0;
}

#contact-support-modal .cs-upload-trigger {
    width: 100%;
    border: 2px dashed #d8dcde;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 14px;
}

#contact-support-modal .cs-upload-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#contact-support-modal .cs-file-list {
    margin-top: 8px;
}

#contact-support-modal .cs-file-list .cs-file-item {
    display: inline-block;
    margin: 4px 6px 0 0;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    background: #f1f4f8;
    color: #2f3941;
}

#contact-support-modal #cs-report-details {
    min-height: 110px;
    resize: vertical;
    border-radius: 16px;
    padding-top: 10px;
}

#contact-support-modal .cs-modal-footer,
#cs-thank-you-modal .cs-modal-footer {
    padding: 10px 24px 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    border-top: none;
}

#contact-support-modal .cs-btn,
#cs-thank-you-modal .cs-btn {
    width: 140px;
    border-radius: 24px;
    height: 40px;
    box-shadow: none !important;
}

#contact-support-modal .cs-btn-cancel {
    background-color: #e4e4e4;
    color: #404040;
    border: 0.5px solid #e4e4e4;
}

#contact-support-modal .cs-btn-cancel:hover {
    background-color: #808080;
    color: #ffffff;
}

#contact-support-modal .cs-btn-send,
#cs-thank-you-modal .cs-btn-send {
    background-color: var(--primary-color, #2051B5);
    color: #fff !important;
    border: none;
}

#contact-support-modal .cs-btn-send:hover,
#cs-thank-you-modal .cs-btn-send:hover {
    background-color: var(--primary-hover-color, #1C48A2);
    color: #ffffff;
}

@media (max-width: 767px) {
    #contact-support-modal .cs-modal-header {
        padding: 18px 16px 10px;
    }

    #contact-support-modal .cs-modal-body {
        padding: 16px 16px 8px;
    }

    #contact-support-modal .cs-field {
        flex-direction: column;
    }

    #contact-support-modal .cs-field > label {
        flex: none;
        width: auto;
        padding-top: 0;
        margin-bottom: 6px;
    }

    #contact-support-modal .cs-modal-footer {
        padding: 10px 16px 16px;
        gap: 8px;
    }

    #contact-support-modal .cs-btn,
    #cs-thank-you-modal .cs-btn {
        width: 48%;
    }
}

/* ── Thank You Modal ───────────────────────────────────── */

#cs-thank-you-modal .cs-ty-dialog {
    max-width: 560px;
    width: 560px;
}

#cs-thank-you-modal .cs-ty-header {
    padding: 20px 24px 16px;
    text-align: center;
}

#cs-thank-you-modal .cs-ty-header .close {
    color: #fff;
    opacity: 1;
}

#cs-thank-you-modal .cs-ty-header .close:hover,
#cs-thank-you-modal .cs-ty-header .close:focus {
    color: #fff;
    opacity: 0.75;
}

#cs-thank-you-modal .cs-ty-title {
    font-size: 18px;
    font-weight: 700;
}

#cs-thank-you-modal .cs-ty-body {
    padding: 24px 28px 16px;
    text-align: center;
    color: #2b2f33;
    font-size: 14px;
    line-height: 1.6;
}

#cs-thank-you-modal .cs-ty-body p {
    margin-bottom: 12px;
}

#cs-thank-you-modal .cs-ty-body p:last-child {
    margin-bottom: 0;
}
