/* Khedmatgozaran Persian survey theme overrides for Fruity TwentyThree. */

@font-face {
    font-family: "Vazirmatn";
    src: url("/upload/themes/survey/generalfiles/Vazirmatn-variable.woff2?v=20261007") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --kg-ink: #183331;
    --kg-muted: #657a77;
    --kg-brand: #087e72;
    --kg-brand-dark: #06665d;
    --kg-accent: #d5a348;
    --kg-line: #e1ebe8;
    --kg-surface: #ffffff;
    --kg-page: #f1f6f4;
    --kg-radius: 20px;
    --kg-shadow: 0 18px 48px rgba(24, 51, 49, .09);
}

html,
body {
    min-height: 100%;
    background: var(--kg-page) !important;
}

body.fruity_twentythree,
body.fruity_twentythree input,
body.fruity_twentythree textarea,
body.fruity_twentythree select,
body.fruity_twentythree button {
    color: var(--kg-ink);
    font-family: "Vazirmatn", "IBM Sans", Tahoma, sans-serif;
}

body.fruity_twentythree {
    line-height: 1.9;
}

#survey-nav {
    min-height: 70px;
    border-bottom: 1px solid rgba(225, 235, 232, .9);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 4px 18px rgba(24, 51, 49, .045);
}

#survey-nav .container-fluid {
    display: flex;
    min-height: 70px;
    max-width: 1020px;
    margin-inline: auto;
    align-items: center;
}

#survey-nav .kg-survey-brand {
    display: flex;
    min-height: 56px;
    margin-inline-start: 0;
    padding: 3px 0;
    align-items: center;
}

#survey-nav .kg-survey-brand img {
    display: block;
    width: auto;
    max-width: 150px;
    height: 52px;
    object-fit: contain;
}

#survey-nav .navbar-toggler {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--kg-line);
    border-radius: 13px;
    background: #f8fbfa;
    color: var(--kg-brand);
    place-items: center;
}

#survey-nav .navbar-toggler:hover,
#survey-nav .navbar-toggler:focus-visible {
    border-color: rgba(8, 126, 114, .4);
    background: #eaf5f2;
    box-shadow: 0 0 0 4px rgba(8, 126, 114, .1);
}

.top-container {
    padding-top: 14px;
}

.top-content,
#outerframeContainer > .row > .col-centered {
    max-width: 1020px;
}

#progressbar-top {
    margin: 5px auto 12px;
    padding: 0 14px;
}

#progressbar-top .progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #dceae6;
}

#progressbar-top .progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #087e72, #24a48d) !important;
}

#outerframeContainer {
    padding: 8px 16px 54px;
    background: transparent !important;
}

#limesurvey {
    max-width: 920px;
    margin: 14px auto 30px;
    padding: 0 clamp(12px, 2.8vw, 24px) 30px;
    color: var(--kg-ink);
    direction: rtl;
}

#welcome-container,
#group-0 {
    margin: 12px auto 22px;
    padding: clamp(20px, 4.2vw, 40px);
    border: 1px solid var(--kg-line);
    border-radius: 24px;
    background: var(--kg-surface);
    box-shadow: var(--kg-shadow);
}

#welcome-container {
    border-top: 3px solid var(--kg-accent);
}

#limesurvey h1,
#limesurvey h2,
#limesurvey h3,
#limesurvey .survey-name,
#limesurvey .group-title {
    color: var(--kg-ink);
    font-family: "Vazirmatn", "IBM Sans", Tahoma, sans-serif;
    font-weight: 750;
    line-height: 1.65;
    text-align: right;
}

#limesurvey h1,
#limesurvey .survey-name {
    margin: 0 0 18px;
    font-size: clamp(1.45rem, 3.8vw, 2rem);
}

#limesurvey h2,
#limesurvey .group-title {
    margin: 0 0 22px;
    font-size: clamp(1.25rem, 3.2vw, 1.7rem);
}

#limesurvey .question-container {
    margin: 16px 0;
    padding: clamp(16px, 3vw, 25px);
    border: 1px solid var(--kg-line);
    border-radius: var(--kg-radius);
    background: #fff;
    box-shadow: 0 7px 22px rgba(24, 51, 49, .045);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

#limesurvey .question-container:focus-within {
    border-color: rgba(8, 126, 114, .48);
    box-shadow: 0 9px 26px rgba(8, 126, 114, .12);
}

#limesurvey .question-title-container,
#limesurvey .question-text {
    color: var(--kg-ink);
    font-size: clamp(1rem, 2.4vw, 1.12rem);
    font-weight: 700;
    line-height: 1.95;
}

#limesurvey .question-help-container,
#limesurvey .question-valid-container,
#limesurvey .text-muted,
#limesurvey .question-valid-container * {
    color: var(--kg-muted);
}

#limesurvey textarea.form-control,
#limesurvey input.form-control,
#limesurvey select.form-control,
#limesurvey .form-select {
    min-height: 52px;
    border: 1px solid #d5e3de;
    border-radius: 14px;
    background: #fbfdfc;
    color: var(--kg-ink);
    font: inherit;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

#limesurvey textarea.form-control {
    min-height: 120px;
    padding: 14px 16px;
    resize: vertical;
}

#limesurvey .form-control:focus,
#limesurvey .form-select:focus {
    border-color: var(--kg-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(8, 126, 114, .12);
}

#limesurvey .checkbox-item,
#limesurvey .radio-item,
#limesurvey .answer-item {
    border: 1px solid transparent;
    border-radius: 13px;
    transition: border-color .18s ease, background .18s ease;
}

#limesurvey .checkbox-item:hover,
#limesurvey .radio-item:hover,
#limesurvey .answer-item:hover {
    border-color: var(--kg-line);
    background: #f6faf8;
}

#limesurvey .checkbox-item label,
#limesurvey .radio-item label,
#limesurvey .answer-item label {
    color: var(--kg-ink);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.9;
    cursor: pointer;
}

#limesurvey input[type="checkbox"],
#limesurvey input[type="radio"] {
    accent-color: var(--kg-brand);
}

#limesurvey #navigator-container {
    display: flex;
    margin-top: 24px;
    gap: 12px;
    align-items: center;
}

#limesurvey .btn-primary,
#limesurvey button#ls-button-submit,
#limesurvey #ls-button-submit {
    min-height: 50px;
    padding: 10px 30px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #087e72, #119783) !important;
    color: #fff !important;
    font-family: "Vazirmatn", "IBM Sans", Tahoma, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(8, 126, 114, .2);
    transition: filter .18s ease, box-shadow .18s ease, transform .18s ease;
}

#limesurvey .btn-primary:hover,
#limesurvey button#ls-button-submit:hover,
#limesurvey #ls-button-submit:hover {
    filter: brightness(.94);
    box-shadow: 0 11px 24px rgba(8, 126, 114, .27);
    transform: translateY(-1px);
}

#limesurvey .btn-secondary,
#limesurvey .btn-outline-secondary {
    border-radius: 13px;
    font-family: "Vazirmatn", "IBM Sans", Tahoma, sans-serif;
}

#limesurvey a {
    color: var(--kg-brand-dark);
    text-underline-offset: 3px;
}

#limesurvey .warningjs.alert {
    border: 1px solid #f0d9a7;
    border-radius: 14px;
    background: #fff9e9;
    color: #795915;
    font-family: inherit;
}

@media (max-width: 640px) {
    #survey-nav,
    #survey-nav .container-fluid {
        min-height: 62px;
    }

    #survey-nav .kg-survey-brand img {
        max-width: 124px;
        height: 45px;
    }

    .top-container {
        padding-top: 8px;
    }

    #outerframeContainer {
        padding: 4px 10px 32px;
    }

    #limesurvey {
        margin: 8px auto 20px;
        padding: 0 3px 20px;
    }

    #welcome-container,
    #group-0 {
        margin: 8px auto 16px;
        padding: 18px 14px;
        border-radius: 18px;
    }

    #limesurvey .question-container {
        margin: 12px 0;
        padding: 16px 13px;
        border-radius: 16px;
    }

    #limesurvey #navigator-container {
        display: block;
    }

    #limesurvey #navigator-container > * {
        width: 100%;
        margin: 7px 0;
    }

    #limesurvey #ls-button-submit,
    #limesurvey button#ls-button-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #limesurvey *,
    #limesurvey *::before,
    #limesurvey *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* Keep checkbox and radio controls aligned in LimeSurvey's RTL markup. */
#limesurvey .checkbox-item,
#limesurvey .radio-item {
    position: relative;
    display: block;
    width: 100%;
    min-height: 54px;
    margin: 8px 0;
    padding: 0;
    border: 1px solid var(--kg-line);
    border-radius: 13px;
    background: #fff;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

#limesurvey .checkbox-item:hover,
#limesurvey .radio-item:hover {
    border-color: rgba(8, 126, 114, .45);
    background: #f8fbfa;
}

#limesurvey .checkbox-item label,
#limesurvey .radio-item label {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 10px 50px 10px 16px !important;
    line-height: 1.7;
}

#limesurvey .checkbox-item input[type="checkbox"],
#limesurvey .radio-item input[type="radio"] {
    top: 50%;
    right: 13px;
    left: auto;
    z-index: 1;
    width: 22px;
    height: 22px;
    margin: 0;
    transform: translateY(-50%);
    opacity: 0;
}

#limesurvey .checkbox-item label::before,
#limesurvey .radio-item label::before {
    top: 50%;
    right: 13px;
    width: 22px;
    height: 22px;
    margin: 0;
    transform: translateY(-50%);
    border: 2px solid #aabdb8;
    border-radius: 7px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

#limesurvey .radio-item label::before {
    border-radius: 50%;
}

#limesurvey .checkbox-item label::after,
#limesurvey .radio-item label::after {
    top: 50%;
    right: 20px;
    width: 7px;
    height: 12px;
    margin: 0;
    padding: 0;
    transform: translateY(-62%) rotate(45deg);
    border: 0;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    background: transparent;
    color: transparent;
    content: "";
    opacity: 0;
    transition: opacity .15s ease;
}

#limesurvey .checkbox-item input[type="checkbox"]:checked + label::before,
#limesurvey .radio-item input[type="radio"]:checked + label::before {
    border-color: var(--kg-brand);
    background: var(--kg-brand);
}

#limesurvey .checkbox-item input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

#limesurvey .radio-item input[type="radio"]:checked + label::after {
    width: 8px;
    height: 8px;
    transform: translate(-1px, -50%);
    border: 0;
    border-radius: 50%;
    background: #fff;
    opacity: 1;
}

#limesurvey .checkbox-item input[type="checkbox"]:focus-visible + label::before,
#limesurvey .radio-item input[type="radio"]:focus-visible + label::before {
    box-shadow: 0 0 0 4px rgba(8, 126, 114, .17);
}
