/* =========================================================
   YLIG APARTMENT CHECKLIST
   ========================================================= */

.ylig-apartment-checklist {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 15px;
    color: #171717;
    font-family: inherit;
}

.ylig-apartment-checklist *,
.ylig-apartment-checklist *::before,
.ylig-apartment-checklist *::after {
    box-sizing: border-box;
}


/* =========================================================
   TOP STEP SWITCHER
   ========================================================= */

.ylig-apartment-stepper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 0;
}

.ylig-apartment-stepper-line {
    position: absolute;
    top: 17px;
    left: 16.66%;
    right: 16.66%;
    height: 1px;
    background: #d8d8d8;
    z-index: 0;
}


/* Step buttons */

.ylig-apartment-stepper-item,
.ylig-apartment-stepper-item:hover,
.ylig-apartment-stepper-item:focus,
.ylig-apartment-stepper-item:active {
    position: relative;
    z-index: 2;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 100% !important;
    min-height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;

    color: #777777 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.3 !important;

    text-transform: none !important;

    cursor: pointer;
}

.ylig-apartment-stepper-item:disabled {
    opacity: 1 !important;
    background: transparent !important;
}


/* Step number */

.ylig-apartment-stepper-number {
    position: relative;
    z-index: 3;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 34px !important;
    height: 34px !important;

    margin: 0 0 9px !important;
    padding: 0 !important;

    border: 1px solid #d7d7d7 !important;
    border-radius: 50% !important;

    background: #ffffff !important;

    color: #888888 !important;

    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}


/* Active step number */

.ylig-apartment-stepper-item.ylig-is-active
.ylig-apartment-stepper-number {
    border-color: #FFA7C7 !important;
    background: #FFA7C7 !important;
    color: #ffffff !important;
}


/* Step labels */

.ylig-apartment-stepper-label {
    display: block;

    color: #777777 !important;

    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;

    white-space: nowrap;
}


/* Active step label */

.ylig-apartment-stepper-item.ylig-is-active
.ylig-apartment-stepper-label {
    color: #171717 !important;
    font-weight: 600 !important;
}


/* =========================================================
   STEP PANELS
   ========================================================= */

.ylig-apartment-step-panel {
    display: none;
}

.ylig-apartment-step-panel.ylig-is-active {
    display: block;
}


/* =========================================================
   INTRO
   ========================================================= */

.ylig-apartment-intro {
    margin-bottom: 40px;
}

.ylig-apartment-step-tag {
    display: inline-block;

    margin-bottom: 10px;

    color: #FFA7C7;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ylig-apartment-intro h2 {
    margin: 0 0 12px;

    color: #171717;

    font-size: 34px;
    font-weight: 500;
    line-height: 1.15;
}

.ylig-apartment-intro p {
    max-width: 700px;

    margin: 0;

    color: #555555;

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   QUESTIONS
   ========================================================= */

.ylig-apartment-question {
    margin-bottom: 42px;
}


/* Question heading */

.ylig-apartment-question-title {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 18px;
}


/* Question number */

.ylig-apartment-question-number {
    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin: 0;

    border-radius: 50%;

    background: #FFA7C7;

    color: #ffffff !important;

    font-size: 17px;
    font-weight: 600;
}


/* Question text */

.ylig-apartment-question-title h3 {
    margin: 0;

    color: #171717;

    font-size: 24px;
    font-weight: 500;

    line-height: 1.25;
}


/* =========================================================
   ANSWER OPTIONS
   ========================================================= */

.ylig-apartment-options {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;

    width: 100%;
}

.ylig-apartment-options-icon_cards {
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
}


/* =========================================================
   OPTION CARDS
   ========================================================= */

.ylig-apartment-option {
    position: relative;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 92px;

    margin: 0 !important;
    padding: 18px 14px !important;

    border: 1px solid #dddddd !important;
    border-radius: 8px !important;

    background: #ffffff !important;

    color: #222222 !important;

    text-align: center;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Hover */

.ylig-apartment-option:hover {
    border-color: #FFA7C7 !important;
    background-color: #ffffff !important;
}


/* Selected option */

.ylig-apartment-option.ylig-is-selected {
    border: 1px solid #FFA7C7 !important;
    background-color: #FFF0F5 !important;

    box-shadow:
        0 0 0 1px #FFA7C7 !important;
}


/* Selected option using actual radio state */

.ylig-apartment-option:has(
    input[type="radio"]:checked
) {
    border: 1px solid #FFA7C7 !important;
    background-color: #FFF0F5 !important;

    box-shadow:
        0 0 0 1px #FFA7C7 !important;
}


/* Hide native radio */

.ylig-apartment-option input {
    position: absolute;

    width: 1px;
    height: 1px;

    margin: 0;

    opacity: 0;

    pointer-events: none;
}


/* =========================================================
   CUSTOM RADIO
   ========================================================= */

.ylig-apartment-radio {
    display: block;

    width: 19px;
    height: 19px;

    margin-bottom: 9px;

    border: 1.5px solid #999999;

    border-radius: 50%;

    background: #ffffff;
}


/* Selected radio */

.ylig-apartment-option.ylig-is-selected
.ylig-apartment-radio,
.ylig-apartment-option:has(
    input[type="radio"]:checked
)
.ylig-apartment-radio {
    border: 5px solid #FFA7C7 !important;
}


/* =========================================================
   QUESTION 1 ICON CARDS
   ========================================================= */

.ylig-apartment-options-icon_cards
.ylig-apartment-option {
    min-height: 145px;

    padding: 20px 12px !important;
}


/* Icon */

.ylig-apartment-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 12px;
}

.ylig-apartment-option-icon svg {
    width: 39px;
    height: 39px;

    fill: none;

    stroke: #171717;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Selected icon */

.ylig-apartment-option.ylig-is-selected
.ylig-apartment-option-icon svg,
.ylig-apartment-option:has(
    input[type="radio"]:checked
)
.ylig-apartment-option-icon svg {
    stroke: #171717 !important;
}


/* Option label */

.ylig-apartment-option-label {
    display: block;

    color: #222222 !important;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.4;
}


/* =========================================================
   CONTINUE BUTTON
   ========================================================= */

.ylig-apartment-navigation {
    display: flex;
    justify-content: flex-end;

    margin-top: 10px;
    padding-top: 30px;

    border-top: 1px solid #eeeeee;
}


.ylig-apartment-continue,
.ylig-apartment-continue:hover,
.ylig-apartment-continue:focus,
.ylig-apartment-continue:active {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    gap: 12px;

    min-width: 175px;

    padding: 15px 28px !important;

    border: 0 !important;
    border-radius: 30px !important;

    background: #FFA7C7 !important;

    color: #ffffff !important;

    font-family: inherit !important;

    font-size: 15px !important;
    font-weight: 600 !important;

    cursor: pointer;
}


/* =========================================================
   PLACEHOLDER PANELS
   ========================================================= */

.ylig-apartment-placeholder {
    padding: 60px 30px;

    border: 1px solid #eeeeee;
    border-radius: 10px;

    background: #ffffff;

    text-align: center;
}

.ylig-apartment-placeholder h2 {
    margin: 0 0 12px;

    color: #171717;

    font-size: 32px;
}

.ylig-apartment-placeholder p {
    margin: 0;

    color: #666666;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1000px) {

    .ylig-apartment-options-icon_cards {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .ylig-apartment-options {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 650px) {

    .ylig-apartment-checklist {
        padding: 25px 20px;
    }

    .ylig-apartment-stepper {
        margin-bottom: 40px;
    }

    .ylig-apartment-stepper-label {
        font-size: 12px !important;
    }

    .ylig-apartment-stepper-line {
        left: 16%;
        right: 16%;
    }

    .ylig-apartment-intro h2 {
        font-size: 29px;
    }

    .ylig-apartment-question-title h3 {
        font-size: 21px;
    }

    .ylig-apartment-options,
    .ylig-apartment-options-icon_cards {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 430px) {

    .ylig-apartment-checklist {
        padding: 20px 15px;
    }

    .ylig-apartment-stepper {
        gap: 0;
    }

    .ylig-apartment-stepper-number {
        width: 32px !important;
        height: 32px !important;
    }

    .ylig-apartment-stepper-label {
        font-size: 11px !important;
    }

    .ylig-apartment-question-title {
        align-items: flex-start;
    }

    .ylig-apartment-question-number {
        flex-basis: 34px;

        width: 34px;
        height: 34px;
    }

    .ylig-apartment-question-title h3 {
        font-size: 19px;
    }

    .ylig-apartment-options,
    .ylig-apartment-options-icon_cards {
        grid-template-columns: 1fr;
    }

}