/* ==========================================================================
   Service Evaluation / Beneficiary Satisfaction Survey Modal Styles
   Matches Etimad IDM Design System & Figma (IM-37493, IM-37494, IM-37516, IM-37517)
   ========================================================================== */

/* DIN Next LT Arabic Web Fonts */
@font-face {
    font-family: "DIN Next LT Arabic";
    src: local("DIN Next LT Arabic Light"),
         local("DINNextLTArabic-Light"),
         url("../fonts/DINNextLTW23-Light.woff2") format("woff2"),
         url("../fonts/DINNextLTW23-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DIN Next LT Arabic";
    src: local("DIN Next LT Arabic"),
         local("DINNextLTArabic-Regular"),
         url("../fonts/DINNextLTW05-Regular.woff2") format("woff2"),
         url("../fonts/DINNextLTW05-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DIN Next LT Arabic";
    src: local("DIN Next LT Arabic Medium"),
         local("DINNextLTArabic-Medium"),
         url("../fonts/DINNextLTW23-Medium.woff2") format("woff2"),
         url("../fonts/DINNextLTW23-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DIN Next LT Arabic";
    src: local("DIN Next LT Arabic Bold"),
         local("DINNextLTArabic-Bold"),
         url("../fonts/DINNextLTW05-Bold.woff2") format("woff2"),
         url("../fonts/DINNextLTW05-Bold.woff") format("woff");
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DINNextLTArabic-Regular";
    src: url("../fonts/DINNextLTW05-Regular.woff2") format("woff2"),
         url("../fonts/DINNextLTW05-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DINNextLTArabic-Medium";
    src: url("../fonts/DINNextLTW23-Medium.woff2") format("woff2"),
         url("../fonts/DINNextLTW23-Medium.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DINNextLTArabic-Bold";
    src: url("../fonts/DINNextLTW05-Bold.woff2") format("woff2"),
         url("../fonts/DINNextLTW05-Bold.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

#serviceEvaluationModal,
#serviceEvaluationModal * {
    font-family: "DIN Next LT Arabic", "DINNextLTArabic-Regular", "DINNextLTArabic-Medium", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

#serviceEvaluationModal .modal-dialog {
    max-width: 580px;
    margin: 2rem auto;
}

#serviceEvaluationModal .modal-content {
    border: none;
    border-radius: 0 !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    padding: 38px 36px 32px 36px;
    background: #FFFFFF;
    text-align: center;
}

/* Success Icon Circle Badge */
.survey-success-icon-wrapper {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background-color: #E6F5EE;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
}

.survey-success-icon-wrapper svg {
    width: 46px;
    height: 46px;
}

/* Modal Headers */
.survey-main-title {
    color: var(--Primary-Green, #1C8657) !important;
    text-align: center !important;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 6px;
}

.survey-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #4B5563;
    text-align: center !important;
    margin-bottom: 22px;
}

.survey-question {
    font-size: 15px;
    font-weight: 500 !important;
    color: #1F2937;
    text-align: center !important;
    margin-bottom: 14px;
}

/* Star Rating */
.survey-stars-container {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.survey-star-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none !important;
    transition: transform 0.15s ease-in-out;
}

.survey-star-btn svg {
    width: 32px;
    height: 32px;
    fill: #E5E7EB;
    transition: fill 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.survey-star-btn:hover,
.survey-star-btn:hover ~ .survey-star-btn {
    transform: scale(1.12);
}

.survey-star-btn:hover svg,
.survey-star-btn:hover ~ .survey-star-btn svg {
    fill: #FFB800 !important;
}

.survey-star-btn.active svg {
    fill: #FFB800;
}

/* Collapsible Details Section */
.survey-details-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    margin-top: 6px;
    width: 100%;
}

.survey-details-section.show {
    display: block;
    opacity: 1;
}

/* "شاركنا السبب؟" Heading */
.survey-reasons-title {
    color: var(--Form-field-text-label, #161616) !important;
    text-align: center !important;
    font-family: var(--Family, "DIN Next LT Arabic"), sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    margin-bottom: 14px;
    display: block;
}

/* Reasons List: HORIZONTAL ROW */
.survey-reasons-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 26px;
    width: 100%;
}

.survey-reason-chip {
    display: inline-flex;
    height: 40px;
    padding: 8px 18px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    border: 1px solid var(--Seconderay-Gray50, #B4B4B4);
    background: #FFFFFF;
    color: var(--Form-field-text-label, #161616);
    font-family: var(--Family, "DIN Next LT Arabic"), sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    box-sizing: border-box;
}

.survey-reason-chip:hover {
    border-color: #1C8657;
    background-color: #F9FDFB;
}

.survey-reason-chip.active {
    display: inline-flex;
    height: 40px;
    padding: 8px 18px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    background: var(--Primary-Green, #1C8657) !important;
    border: 1px solid var(--Primary-Green, #1C8657) !important;
    color: #FFFFFF !important;
    font-weight: 500;
}

/* Feedback Textarea - Underline / Divider Style */
.survey-feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}

.survey-feedback-label {
    color: #0A5A8F !important;
    font-size: 13px;
    font-weight: 600;
}

.survey-counter-text {
    font-size: 12px;
    color: #B4B4B4 !important;
}

.survey-textarea-wrapper {
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #B4B4B4;
    margin-bottom: 26px;
    position: relative;
    width: 100%;
}

.survey-feedback-textarea {
    width: 100%;
    min-height: 65px;
    max-height: 120px;
    padding: 8px 0;
    font-size: 13px;
    font-family: var(--Family, "DIN Next LT Arabic"), sans-serif;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #1F2937;
    background-color: transparent;
    resize: vertical;
    line-height: 1.5;
}

.survey-feedback-textarea::placeholder {
    color: #9CA3AF;
}

/* Actions Footer */
.survey-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
}

.survey-actions .btn {
    min-width: 130px;
    height: 40px;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    font-family: var(--Family, "DIN Next LT Arabic"), sans-serif;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.survey-btn-submit {
    background-color: #1C8657 !important;
    border: 1px solid #1C8657 !important;
    color: #FFFFFF !important;
}

.survey-btn-submit:hover:not(:disabled) {
    background-color: #166E46 !important;
    border-color: #166E46 !important;
}

.survey-btn-submit:disabled {
    background-color: #E5E7EB !important;
    border-color: #E5E7EB !important;
    color: #9CA3AF !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.survey-btn-later {
    background-color: #FFFFFF !important;
    border: 1px solid #B4B4B4 !important;
    color: #161616 !important;
}

.survey-btn-later:hover {
    background-color: #F8FAFC !important;
    border-color: #94A3B8 !important;
    color: #000000 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    #serviceEvaluationModal .modal-content {
        padding: 24px 18px;
    }

    .survey-main-title {
        font-size: 20px;
    }

    .survey-reasons-list {
        flex-direction: column;
    }

    .survey-reason-chip {
        width: 100%;
    }

    .survey-actions {
        flex-direction: column-reverse;
        gap: 10px;
        width: 100%;
    }

    .survey-actions .btn {
        width: 100%;
    }
}


