body {
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
}

div {
    box-sizing: border-box;
}

* {
    font-family: 'Open Sans', serif;
}

.wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
    padding-bottom: 30px;
}

.row {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.wizard { 
	background-image: url(../../../../../uploads/2025/06/bg.png);
    background-color: #161615;
    background-size: cover;
}

.wizard__header {
    justify-content: space-between;
    align-items: center;
    justify-content: center;
}

.form__wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.logo__right {
    width: 300px;
	display: none;
}

.logo__text {
    font-size: 16px;
    color: #323E48;
    text-align: center;
}

.logo__text span {
    margin-left: 4px;
    font-weight: bold;
}

.logo__text b {
    color: #d53f8c;
}

.form {
    width: 100%;
    padding: 20px;
    border-radius: 30px;
    background: #fff;
}

.form__breadcrumbs {
    display: flex;
    gap: 10px;
}

.form__breadcrumbs p {
    font-size: 16px;
    color: #323E48;
}

.stepper {
    align-items: center;
    justify-content: center;
}

.stepper__title {
    font-size: 32px;
    margin: 15px 0;
    font-weight: 500;
    color: #323E48;
}

.stepper__title span {
    color: #d53f8c;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.step__circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #d53f8c;
    justify-content: center;
}

.step__circle_active {
    background: #d53f8c;
}

.step__title {
    font-size: 14px;
    margin-top: 4px;
    color: #323E48;
}

.steps {
    width: 90%;
    margin: 0 auto;
}

.steps__wrapper {
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.steps__line {
    position: absolute;
    top: 25%;
    z-index: 1;
    left: 10px;
    width: calc(100% - 20px);
    background: #edf2f7;
    height: 2px;
}

.steps__line_filled {
    background: #d53f8c;
    width: 0;
}

.steps__button {
    height: 40px;
    min-width: 110px;
    margin-left: 20px;
    border-radius: 8px;
    background: #d53f8c;
    color: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.steps__button:hover {
    transition: 0.1s ease;
    filter: brightness(0.9);
}

.steps__button img {
    margin-left: 6px;
}

.content {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 30px;
}

.content__item {
    display: none;
    padding: 0 40px 40px 40px;
}

.content__item_active {
    display: flex;
}

.content__item_photos {
    flex-direction: column;
}

.content__item_photos h2 {
    font-size: 24px;
    color: #323E48;
    margin: 10px 0;
}

.content__image {
    width: 300px
}

.content__image img {
    min-width: 300px;
    width: 100%;
}

.content__form {
    margin-left: 50px;
}

.content__form h2 {
    font-size: 24px;
    color: #323E48;
}

.content__form textarea {
    font-size: 14px;
    box-sizing: border-box;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #cdcdcd;
    resize: none;
    width: 400px;
    height: 90px;
}

.content__fieldset {
    display: flex;
    flex-direction: column;
    border: none;
    background-color: transparent;
    gap: 15px;
}

.content__option {
    display: flex;
    gap: 5px;
}

.content__option label {
    font-size: 20px;
}

/* Hide the native radio input */
.content__option input {
    display: none;
}

/* Style the label to look like a custom radio button */
.custom-radio-label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 16px;
    line-height: 20px;
}

/* Create the custom radio circle */
.custom-radio-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #cdcdcd;
    border-radius: 50%;
    background-color: #fff;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Create the inner filled circle for the checked state */
.custom-radio-label::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 7px;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Change styles when the radio button is checked */
.custom-radio:checked + .custom-radio-label::before {
    border-color: #d53f8c;
    background-color: #d53f8c;
}

.custom-radio:checked + .custom-radio-label::after {
    opacity: 1;
}

.content__icons {
    width: 100px;
    margin-right: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content__icons_big {
    width: 200px;
    min-width: 200px;
    margin-right: 0;
}

.content__photos {
    display: flex;
}

.content__photos h2 {
    font-size: 20px;
    color: #323E48;
    margin: 10px 0;
    font-weight: 500;
}

.content__icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content__icon p {
    font-size: 14px;
    margin-top: 5px;
    color: #323E48;
    text-align: center;
}

.icon__wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgb(255, 248, 251);
    display: flex;
    color: #d53f8c;
    align-items: center;
    justify-content: center;
}

.content__photo {
    width: 165px;
    height: 220px;
    background-color: rgb(245, 247, 251);
    display: flex;
    border-radius: 12px;
    flex-direction: column;
    border: 1px solid #cdcdcd;
    overflow: hidden;
}

.content__form_upload {
    width: auto;
}

.content__form_upload h4 {
    width: auto;
}

.upload__box {
    position: relative;
    margin-left: 15px;
    width: 165px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    transition: border-color 0.3s ease;
    overflow: hidden;
    border-radius: 12px;
    border: 2px dashed #EDF2F7;
}

.upload__box_small {
    height: 100px;
    margin-left: 0;
}

.upload__box:hover {
    border-color: #007bff;
}

.upload__box .button__upload {
    width: 100%;
    height: 100%;
    background: transparent;
    color: #8994a1;
    border: none;
    cursor: pointer;
}

.attached {
    background: #e8eef9;
    border: 2px dashed #0056b3;
}

.dragover {
    border-color: #007bff;
}

.upload__box:hover {
    background: transparent;
    border: 2px dashed #0056b3;
}

.row__multiple {
    margin-top: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.preview {
    margin-top: 20px;
    display: flex;
    position: absolute;
    flex-wrap: wrap;
    gap: 10px;
}

.preview img {
    max-width: 158px;
    border-radius: 4px;
}

.button__delete {
    position: absolute;
    top: calc(100% / 2 - 20px);
    left: calc(100% / 2 - 20px);
    cursor: pointer;
    height: 40px;
    background-color: rgba(0,0,0,0.7);
    border: none;
    width: 40px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.button__delete:hover {
    transition: 0.1s ease;
    background-color: rgba(0,0,0,0.8);
}

.button__delete img {
    border: none;
}

.content__icons_big {
}

.content__icons_big p {
    font-size: 13px;
    color: #323E48;
}

.content__icons_big span {
    color: #d53f8c;
}

.content__pro {
    padding: 10px;
    border-radius: 8px;
}

.content__pro_filled {
    background: rgb(245, 247, 251);
    color: #fff;
}

.teeth__box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.teeth__box img {
    width: calc(100% / 6 - 10px);
}

.preview__multiple {
    position: static;
    margin-top: 0;
    gap: 10px;
    display: flex;
}

.preview__item {
    position: relative;
    width: 165px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
    transition: border-color 0.3s ease;
    overflow: hidden;
    border-radius: 12px;
    border: 2px dashed #EDF2F7;
    background: #eee;
}

.preview__item:last-child {
    margin-right: 10px;
}

.preview__item img {
    width: 100%;
}

.button__upload span {
    font-size: 22px;
}

.content__form_intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    margin: 0;
    width: 100%;
}

.content__form_intro h2 {
    font-size: 24px;
    color: #323E48;
    text-align: center;
    font-weight: 600;
}

.content__form_intro p {
    font-size: 16px;
    color: #323E48;
    text-align: center;
    max-width: 630px;
    margin-bottom: 20px;
}

.content__form_intro ol {
    display: flex;
    gap: 40px;
    padding: 0;
    margin-top: 0;
    margin-bottom: 30px;
}

.content__form_intro li {
    color: #323E48;
}

#controls {
    display: none;
    flex-direction: column;
}

#step6, #errorStep, #loadingStep {
    min-height: 50vh;
}

@media (max-width: 1250px) {
    .container {
        width: 768px;
    }

    .content__image {
        width: 150px;
    }

    .content__image img {
        min-width: 150px;
    }

    .content__form h2 {
        font-size: 20px;
        margin-top: 0;
    }

    .teeth__box img {
        width: calc(100% / 3 - 10px);
    }
}

@media (max-width: 790px) {
    .content__item {
        padding: 0 20px 20px 20px;
    }
    .container {
        width: 100%;
    }

    .logo__text {
        font-size: 14px;
    }

    .content__form textarea {
        width: 100%;
    }
    .content__photos {
        flex-direction: column;
    }
    .content__icons {
        display: flex;
        width: 100%;
        justify-content: space-between;
        margin: 0;
        flex-direction: row;
    }

    .content__form_upload {
        margin: 0;
    }

    .content__icons_big {
        flex-wrap: wrap;
    }

    .teeth__box {
        margin-top: 20px;
    }
}

@media (max-width: 550px) {
    .stepper__title {
        font-size: 24px;
    }

    .steps__wrapper {
        display: none;
    }

    .content__image {
        display: none;
    }

    .content__form {
        margin: 0;
    }

    .steps {
        width: auto;
    }

    .navbar {
        display: flex;
        align-items: center;
    }

    .content__item {
        padding: 0;
    }

    .content {
        margin-top: 0;
    }

    .content__form h2 {
        text-align: center;
    }

    .upload__box_small {
        width: calc(50% - 10px);
    }

    .preview__item {
        width: calc(50% - 10px);
    }

    .content__form_intro ol {
        list-style-type: none;
    }

    .content__form_intro li {
        text-align: center;
    }

    .logo {
        padding: 10px;
        height: auto;
    }

    .content__icons_big h2 {
        width: 100%;
        text-align: center;
    }
}
