/* =========================================================
   BASE
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: #DDEDFD;
    color: #17465A;
    direction: rtl;
    font-size: 14px;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button:focus,
a:focus {
    outline: none !important;
}


.nl-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.7;
}

.nl-brand-text strong {
    font-size: 15px;
    font-weight: 700;
}

.nl-brand-text span {
    font-size: 11px;
    color: #7A8B95;
}


/* =========================================================
   MAIN
========================================================= */

.nl-main {
    padding: 45px 0 70px;
    min-height: calc(100vh - 76px);
}


/* =========================================================
   SURVEY CARD
========================================================= */

.nl-survey-card {
    background: #FFFFFF;
    border-radius: 22px;
    padding: 38px;
    box-shadow: 0 15px 45px rgba(23, 70, 90, 0.08);
    border: 1px solid rgba(13, 110, 138, 0.05);
}


/* =========================================================
   INTRO
========================================================= */

.nl-intro-icon {
    width: 80px;
    height: 80px;
    background: #DDEDFD;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 22px;
}

.nl-intro-icon span {
    font-size: 34px;
}

.nl-intro-label {
    text-align: center;
    color: #0D6E8A;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.nl-survey-title {
    text-align: center;
    color: #17465A;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 16px;
}

.nl-survey-description {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    color: #6D7E88;
    font-size: 14px;
    line-height: 2;
}

.nl-time-box {
    max-width: 460px;
    margin: 26px auto;
    background: #F6FAFD;
    border: 1px solid #E1EDF4;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5F737F;
    font-size: 13px;
}

.nl-time-icon {
    margin-left: 8px;
}


/* =========================================================
   BUTTONS
========================================================= */

.nl-btn-primary {
    background: #0D6E8A;
    color: #FFFFFF !important;
    border: 2px solid #0D6E8A;
    border-radius: 11px;
    font-weight: 600;
    padding: 11px 25px;
    transition: all .2s ease;
}

.nl-btn-primary:hover,
.nl-btn-primary:focus {
    background: #095B72;
    border-color: #095B72;
    color: #FFFFFF;
}

.nl-btn-primary:disabled,
.nl-btn-primary.disabled {
    background: #B7CAD4;
    border-color: #B7CAD4;
    cursor: not-allowed;
}

.nl-btn-start {
    display: block;
    margin: 0 auto;
    min-width: 210px;
    font-size: 14px;
}

.nl-btn-start span {
    margin-right: 8px;
}

.nl-btn-home {
    background: transparent;
    border: 1px solid #D2E1E9;
    color: #496D7C;
    border-radius: 9px;
    padding: 8px 14px;
    font-size: 12px;
}

.nl-btn-home:hover {
    background: #DDEDFD;
    color: #0D6E8A;
}


/* =========================================================
   PRIVACY
========================================================= */

.nl-privacy {
    display: flex;
    align-items: flex-start;
    background: #F5FAFD;
    border: 1px solid #DCECF4;
    border-radius: 12px;
    padding: 12px 15px;
    color: #637985;
    font-size: 11px;
    line-height: 1.8;
}

.nl-privacy-icon {
    margin-left: 10px;
    font-size: 15px;
    line-height: 1.4;
}

.nl-privacy strong {
    display: block;
    color: #42616E;
    font-weight: 600;
}

.nl-privacy p {
    margin: 2px 0 0;
}

.nl-privacy-bottom {
    margin-top: 30px;
}


/* =========================================================
   STEP HEADER
========================================================= */

.nl-step-header {
    margin-bottom: 30px;
}

.nl-step-info {
    text-align: right;
}

.nl-step-info > span {
    color: #0D6E8A;
    font-size: 12px;
    font-weight: 600;
}

.nl-step-info h2 {
    font-size: 23px;
    font-weight: 700;
    margin: 7px 0 20px;
    color: #17465A;
}

.nl-progress-wrapper {
    position: relative;
}

.nl-progress-text {
    color: #80909A;
    font-size: 11px;
    margin-bottom: 7px;
}

.nl-progress-text span {
    color: #0D6E8A;
    font-weight: 700;
    margin-left: 5px;
}

.nl-progress {
    height: 7px;
    background: #E9F2F7;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: none;
}

.nl-progress-bar {
    background: #0D6E8A;
    border-radius: 20px;
    transition: width .35s ease;
}


/* =========================================================
   QUESTIONS
========================================================= */

.nl-question {
    background: #FFFFFF;
    border: 1px solid #E4EDF2;
    border-radius: 15px;
    padding: 22px;
    margin-bottom: 18px;
}

.nl-question-title {
    color: #244C5C;
    font-size: 14px;
    font-weight: 600;
    line-height: 2;
    margin: 0 0 17px;
}


/* =========================================================
   RATING OPTIONS
========================================================= */

.nl-rating-options {
    display: flex;
    margin: 0 -5px;
}

.nl-rating-option {
    flex: 1;
    margin: 0 5px;
}

.nl-rating-option input {
    display: none;
}

.nl-rating-label {
    display: block;
    text-align: center;
    border: 2px solid #E4EDF2;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 13px 5px;
    cursor: pointer;
    transition: all .2s ease;
    min-height: 82px;
}

.nl-rating-label:hover {
    border-color: #9FC9DD;
    background: #F5FAFD;
}

.nl-rating-stars {
    display: block;
    color: #F6B83F;
    font-size: 17px;
    line-height: 1.5;
    direction: ltr;
    margin-bottom: 4px;
}

.nl-rating-text {
    display: block;
    font-size: 10px;
    color: #6E818B;
    line-height: 1.5;
}

.nl-rating-option input:checked + .nl-rating-label {
    background: #DDEDFD;
    border-color: #0D6E8A;
    box-shadow: 0 4px 12px rgba(13, 110, 138, .08);
}

.nl-rating-option input:checked + .nl-rating-label .nl-rating-text {
    color: #0D6E8A;
    font-weight: 700;
}


/* =========================================================
   CHECKBOX CARDS
========================================================= */

.nl-check-options {
    margin: -5px;
}

.nl-check-option {
    display: inline-block;
    width: calc(50% - 10px);
    margin: 5px;
}

.nl-check-option input {
    display: none;
}

.nl-check-label {
    display: block;
    padding: 13px 15px;
    border: 2px solid #E4EDF2;
    border-radius: 11px;
    color: #506B77;
    cursor: pointer;
    font-size: 12px;
    transition: all .2s ease;
    position: relative;
}

.nl-check-label:hover {
    border-color: #9FC9DD;
    background: #F8FBFD;
}

.nl-check-option input:checked + .nl-check-label {
    background: #DDEDFD;
    border-color: #0D6E8A;
    color: #0D6E8A;
    font-weight: 600;
}

.nl-check-option input:checked + .nl-check-label:before {
    content: '✓';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #0D6E8A;
    font-weight: 700;
}


/* =========================================================
   TEXTAREA
========================================================= */

.nl-field-label {
    display: block;
    font-size: 13px;
    color: #244C5C;
    font-weight: 600;
    margin-bottom: 10px;
}

.nl-textarea {
    resize: vertical;
    min-height: 105px;
    border-radius: 11px;
    border: 1px solid #D9E6ED;
    box-shadow: none;
    padding: 13px;
    color: #405B67;
    transition: all .2s ease;
}

.nl-textarea:focus {
    border-color: #0D6E8A;
    box-shadow: 0 0 0 2px rgba(13, 110, 138, .06);
}


/* =========================================================
   NPS
========================================================= */

.nl-nps-question {
    text-align: center;
}

.nl-nps-title {
    font-size: 16px;
    color: #244C5C;
    font-weight: 600;
    line-height: 2;
    margin: 0 auto 25px;
    max-width: 600px;
}

.nl-nps-options {
    display: flex;
    justify-content: center;
    gap: 7px;
    direction: ltr;
    flex-wrap: wrap;
}

.nl-nps-option {
    position: relative;
}

.nl-nps-option input {
    display: none;
}

.nl-nps-label {
    width: 45px;
    height: 45px;
    border: 2px solid #DDE8EE;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #54707D;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    background: #FFFFFF;
}

.nl-nps-label:hover {
    border-color: #0D6E8A;
    background: #F4FAFD;
}

.nl-nps-option input:checked + .nl-nps-label {
    background: #0D6E8A;
    border-color: #0D6E8A;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(13, 110, 138, .18);
}

.nl-nps-description {
    display: flex;
    justify-content: space-between;
    color: #82919A;
    font-size: 11px;
    margin-top: 13px;
}

.nl-selected-nps {
    margin: 24px auto 0;
    width: 90px;
    padding: 10px;
    background: #DDEDFD;
    border-radius: 12px;
    color: #0D6E8A;
    display: none;
}

.nl-selected-nps strong {
    display: block;
    font-size: 26px;
    line-height: 1.3;
}

.nl-selected-nps span {
    font-size: 9px;
}


/* =========================================================
   ACTIONS
========================================================= */

.nl-actions {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nl-btn-back {
    background: #FFFFFF;
    border: 1px solid #D5E2E9;
    color: #637984;
    border-radius: 10px;
    padding: 10px 22px;
}

.nl-btn-back:hover {
    background: #F5FAFD;
    color: #0D6E8A;
    border-color: #BFD5E0;
}


/* =========================================================
   SUCCESS
========================================================= */

.nl-success-page {
    display: none;
    text-align: center;
    padding: 35px 10px 10px;
}

.nl-success-icon {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    background: #E6F7EF;
    color: #35A66F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.nl-success-page h1 {
    color: #17465A;
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 15px;
}

.nl-success-main {
    color: #3F5D69;
    font-size: 15px;
    font-weight: 600;
}

.nl-success-description {
    max-width: 500px;
    margin: 12px auto 25px;
    color: #778992;
    font-size: 13px;
    line-height: 2;
}

.nl-success-home {
    min-width: 210px;
}


/* =========================================================
   LOADING
========================================================= */

.nl-loading {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(221, 237, 253, .78);
    align-items: center;
    justify-content: center;
}

.nl-loading-box {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 30px 45px;
    box-shadow: 0 15px 40px rgba(23, 70, 90, .15);
    text-align: center;
}

.nl-loading-box strong {
    display: block;
    color: #17465A;
    margin-top: 15px;
    font-size: 13px;
}

.nl-loading-box span {
    display: block;
    color: #83939C;
    font-size: 10px;
    margin-top: 5px;
}

.nl-spinner {
    width: 38px;
    height: 38px;
    margin: auto;
    border-radius: 50%;
    border: 4px solid #DDEDFD;
    border-top-color: #0D6E8A;
    animation: nl-spin 0.8s linear infinite;
}

@keyframes nl-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   UTILITIES
========================================================= */

.nl-hidden {
    display: none !important;
}

.nl-required-message {
    display: none;
    color: #D9534F;
    font-size: 11px;
    margin-top: 8px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767px) {

    .nl-header {
        min-height: 65px;
    }

    .nl-header-row {
        min-height: 65px;
    }

    .nl-main {
        padding: 20px 0 40px;
    }

    .nl-survey-card {
        border-radius: 16px;
        padding: 24px 17px;
    }

    .nl-brand-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
        margin-left: 8px;
    }

    .nl-brand-text strong {
        font-size: 12px;
    }

    .nl-brand-text span {
        font-size: 9px;
    }

    .nl-btn-home {
        padding: 7px 8px;
        font-size: 9px;
    }

    .nl-survey-title {
        font-size: 21px;
    }

    .nl-survey-description {
        font-size: 12px;
    }

    .nl-rating-options {
        display: block;
    }

    .nl-rating-option {
        margin: 6px 0;
    }

    .nl-rating-label {
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 11px;
    }

    .nl-rating-stars {
        margin: 0 0 0 12px;
    }

    .nl-rating-text {
        font-size: 11px;
    }

    .nl-check-option {
        width: calc(100% - 10px);
    }

    .nl-nps-options {
        gap: 5px;
    }

    .nl-nps-label {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }

    .nl-actions {
        gap: 10px;
    }

    .nl-actions .btn {
        flex: 1;
    }

    .nl-step-info h2 {
        font-size: 19px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .nl-survey-card {
        padding: 20px 13px;
    }

    .nl-nps-label {
        width: 34px;
        height: 34px;
    }

    .nl-nps-options {
        gap: 3px;
    }

    .nl-time-box {
        font-size: 10px;
    }
}
