.stories__desc-items {
    margin-bottom: 6px;
}

.stories__desc-items li {
    font-weight: 400;
    font-size: 16px;
}

.stories__tabs {
    margin: 0 auto 90px auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tabs-header {
    display: flex;
}

.tabs-header__item {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--inactive-bg-color);
    font-weight: 400;
    font-size: 14px;
    color: var(--inactive-text-color);
    border: none;
    padding: 0 24px;
}

.tabs-header__item--active {
    font-weight: 500;
    background: var(--active-bg-color);
    color: var(--secondary-color);
    position: relative;
}

.tabs-header__item--active::after {
    background-image: url("../../../../img/active-tab-icon.svg");
    background-repeat: no-repeat;
    background-size: 100%;
    position: absolute;
    content: "";
    width: 41px;
    height: 17px;
    bottom: -4px;
    left: 50%;
    transform: translate(-50%);
}

.stories__tabs-content {
    border: 1px solid var(--stroke-color);
    background: var(--secondary-bg-color);
    max-width: 794px;
    width: 100%;
    padding: 44px 65px;
    margin: 0 auto;
}

.section-title {
    margin-bottom: 16px;
}

.rating-list {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.field-interviewprocessform-overall_rating {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.field-interviewprocessform-overall_rating .col-lg-12 {
    display: flex;
    justify-content: center;
}

.rating-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

.rating-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 28px;
    height: 28px;
    transition: transform .12s ease, color .12s ease;
    color: var(--active-bg-color);
}

.rating-label:hover,
.rating-label:focus {
    transform: scale(1.06);
}

.rating-star {
    width: 21px;
    height: 21px;
    display: block;
}

.rating-input:checked + .rating-label,
.rating-input:checked ~ .rating-item .rating-label {
    color: var(--primary-color);
}

.captcha-wrapper .form-control {
    width: 100%;
    margin-bottom: 0;
}

.rating-label svg {
    fill: #8c929c !important;
}

.rating-input:checked + .rating-label svg {
    fill: #fcbf04 !important;
}

/* Image upload styles */
.drag-over {
    border: 2px dashed var(--primary-color) !important;
    padding: 12px;
    margin: 0 -12px;
}

.image-preview-item img {
    border: 2px solid var(--stroke-color);
    border-radius: 4px;
}

.image-preview-item .badge {
    font-size: 0.7em;
}

.images-label {
    font-weight: 400;
    font-size: 13px;
    color: var(--secondary-font-color);
    margin-bottom: 9px;
}

.create-stories__title {
    font-weight: 400;
    font-size: 32px;
    line-height: 125%;
    margin-bottom: 16px;
    text-align: center;
}

.create-stories__desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
}

.stories__create-review-info {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--medium-blue);
    border-radius: 10px;
    padding: 12px 16px 16px;
    background: var(--light-blue);
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: var(--primary-color);
}

.form-block {
    border: 1px solid var(--stroke-color);
    background: var(--secondary-bg-color);
    border-radius: 20px;
    padding: 24px 32px;
}

.form-block + .form-block {
    margin-top: 20px;
}

.form-block .form-control--grey {
    border: none !important;
}

.form-block .control-label {
    font-weight: 400;
    font-size: 14px;
    line-height: 171%;
    color: var(--light-font-color);
    margin-bottom: 4px;
}

.form-block__step {
    border-radius: 66px;
    padding: 10px 8px;
    width: 24px;
    height: 24px;
    background: var(--light-blue);
    font-weight: 400;
    font-size: 14px;
    line-height: 171%;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-block__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 22px;
    line-height: 145%;
    color: var(--dark-font-color);
    margin-bottom: 20px;
}

.form-block span.select2-selection.select2-selection--single {
    box-shadow: none !important;
    background: var(--dark-bg-color) !important;
    border: none !important;
}

.create-stories-form {
    max-width: 608px;
    margin: 0 auto 48px auto;
    width: 100%;
}

.form-block__options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-block__radio-wrapper input {
    width: 0;
}

.form-block__radio-wrapper {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    display: inline-block;
    border-radius: 100%;
    border: 2px solid var(--light-font-color);
    margin-right: 15px;
}

.form-block__option {
    cursor: pointer;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    display: flex;
    align-items: center;

    border: 1px solid var(--stroke-color);
    border-radius: 10px;
    padding: 12px 16px;
}

.form-block__option b {
    color: var(--dark-font-color);
    font-weight: 400;
}

.form-block__option-desc {
    white-space: pre-wrap;
}

.form-block__option--active {
    background: var(--light-blue);
    border: 1px solid var(--medium-blue);
}

.form-block__option--active .form-block__radio-wrapper {
    border: 5px solid var(--primary-dark-color);
    background: var(--secondary-bg-color);
}

.form-block .required .control-label::after {
    content: ' *';
    color: var(--dark-red);
    position: relative;
}

.form-block__fields-row {
    display: flex;
    gap: 20px;
}

.form-block__fields-row > * {
    width: calc(50% - 10px);
}

.form-block__options--row {
    display: flex;
    gap: 16px;
    flex-direction: row;
}

.form-block__policy {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    line-height: 150%;
}

.form-block .btn-primary {
    max-width: 305px;
    width: 100%;
    height: 48px;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    margin: 0 auto;
    display: block;
}

.form-block .story-page__captcha-wrapper {
    margin: 0 auto 12px auto;
    max-width: 305px;
    width: 100%;
}

.form-block .story-page__captcha-wrapper .error-text {
    top: unset;
}


@media (max-width: 680px) {
    .form-block__option-desc {
        display: none;
    }

    .form-block__fields-row {
        flex-direction: column;
        gap: 0;
    }

    .form-block__fields-row > * {
        width: 100%;
    }

    .form-block {
        padding: 20px 16px;
    }

    .form-block__options--row {
        flex-wrap: wrap;
    }

}

@media (max-width: 550px) {
    .stories__tabs-content {
        padding: 24px 25px;
    }

    .stories__create-review-info {
        align-items: start;
    }
}