.collection-finder {
    position: relative;
    width: 100%;
    min-height: 660px;
    overflow: hidden;
    background: var(--violet);
    color: var(--violet);
}

.collection-finder__inner {
    display: flex;
    width: 100%;
    min-height: 660px;
}

.collection-finder__media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}

.collection-finder__media > .media,
.collection-finder__media > .media > .field,
.collection-finder__media .field__item {
    width: 100%;
    height: 100%;
}

.collection-finder__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 660px;
    object-fit: cover;
    object-position: left;
}

.collection-finder__panel {
    position: static;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 42%;
    min-height: 660px;
    margin-left: auto;
    padding: 70px 6% 105px 0;
}

/* TÍTULO ÚLTIMA PREGUNTA */

.collection-finder__title {
    display: none;
    width: 100%;
    max-width: 390px;
    margin: 0 0 24px;
    color: var(--light-pink);
    font-size: 50px;
    font-weight: 800;
    line-height: .95;
}

.collection-finder.is-last-step .collection-finder__title {
    display: block;
}

/* INTRO */

.collection-finder__intro,
.collection-finder__quiz,
.collection-finder__test {
    width: 100%;
}

.collection-finder__intro {
    max-width: 480px;
}

.collection-finder.is-intro .collection-finder__quiz,
.collection-finder.is-intro .collection-finder__test {
    display: none;
}

.collection-finder.is-test .collection-finder__intro {
    display: none;
}

.collection-finder__intro[hidden],
.collection-finder__quiz[hidden],
.collection-finder__test[hidden] {
    display: none !important;
}

.collection-finder__intro-title {
    margin: 0 0 28px;
    color: var(--light-pink);
    font-size: 62px;
    font-weight: 800;
    line-height: .92;
}

.collection-finder__intro-title span {
    font-family: var(--tertiary-font);
    font-weight: 800 !important;
}

.collection-finder__intro-card {
    width: 100%;
    padding: 20px;
    border-radius: 18px;
    background: white;
}

.collection-finder__intro-heading,
.collection-finder__intro-card-title {
    margin: 0 0 12px;
    color: var(--violet);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.08;
}

.collection-finder__intro-text {
    margin: 0;
    color: var(--violet);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.35;
}

.collection-finder__intro-text > *:first-child {
    margin-top: 0;
}

.collection-finder__intro-text > *:last-child,
.collection-finder__intro-text > *:last-child p {
    margin-bottom: 0;
}

.collection-finder__intro-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-right: 12px;
}

.collection-finder__start {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 38px;
    margin: 0;
    padding: 10px 18px;
    border: 0;
    border-radius: 20px;
    background: var(--light-pink);
    color: white;
    font-family: var(--tertiary-font);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    box-shadow: none;
    float: right;
    transition: opacity .2s ease;
}

.collection-finder__start:hover,
.collection-finder__start:focus {
    background: var(--light-purple);
    color: white;
    opacity: .9;
}

.collection-finder__start span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-finder__start img {
    display: block;
    width: 9px;
    height: 9px;
    min-height: 0;
    object-fit: contain;
    transform: rotate(-90deg);
}

/* FORMULARIO */

.collection-finder__form {
    position: static;
    width: 100%;
    max-width: 430px;
}

.collection-finder__form .field--name-field-finder-webform {
    margin: 0;
}

/*
 * Importante:
 * Drupal agrega contextual-region al formulario cuando el usuario
 * está autenticado y tiene acceso a enlaces contextuales.
 * Esa clase introduce position:relative y cambia el containing block
 * de la barra de progreso absoluta.
 */
.collection-finder__form .webform-submission-form,
.collection-finder__form .webform-submission-form.contextual-region {
    position: static !important;
    margin: 0;
}

/* PÁGINA ACTIVA */

.collection-finder__form .webform-submission-form > div[data-webform-key] {
    width: 100%;
    margin: 0;
    padding: 20px;
    border-radius: 17px;
    background: white;
}

.collection-finder__counter {
    margin: 0 0 18px;
    color: var(--violet);
    font-family: 'Gilroy';
    font-size: 28px;
    font-weight: 300;
    line-height: 1.2;
}

/* PREGUNTA */

.collection-finder__form .beautycare-collection-question-wrapper {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.collection-finder__form .beautycare-collection-question-wrapper legend {
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    float: none;
}

.collection-finder__form .beautycare-collection-question-wrapper .fieldset-legend {
    display: block;
    color: var(--violet);
    font-family: var(--tertiary-font);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.08;
}

.collection-finder__form .beautycare-collection-question-wrapper .form-required::after {
    display: none;
}

.collection-finder__form .fieldset-wrapper {
    margin: 0;
}

.collection-finder__form .form-radios {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

/* RESPUESTAS */

.collection-finder__form .form-check {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.collection-finder__form .form-check-input {
    position: relative;
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin: 5px 7px 0 0;
    border: 1px solid var(--violet);
    background: white;
    box-shadow: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.collection-finder__form .form-check-input[type="radio"] {
    margin: 0;
    border-radius: 50%;
}

.collection-finder__form .form-check-input[type="radio"]:checked {
    border: 4px solid var(--violet);
    background: white;
}

.collection-finder__form .form-check-input:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 2px rgba(88, 50, 122, .18);
}

.collection-finder__form .form-check-label {
    display: block;
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
    color: var(--violet);
    font-family: var(--primary-font);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.2;
    cursor: pointer;
}

.collection-finder__form .form-check:hover .form-check-label {
    opacity: .8;
}

/* VALIDACIÓN */

.collection-finder__inline-error {
    display: block;
    margin: 10px 0 0;
    padding: 0;
    color: red;
    font-family: var(--tertiary-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.collection-finder-has-error .fieldset-legend {
    color: var(--violet);
}

.collection-finder-has-error .form-check-input {
    border-color: var(--violet);
}

.collection-finder__form .form-item--error-message {
    margin: 8px 0 0;
    padding: 0;
    color: var(--violet);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

.collection-finder__recommendation-error {
    margin-top: 14px;
    color: red;
    line-height: 18px;
}

/* ACTIONS */

.collection-finder__form .form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 15px 12px 0 0;
    padding: 0;
}

.collection-finder__form .webform-button--next,
.collection-finder__form .webform-button--submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 20px;
    border: 0;
    border-radius: 30px;
    background: var(--light-pink);
    color: white;
    font-family: var(--tertiary-font);
    font-size: 14px;
    box-shadow: none;
}

.collection-finder__form .webform-button--next:hover,
.collection-finder__form .webform-button--next:focus,
.collection-finder__form .webform-button--submit:hover,
.collection-finder__form .webform-button--submit:focus {
    border: 0;
    background: var(--light-purple) !important;
    color: white;
    box-shadow: none;
}

.collection-finder__form input.webform-button--previous {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 20px;
    border: 1px solid var(--pink);
    border-radius: 30px;
    background: none !important;
    color: white;
    font-family: var(--tertiary-font);
    font-size: 14px;
    box-shadow: none;
}

.collection-finder__form input.webform-button--previous:hover,
.collection-finder__form input.webform-button--previous:focus {
    color: white;
    opacity: .5;
    box-shadow: none;
}

/* FLECHA */

.collection-finder-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--light-pink);
    font-family: var(--tertiary-font);
}

.collection-finder-action .collection-finder-action__button {
    padding-right: 40px;
    background: transparent;
}

.collection-finder-action__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.collection-finder-action > .collection-finder-action__icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
}

.collection-finder-action__icon img {
    display: block;
    width: 9px;
    height: 9px;
    min-height: 0;
    object-fit: contain;
    transform: rotate(-90deg);
}

/* AJAX */

.collection-finder__form .ajax-progress,
.collection-finder__form .ajax-progress-throbber,
.collection-finder__form .ajax-progress-fullscreen {
    display: none !important;
}

.collection-finder__form .webform-button--next:disabled,
.collection-finder__form .webform-button--submit:disabled,
.collection-finder__form .webform-button--next[disabled],
.collection-finder__form .webform-button--submit[disabled] {
    background: var(--light-pink) !important;
    color: white !important;
    opacity: 1 !important;
    cursor: default;
}

/* PROGRESO */

.collection-finder__form .webform-progress {
    position: absolute;
    z-index: 5;
    right: auto;
    bottom: 22px;
    left: 50%;
    width: 480px;
    max-width: calc(100% - 40px);
    margin: 0;
    transform: translateX(-50%);
}

.collection-finder__form .webform-progress__summary,
.collection-finder__form .progress-text,
.collection-finder__form .progress-title {
    display: none !important;
}

.collection-finder__form .webform-progress-tracker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 6px 34px;
    overflow: visible;
    border: 0;
    border-radius: 999px;
    background: rgba(43, 18, 72, .72);
    list-style: none;
}

.collection-finder__form .webform-progress-tracker .progress-step {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.collection-finder__form .webform-progress-tracker .progress-step::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: calc(50% + 10px);
    width: calc(100% - 20px);
    height: 1px;
    background: rgba(255, 255, 255, .65);
    transform: translateY(-50%);
}

.collection-finder__form .webform-progress-tracker .progress-step:last-child::after {
    display: none;
}

.collection-finder__form .webform-progress-tracker .progress-marker::before,
.collection-finder__form .webform-progress-tracker .progress-marker::after {
    display: none !important;
    content: none !important;
}

.collection-finder__form .webform-progress-tracker .progress-marker {
    position: relative;
    z-index: 3;
    display: block;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    padding: 0 !important;
    border: 1px solid var(--light-purple) !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 20px;
    box-shadow: none !important;
}

.collection-finder__form .webform-progress-tracker .progress-step.is-active .progress-marker,
.collection-finder__form .webform-progress-tracker .progress-step.is-complete .progress-marker {
    border-color: var(--light-purple) !important;
    background: var(--light-purple) !important;
}

.collection-finder__form .webform-progress-tracker .progress-step:not(.is-active):not(.is-complete) .progress-marker {
    border-color: var(--light-purple) !important;
    background: rgba(43, 18, 72, .9) !important;
}

/* TABLET */

@media(max-width:991px) {

    .collection-finder,
    .collection-finder__inner {
        min-height: 620px;
    }

    .collection-finder__panel {
        width: 48%;
        min-height: 620px;
        padding: 55px 28px 95px;
    }

    .collection-finder__title {
        font-size: 42px;
    }

    .collection-finder__intro-title {
        font-size: 44px;
    }

    .collection-finder__media img {
        min-height: 620px;
    }

    .collection-finder__form .webform-progress {
        right: auto;
        left: 50%;
        width: 380px;
        max-width: calc(100% - 40px);
        transform: translateX(-50%);
    }
}

@media(min-width:768px) and (max-width:900px) {

    .collection-finder__panel {
        width: 52%;
        padding: 50px 28px 95px;
    }

    .collection-finder__intro-title,
    .collection-finder__title {
        font-size: 40px;
    }

    .collection-finder__form .beautycare-collection-question-wrapper .fieldset-legend {
        font-size: 21px;
    }
}

/* MOBILE */

@media(max-width:767px) {

    .collection-finder {
        width: 100%;
        min-height: 0;
        overflow: hidden;
        background: var(--violet);
    }

    .collection-finder__inner {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        min-height: 0;
    }

    /* IMAGEN */

    .collection-finder__media {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        z-index: 1;
        width: 100%;
        height: 90vw;
        min-height: 320px;
        max-height: 390px;
        overflow: hidden;
    }

    .collection-finder__media > .media,
    .collection-finder__media > .media > .field,
    .collection-finder__media .field__item {
        width: 100%;
        height: 100%;
    }

    .collection-finder__media img {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
        object-position: 15% center;
    }

    /* PANEL */

    .collection-finder__panel {
        position: relative;
        z-index: 3;
        display: block;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0 16px 26px;
        background: var(--violet);
    }

    /* INTRO */

    .collection-finder__intro {
        position: relative;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .collection-finder__intro-title {
        position: absolute;
        z-index: 5;
        top: -90px;
        right: 0;
        left: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 12px;
        color: var(--pink);
        font-size: 34px;
        font-weight: 800;
        line-height: 1;
        text-align: center;
        pointer-events: none;
    }

    .collection-finder__intro-title::before {
        content: "";
        position: absolute;
        top: 0;
        display: block;
        width: 100%;
        height: 37px;
        background: #4b1d7d7d;
        filter: blur(11px);
    }

    .collection-finder__intro-card {
        position: relative;
        z-index: 4;
        width: 100%;
        margin: 0;
        padding: 24px 36px 22px;
        border-radius: 28px;
        background: white;
    }

    .collection-finder__intro-heading,
    .collection-finder__intro-card-title {
        margin: 0 0 16px;
        color: var(--violet);
        font-size: 22px;
        font-weight: 400;
        line-height: 1.12;
    }

    .collection-finder__intro-text {
        margin: 0;
        color: var(--violet);
        font-size: 15px;
        font-weight: 400;
        line-height: 1.45;
    }

    .collection-finder__intro-text > *:first-child {
        margin-top: 0;
    }

    .collection-finder__intro-text > *:last-child {
        margin-bottom: 0;
    }

    .collection-finder__intro-actions {
        display: flex;
        width: 100%;
        margin: 28px 0 0;
        padding: 0;
    }

    .collection-finder__start {
        justify-content: center;
        width: 100%;
        padding: 14px 20px;
        border-radius: 30px;
    }

    .collection-finder__start:hover,
    .collection-finder__start:focus {
        background: var(--light-pink);
        color: white;
    }

    .collection-finder__start img {
        width: 10px;
        height: 10px;
    }

    /* TEST */

    .collection-finder__quiz,
    .collection-finder__test {
        position: relative;
        width: 100%;
    }

    .collection-finder__title {
        position: absolute;
        z-index: 5;
        top: -80px;
        right: 0;
        left: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 10px;
        color: white;
        font-size: 34px;
        font-weight: 800;
        line-height: 1;
        text-align: center;
        text-shadow: 0 0 10px var(--purple);
    }

    .collection-finder__form {
        position: static;
        width: 100%;
        max-width: none;
    }

    /*
     * También en mobile evitamos que contextual-region
     * modifique el contexto de posicionamiento.
     */
    .collection-finder__form .webform-submission-form,
    .collection-finder__form .webform-submission-form.contextual-region {
        position: static !important;
    }

    /* PROGRESO */

    .collection-finder__form .webform-progress {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        max-width: none;
        margin: 0;
        transform: none;
    }

    .collection-finder__form .webform-progress-tracker {
        width: 100%;
        min-height: 34px;
        padding: 7px 32px;
    }

    .collection-finder__form .webform-progress-tracker .progress-marker {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px;
    }

    /* TARJETA */

    .collection-finder__form .webform-submission-form > div[data-webform-key] {
        width: 100%;
        margin: 0;
        padding: 24px 26px 22px;
        border-radius: 28px;
        background: white;
    }

    .collection-finder__counter {
        margin: 0 0 16px;
        color: var(--violet);
        font-size: 16px;
        font-weight: 300;
        line-height: 1.2;
    }

    .collection-finder__form .beautycare-collection-question-wrapper legend {
        margin: 0 0 18px;
    }

    .collection-finder__form .beautycare-collection-question-wrapper .fieldset-legend {
        color: var(--violet);
        font-size: 22px;
        font-weight: 400;
        line-height: 1.15;
    }

    /* RESPUESTAS */

    .collection-finder__form .form-radios {
        gap: 8px;
    }

    .collection-finder__form .form-check {
        display: flex;
        align-items: flex-start;
        width: 100%;
    }

    .collection-finder__form .form-check-input {
        flex: 0 0 auto;
        width: 16px;
        height: 16px;
        margin: 4px 9px 0 0;
    }

    .collection-finder__form .form-check-label {
        padding: 2px 0;
        color: var(--violet);
        font-size: 14px;
        line-height: 1.35;
    }

    /* VALIDACIÓN */

    .collection-finder__inline-error,
    .collection-finder__form .form-item--error-message {
        margin-top: 12px;
        font-size: 13px;
        line-height: 1.35;
    }

    /* BOTONES */

    .collection-finder__form .form-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        width: 100%;
        gap: 10px;
        margin: 20px 0 0;
        padding: 0;
    }

    .collection-finder__form .webform-button--next,
    .collection-finder__form .webform-button--submit {
        min-height: 44px;
        padding: 10px 35px 10px 20px;
        font-size: 13px;
    }

    .collection-finder__form .webform-button--previous {
        min-height: 44px;
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* MOBILE PEQUEÑO */

@media(max-width:480px) {

    .collection-finder__media {
        height: 90vw;
        min-height: 310px;
        max-height: 360px;
    }

    .collection-finder__media img {
        object-position: 35% center;
    }

    .collection-finder__panel {
        padding-right: 16px;
        padding-bottom: 24px;
        padding-left: 16px;
    }

    .collection-finder__intro-title,
    .collection-finder__title {
        font-size: 32px;
    }

    .collection-finder__intro-card {
        padding: 20px;
        border-radius: 10px;
    }

    .collection-finder__intro-heading,
    .collection-finder__intro-card-title {
        margin-bottom: 14px;
        font-size: 23px;
    }

    .collection-finder__intro-text {
        font-size: 17px;
        line-height: 1.45;
    }

    .collection-finder__intro-actions {
        margin-top: 28px;
    }

    .collection-finder__start {
        min-height: 58px;
        font-size: 17px;
    }

    .collection-finder__form .webform-submission-form > div[data-webform-key] {
        padding: 23px 22px 21px;
        border-radius: 27px;
    }

    .collection-finder__form .beautycare-collection-question-wrapper .fieldset-legend {
        font-size: 21px;
    }

    .collection-finder__form .form-check-label {
        font-size: 13px;
    }
}