*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --saas-color-warning: #D04C1E;
    --saas-color-warning-light: #FFFBE6;
    --saas-color-success: rgb(51, 213, 158);
    --saas-color-success-light: #EAFBF5;
    --saas-color-error: rgb(243, 197, 180);;
    --saas-color-error-light: #F8ECE6;
    --saas-color-info: rgb(145, 213, 255);;
    --saas-color-info-light: #E6F7FF;
    --color-light-grey: #E4E8EA;
}

::-webkit-input-placeholder {
    font-style: italic;
    font-size: 14px;
    line-height: 18px;
    color: #81848B;
    opacity: 1;
}

:-moz-placeholder {
    font-style: italic;
    font-size: 14px;
    line-height: 18px;
    color: #81848B;
    opacity: 1;
}

::-moz-placeholder {
    font-style: italic;
    font-size: 14px;
    line-height: 18px;
    color: #81848B;
    opacity: 1;
}

:-ms-input-placeholder {
    font-style: italic;
    font-size: 14px;
    line-height: 18px;
    color: #81848B;
    opacity: 1;
}

::-ms-input-placeholder {
    font-style: italic;
    font-size: 14px;
    line-height: 18px;
    color: #81848B;
    opacity: 1;
}

::placeholder {
    font-style: italic;
    font-size: 14px;
    line-height: 18px;
    color: #81848B;
    opacity: 1;
}

a {
    text-underline-offset: 4px;
}

html, body {
    height: 100vh;
    height: 100dvh;
}

body {
    font-family: "Montserrat", sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal;
    margin: 0;
    background-attachment: fixed !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

body.standalone header > *,
body.standalone footer > * {
    display: none !important;
}

body.standalone #app,
body.standalone .main-area-wrapper {
    justify-content: start;
}

#app,
.main-area-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.main-area-wrapper .content-section {
    display: flex;
    align-items: center;
    flex-direction: column;
    max-width: 804px;
    min-height: 587px;
    width: 100%;
    margin: 0 auto;
}

.home-page {
    background: url("/netcat_template/template/netcat_studio/assets/bg-primary.webp") no-repeat center center/cover;
}

.slide,
.inner-page {
    background: url("/netcat_template/template/netcat_studio/assets/bg-secondary.webp") no-repeat center center/cover;
}

.inner-page .content-section {
    color: #FFFFFF;
}

.header {
    padding: 32px 30px 24px 30px;
}

.header__logo img {
    width: 205px;
}

.header__logo-secondary {
    display: none;
}

.inner-page .header__logo-primary {
    display: none;
}

.inner-page .header__logo-secondary {
    display: block;
}

.home-page .form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.home-page .form-handler {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 60px;
    background-color: #FFFFFF;
    width: 100%;
    max-width: 650px;
    border-radius: 15px;
    box-shadow: 0 10px 10px #41505c42;
}

.home-page .form-handler div {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

form label {
    width: 100%;
    text-align: left;
    font-size: 16px;
    line-height: 18px;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form input[type=checkbox] {
    margin-bottom: 10px;   
}

.home-page textarea, .home-page textarea:focus {
    padding: 25px 20px 60px 20px;
    min-height: 145px;
}

.inner-page textarea, .inner-page textarea:focus {
    max-height: 350px;
    padding: 25px;
}

textarea, textarea:focus {
    font-family: "Montserrat", sans-serif !important;
    font-size: 14px !important;
    background-color: #F7F7FB;
    border-radius: 20px;
    resize: none !important;
    overflow: auto !important;
    border: 0;
    width: 100%;
}

button {
    border: none;
}

button,
button:focus,
input:focus,
textarea:focus {
    outline: none;
}

.saas-btn {
    cursor: pointer;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none !important;
    border: 0 transparent !important;
}

.saas-btn-inactive {
    opacity: 0.5;
    pointer-events: none;
}

.saas-btn-primary {
    color: #FFFFFF !important;
    background: linear-gradient(to bottom right, #0089FA, #9747FF);
}

.saas-btn-secondary {
    color: #000000 !important;
    background-color: #F7F7FB !important;
}

.saas-btn-filled-primary {
    background-color: #0089FA !important;
    color: #FFFFFF !important;
}

.home-page .form-wrapper__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.home-page .form-wrapper__heading {
    font-size: 48px;
    line-height: 58px;
    font-weight: 300;
}

.footer {
    position: relative;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 804px;
    width: 100%;
    margin: 40px auto 0 auto;
    padding: 20px 0;
    font-size: 12px;
    line-height: 16px;
}

.footer-navigation {
    display: flex;
    gap: 15px;
    color: #8697ab; 
}

.inner-page .copyright,
.inner-page .navigation-item {
    color: #FFFFFF;
}

.navigation-item {
    color: #2C2F47;
    text-decoration: none;
}

.inner-page .form-handler {
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.data-source-dependent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.company__info {
    margin-top: 15px;
    color: #000;
    padding: 25px;
    background-color: #A2A9B9;
    border-radius: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.handler__logo {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    background: #0089FA1A;
    border-radius: 10px;
    padding: 15px 20px;
    color: #FFF;
    border: 1px solid #0089FA;
}

.handler__logo-header {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.handler__logo-icon {
    font-size: 24px;
}

.handler__logo:not(.collapsed) .handler__logo-icon:before {
    content: "-";
}

.handler__logo.collapsed .handler__logo-icon:before {
    content: "+";
}

.handler__logo-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
}

.handler__logo-header-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-input, .form-input:focus {
    margin-top: 4px;
    color: black;
    width: 100%;
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #DBDBDB;
    font-size: 14px;
}

.handler__logo-title {
    font-weight: bold;
}

.suggestion-wrapper {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 1px solid #0089FA;
}

.target-audience .suggestion-wrapper {
    border-top: 1px solid #0089FA;
}

.suggestion__heading {
    display: flex;
    gap: 20px;
    align-items: center;
    text-shadow: 0 2px 6px #0000003b;
}

.slide {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: top 0.5s ease-in-out;
    z-index: 9999;
}

.slide-active {
    top: 0;
}

.saas_validation-field.error input,
.saas_validation-field.error textarea {
    border: 1px solid var(--saas-color-warning);
}

.saas_validation-field.error {
    color: var(--saas-color-warning);
}

.saas_validation-field.success input,
.saas_validation-field.success textarea {
    border: 2px solid #0089FA;
}

.saas_validation-field.success {
    color: #0089FA;
}

.saas_validation-message {
    font-size: 12px;
    margin-top: 4px;
}

.saas_toast {
    z-index: 999999999 !important;
    min-width: 400px;
    top: 10%;
    transform: translate(-50%, -50%);
}

.saas_toast .toast {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
}

.saas_toast .btn-close {
    font-size: 12px;
    width: 10px;
    height: 10px;
    margin-left: auto !important;
}

.saas_toast-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.saas_toast .toast-header {
    border: 0;
    background-color: inherit;
}

.saas_toast .toast-body {
    word-break: break-word;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
}

.saas_toast .toast-title {
    word-break: break-word;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.saas_toast .toast.success {
    background-color: var(--saas-color-success-light);
    border: 1px solid var(--saas-color-success);
}

.saas_toast .toast.success .icon {
    content: url('/netcat_template/template/saas/assets/icons/success-circle.svg');
}

.saas_toast .toast.error {
    background-color: var(--saas-color-error-light);
    border: 1px solid var(--saas-color-error);
}

.saas_toast .toast.error:before {
    content: url('/netcat_template/template/saas/assets/icons/error-circle.svg');
}

.saas_toast .toast.warning {
    background-color: var(--saas-color-warning-light);
    border: 1px solid var(--saas-color-warning);
}

.saas_toast .toast.warning:before {
    content: url('/netcat_template/template/saas/assets/icons/warning-circle.svg');
}

.saas_toast .toast.info {
    background-color: var(--saas-color-info-light);
    border: 1px solid var(--saas-color-info);
}

.saas_toast .toast.info:before {
    content: url('/netcat_template/template/saas/assets/icons/info-circle.svg');
}


.saas_page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fefefea1;
    z-index: 999999999;
    display: none;
    justify-content: center;
    align-items: center;
}

.saas_page-loader .content {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: translate(-50%, -50%);
    top: 30%;
    left: 50%;
}

.saas_page-loader .spinner {
    position: absolute;
    left: 50%;
    top: 40%;
    content: "";
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    opacity: 1;
    border: 5px solid var(--tpl-color-brand);
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

.saas_page-loader .dots {
    display: none;
    width: 10px;
    aspect-ratio: 1;
    border-radius: 50%;
    animation: l5 1s infinite linear alternate;
}

.saas_page-loader .content .text {
    font-weight: 600;
    color: var(--tpl-color-brand);
}

@keyframes l5 {
    0% {
        box-shadow: 20px 0 var(--tpl-color-brand), -20px 0 var(--tpl-color-brand-lightest);
        background: var(--tpl-color-brand);
    }
    33% {
        box-shadow: 20px 0 var(--tpl-color-brand), -20px 0 var(--tpl-color-brand-lightest);
        background: var(--tpl-color-brand-lightest);
    }
    66% {
        box-shadow: 20px 0 var(--tpl-color-brand-lightest), -20px 0 var(--tpl-color-brand);
        background: var(--tpl-color-brand-lightest);
    }
    100% {
        box-shadow: 20px 0 var(--tpl-color-brand-lightest), -20px 0 var(--tpl-color-brand);
        background: var(--tpl-color-brand);
    }
}

.honeycombs {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.honeycombs li {
    border-radius: 50%;
    background: transparent;
    border: 1px solid #0089FA;
    width: 20px;
    height: 20px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.steps__buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.steps__buttons a {
    color: var(--color-light-grey);
    text-underline-offset: 4px;
}

.saas-progress-wrapper {
    display: flex;
    gap: 21px;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.saas-progress-bar {
    flex-grow: 1;
    height: 8px;
    background-color: var(--color-light-grey);
    border-radius: 4px;
    overflow: hidden;
}

.saas-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0089FA, #9747FF);
    transition: width 0.5s;
}

.brief-panel {
    max-width: 360px;
    width: 100%;
    background-color: #2C2F47;
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    padding: 80px 20px 60px 20px;
    color: #FFFFFF;
    overflow-y: auto;
    z-index: 9999;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    border-radius: 4px;
    background-color: #81848B;
    border-left: 3px solid #2C2F47;
    border-right: 3px solid #2C2F47;
}

::-webkit-scrollbar-thumb {
    cursor: pointer;
    border-radius: 8px;
    background-color: #8F92A8;
}

textarea::-webkit-scrollbar-track {
    border: 0;
}

textarea::-webkit-scrollbar-track {
    background-color: #5b5d6d;
}

.brief-heading {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    border-bottom: 1px solid #81848B;
}

.brief__heading-subtitle {
    color: #DBDBDB;
}

.brief__icon {
    margin-bottom: 3px;
}

.brief__items {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 40px;
}

.brief__item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.brief__item-title {
    color: #0089FA;
}

.brief__item-description {
    display: flex;
    flex-direction: column;
    gap: 10px;
/*    white-space: pre-wrap; */
    font-size: 14px !important;
}

.variants-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.variants-wrapper.checkbox-type .variant {
    display: flex;
    align-items: center;
    gap: 18px;
}

.variants-wrapper.checkbox-type textarea {
    padding: 12px 15px;
}

.variants-wrapper.checkbox-type input[type=checkbox] {
    width: 24px;
    height: 24px;
}

.variants-wrapper.button-type {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
}

.variants-wrapper.button-type button {
    color: #81848B !important;
    font-size: 12px !important;
    border: none;
}

.variants-wrapper.button-type button.selected {
    color: #FFFFFF !important;
    background-color: #0089FA !important;
    border-radius: 30px;
}

.own-variant {
    cursor: pointer;
    color: #DBDBDB;
    text-transform: uppercase;
}

.feelings .variants-wrapper {
    margin: 40px 0 60px 0;
}

.palettes-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
}

.palettes-wrapper .mock-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.palettes-wrapper .mock-container {
    position: relative;
    overflow: hidden;
    width: 285px;
    height: 200px;
    border-radius: 5px;
    box-shadow: 1px 1px 4px #00000026;
}

.mock__body {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin-left: 70px;
    margin-top: 37px;
}

.mock-container .mock__header {
    margin: 17px auto 16px 26px;
    width: 50px;
    height: 10px;
}

.mock-container .mock__subtitle {
    width: 100%;
    height: 29px;
}

.mock-container .mock__footer {
    width: 100%;
    height: 26px;
    margin: 47px auto 18px 41%;
}

.custom-select {
    position: relative;
    width: 285px;
}

.mock-select {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.font-select select {
    outline: none;
    padding: 8px 15px;
    border-radius: 10px;
    background-color: #FFFFFF;
    border: 1px solid #DBDBDB;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("/netcat_template/template/netcat_studio/assets/icons/chevron-down.svg");
    background-position: 95% center;
    background-repeat: no-repeat;
}

.font-select {
    position: relative;
    display: flex;
    gap: 4px;
}

.fonts__container {
    background-color: #E4E8EA;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: 50% 50%;
}

.fonts__container .mock__body {
    background-color: #F8FAFD;
    color: #000000;
}

.mock_body-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 30px 15px auto 40px;
}

.fonts__container .mock__header {
    margin: 0;
}

.fonts__container .mock__subtitle {
    font-weight: 400 !important;
}

.mock-select .selected {
    padding: 8px 15px;
    border-radius: 10px;
    background-color: #FFFFFF;
    border: 1px solid #DBDBDB;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.options {
    position: absolute;
    display: flex;
    gap: 5px;
    flex-direction: column;
    border-radius: 10px;
    background-color: white;
    border: 1px solid #ccc;
    width: fit-content;
    z-index: 1;
    padding: 8px 15px;
}

.options .option-group:hover {
    opacity: 0.7;
}

.option-group {
    display: flex;
    gap: 4px;
    cursor: pointer;
}

.option-color {
    height: 24px;
    width: 24px;
    border: 1px solid #DBDBDB;
    border-radius: 4px;
}

.hidden {
    display: none;
}

.handler__logo-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.logo-content__form-item-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.logo-content__item,
.logo-content__input-text {
    width: 100%;
}

.logo-content__item {
    display: flex;
    flex-direction: column;
}

.logo-content__input-text {
    margin-top: 4px;
}

.logo-content__logo {
    display: flex;
    gap: 15px;
}

.handler__logo-title {
    font-weight: bold !important;
}

.logo-upload-button {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    position: relative;
    box-sizing: border-box;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    width: max-content;
}

.logo-upload-button input {
    position: absolute;
    cursor: pointer;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
}

.logo-upload-button-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.logo-preview {
    display: none;
    margin: 20px 0;
    gap: 10px;
    align-items: flex-start;
}

.logo-preview .logo {
    background-position: 50% 50%;
    background-size: contain;
    background-repeat: no-repeat;
    padding-bottom: 15%;
    max-width: 100px;
    width: 100%;
}

.logo-parsed-preview {
    margin-bottom: 20px;
}

.logo-parsed-preview img {
    max-width: 200px;
}

.logo-remove-button {
    height: 10px;
    width: 10px;
    cursor: pointer;
}

.logo-content__heading {
    margin-bottom: 10px;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: #0089FA;
}

.btn-close {
    border: none !important;
}

.btn-close:focus {
    box-shadow: none !important;
}

.hidden {
    display: none !important;
}

.modal-dialog:not(.modal-fullscreen) {
    max-width: 370px !important;
    top: 20%;
}

.modal-header {
    border-bottom: none !important;
    padding: 0 !important;
}

.modal-content {
    border-radius: 20px;
    padding: 60px 40px;
}

.modal-dialog .tpl-text-header3 {
    margin-top: 0;
}

.modal-body {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.modal-footer {
    padding: 0 !important;
    justify-content: flex-start !important;
    border-top: none !important;
    gap: 30px;
}

.modal-header .btn-close:not(.modal-fullscreen .btn-close) {
    margin-left: auto !important;
    margin-right: 0 !important;
    padding: 5px !important;
    position: absolute;
    top: 0;
    right: -40px;
    z-index: 999999;
    background: url('/netcat_template/template/saas/assets/icons/close.svg') no-repeat !important;
    width: 24px !important;
    height: 24px !important;
}

.modal-footer button {
    margin: 0 !important;
}

.modal .saas-btn {
    width: 100%;
    text-align: center;
}

.modal .modal-body-content {
    margin: 30px 0;
}

.modal-body__title {
    margin-bottom: 30px;
}

.modal-subtitle {
    color: #81848B;
}

.form-label {
    margin-bottom: 4px;
}

.estimation-timer-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 15px;
    background-color: #0089FA;
}

.estimation-timer-text {
    color: #FFFFFF;
}

.sub-page {
    background: url("/netcat_template/template/netcat_studio/assets/bg-primary.webp") no-repeat center center/cover;
}

/* Когда открываем внутри админки сайта: */

body.inside-admin {
    padding: 50px;
}

body.inside-admin header,
body.inside-admin footer {
    display: none;
}
