.online-quiz {
    width: 100%;
    padding: 60px 20px;
    background-color: #FFFFFF;
}

.online-quiz__header {
    max-width: 1296px;
    margin: 0 auto 32px;
}
.percent-pink {
        font-weight: 500;
    color: #ED1E79;
}
.online-quiz__footer{
        display: flex;
        gap:10px;
      margin-top: 30px;
    justify-content: space-between;
}
.online-quiz__title {
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 500;
    font-size: 34px;
    line-height: 1.3em;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #353535;
    margin: 0 0 18px 0;
}

.online-quiz__subtitle {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4em;
    color: #353535;
    margin: 0;
}

.online-quiz__container {
    max-width: 1296px;
    margin: 0 auto;
    background-color: #F6F8FA;
    border-radius: 14px;
    padding: 40px;
    display: flex;
    flex-direction: column;

}

.online-quiz__instruction {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.2em;
    color: #353535;
    margin: 0;
    margin-bottom:20px;
}

.online-quiz__content {
    position: relative;
    min-height: 400px;
    margin-bottom:32px;
    border-top: 2px solid #FFFFFF;
    padding-top: 20px;
    margin-left: -40px;
    margin-right: -40px;
    padding-left: 40px;
    padding-right: 40px;
}

.online-quiz__step {
    display: none;
    flex-direction: column;
    gap: 18px;
    animation: fadeIn 0.3s ease;
}

.online-quiz__step--active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.online-quiz__question-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.online-quiz__question-number {
    width: 34px;
    height: 34px;
border: 1px solid #ED1E79;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1em;
    color: #ED1E79;
    flex-shrink: 0;
}

.online-quiz__question {
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1.3em;
    color: #353535;
    margin: 0;
}

.online-quiz__question-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.online-quiz__question-subtitle {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4em;
    color: #353535;
    margin: 0;
}

.online-quiz__options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.online-quiz__options--three {
    grid-template-columns: repeat(3, 1fr);
}

.online-quiz__options--gift {
}

.online-quiz__option {
    display: block;
    cursor: pointer;
}

.online-quiz__option-input {
    display: none;
}

.online-quiz__option-content {
    position: relative;
    background-color: #FFFFFF;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.online-quiz__option:hover .online-quiz__option-content {
    border-color: #ED1E79;
    box-shadow: 0px 4px 15px rgba(237, 30, 121, 0.1);
}

.online-quiz__option-input:checked + .online-quiz__option-content {
  
    border-color: #ED1E79;
}

.online-quiz__option-checkmark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #BFC8D0;
    transition: color 0.3s ease;
}

.online-quiz__option-input:checked + .online-quiz__option-content .online-quiz__option-checkmark {
    color: #FFFFFF;
}

.online-quiz__option-checkmark svg {
    width: 24px;
    height: 24px;
}

.online-quiz__option-image {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.online-quiz__option-img {

    object-fit: contain;
    padding: 20px;
}

.online-quiz__option-image--logo {
    background-color: #FFFFFF;
    padding: 30px 20px;
}

.online-quiz__option-image--logo .online-quiz__option-img {
    padding: 0;
    max-width: 80%;
    max-height: 80%;
}

.online-quiz__option-image--icon {
    background-color: #FFFFFF;
    padding: 40px 20px;
    height: 200px;
}

.online-quiz__option-image--icon .online-quiz__option-img {
    padding: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.online-quiz__option-label-wrapper {
    padding: 20px 20px;
    border-radius: 14px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
        border: 1px solid;
}

.online-quiz__option-input:checked + .online-quiz__option-content .online-quiz__option-label-wrapper {
    background-color: #ED1E79;
    border: none;
}

.online-quiz__option-dot {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    display: block;
    transition: opacity 0.3s ease;
}

.online-quiz__option-label {
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2em;
    color: #353535;
    text-align: center;
    display: block;
    transition: color 0.3s ease;
}

.online-quiz__option-input:checked + .online-quiz__option-content .online-quiz__option-label {
    color: #FFFFFF;
}

.online-quiz__progress {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width:78%;
}

.online-quiz__progress-bar {
    width: 100%;
    height: 8px;
    background-color: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
}

.online-quiz__progress-fill {
    height: 100%;
    background-color: #ED1E79;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.online-quiz__progress-text {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2em;
    color: #353535;
    margin: 0;
    white-space: nowrap;
}

.online-quiz__progress-percent {
    font-weight: 500;
    color: #ED1E79;
}

.online-quiz__navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.online-quiz__button {
    padding: 0;
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2em;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
}

.online-quiz__button--prev {
    border-radius: 50%;
}

.online-quiz__button--next {
    background-color: #ED1E79;
    border-radius: 6px;
    width: auto;
    padding: 13px 23px;
    gap: 10px;
}

.online-quiz__button-text {
    font-weight: 400;
    line-height:140%;
}

.online-quiz__button:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.online-quiz__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.online-quiz__button--prev {
    color: #FFFFFF;
}

.online-quiz__button--prev:hover:not(:disabled) {

}

.online-quiz__button--prev .online-quiz__button-text {
    display: none;
}

.online-quiz__button-arrow {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
online-quiz__button-arrow-left{
        width: 39px;
    height: 39px;
}
.online-quiz__privacy {
    display: none;
    align-items: flex-start;
    gap: 12px;
}

.online-quiz__privacy--visible {
    display: flex;
}

.online-quiz__privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.online-quiz__checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #ED1E79;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.online-quiz__checkbox:checked {
    background-color: #ED1E79;
    border-color: #ED1E79;
}

.online-quiz__checkbox:checked::before {
    content: '✓';
    display: block;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    line-height: 16px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.online-quiz__privacy-text {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4em;
    color: #353535;
}

.online-quiz__privacy-link {
    color: #353535;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.online-quiz__privacy-link:hover {
    color: #ED1E79;
}

.online-quiz__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.online-quiz__form-row {
    display: grid;
       grid-template-columns: 1fr 1fr 1.5fr;
    gap: 20px;
}

.online-quiz__form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.online-quiz__form-label {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4em;
    color: #353535;
}

.online-quiz__form-input,
.online-quiz__form-select,
.online-quiz__form-textarea {
    width: 100%;
    padding: 11px;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.0em;
    color: #696464;
    background-color: #FFFFFF;
    border: 1px solid #000000;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.online-quiz__form-input:focus,
.online-quiz__form-select:focus,
.online-quiz__form-textarea:focus {
    outline: none;
    border-color: #ED1E79;
    box-shadow: 0px 0px 0px 3px rgba(237, 30, 121, 0.1);
}

.online-quiz__form-input::placeholder,
.online-quiz__form-textarea::placeholder {
    color: #BFC8D0;
}

.online-quiz__form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23353535' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
    cursor: pointer;
    color: #000000;
}

.online-quiz__form-textarea {
    resize: vertical;
    min-height: 200px;
}

/* Адаптивность формы */
@media screen and (max-width: 1199px) {
    .online-quiz__form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .online-quiz__form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .online-quiz-3 .online-quiz__option-content{
        min-height:120px !important;
    }
    .online-quiz__form {
        gap: 16px;
    }
}

.online-quiz__modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.online-quiz__modal--show {
    display: flex;
}

.online-quiz__modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.online-quiz__modal-content {
    position: relative;
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.online-quiz__modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.online-quiz__modal-close:hover {
    opacity: 0.7;
}

.online-quiz__modal-close svg {
    width: 24px;
    height: 24px;
}

.online-quiz__modal-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.online-quiz__modal-icon svg {
    width: 100%;
    height: 100%;
}

.online-quiz__modal-title {
    font-family: 'Rubik', Arial, sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3em;
    color: #353535;
    margin: 0;
}

.online-quiz__modal-text {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    color: #353535;
    margin: 0;
}

/* Мобильные стили для модального окна */
@media screen and (max-width: 767px) {
    .online-quiz__modal-content {
        padding: 32px 24px;
        max-width: 90%;
    }
    
    .online-quiz__modal-title {
        font-size: 24px;
    }
    
    .online-quiz__modal-text {
        font-size: 14px;
    }
    
    .online-quiz__modal-icon {
        width: 64px;
        height: 64px;
    }
}

/* Планшет (768px - 1199px) */
@media screen and (max-width: 1199px) {
    .online-quiz__title {
        font-size: 40px;
    }
    
    .online-quiz__container {
        padding: 32px 24px;
    }
    
    .online-quiz__content {
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .online-quiz__options {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .online-quiz__question {
        font-size: 24px;
    }
}

/* Мобильный (до 767px) */
@media screen and (max-width: 767px) {
    .online-quiz {
        padding: 40px 16px;
    }
    
    .online-quiz__title {
        font-size: 26px;
    }
    .online-quiz__header{
        margin-bottom:60px;
                padding: 0 20px;
    }
    .online-quiz__subtitle {
        font-size: 16px;
    }
    
    .online-quiz__container {
        padding: 24px 16px;
        gap: 24px;
    }
    
    .online-quiz__content {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .online-quiz__question {
        font-size: 20px;
    }
    
    .online-quiz__question-number {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    .online-quiz__option-label{
        font-size: 14px;
    }
    .online-quiz__option-dot{
        display:none;
    }
    .online-quiz__options {
        
        
    }
    .online-quiz-3 .online-quiz__option-img{
        
    }
    .online-quiz__option-image {
        height: 200px;
    }
    
    .online-quiz__navigation {
          justify-content: right;
        gap: 12px;
    }
    .online-quiz__footer{
        gap:18px;
        margin-top: 0px;
          flex-flow: column-reverse;
    }
    .online-quiz__progress{
        width:unset;
    }
    .online-quiz__options.online-quiz__options--two {
    grid-template-columns: repeat(1, 1fr) !important;
}
    .online-quiz-3 .online-quiz__option-label-wrapper{
        padding: 0 15px !important;
        height:34px;
        text-align:center;
    }
    .online-quiz__button {

    }
}

