.planner-form--wizard .planner-section[hidden],
.planner-form--wizard .planner-wizard__button[hidden],
.planner-form--wizard .planner-wizard__submit[hidden] {
    display: none !important;
}

.planner-wizard__progress {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.planner-wizard__progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.planner-wizard__progress-number {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-weight: 700;
}

.planner-wizard__progress-item.is-active {
    color: var(--planner-primary, #0b3159);
    font-weight: 700;
}

.planner-wizard__progress-item.is-complete {
    color: var(--planner-accent, #4f7f25);
}

.planner-wizard__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.planner-wizard__button {
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--planner-primary, #0b3159);
    background: #fff;
    color: var(--planner-primary, #0b3159);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.planner-wizard__next,
.planner-wizard__submit {
    margin-left: auto;
}

.planner-wizard__status {
    min-height: 24px;
    margin: 12px 0 0;
    color: #b42318;
    font-weight: 600;
}

@media (max-width: 640px) {
    .planner-wizard__progress-label {
        display: none;
    }
}

/** ------- **/

.planner-page-main:has(.planner-form--custom) {
    background: #BE5240;
}

.planner-form--custom {
    width: 100%;
}

.planner-form--custom .planner-wizard__progress {
    place-content: center;
    justify-content: space-around;
}

.planner-form--custom .planner-wizard__progress .planner-wizard__progress-item {
    color: #e8dad5bf;
    font-size: 17px;
    position: relative;
}

.planner-form--custom .planner-wizard__progress .planner-wizard__progress-item:after {
    content: "";
    width: 100%;
    position: absolute;
    height: 3px;
    background: #e8dad5bf;
    border-radius: 12px;
    bottom: -9px;
}

.planner-form--custom .planner-wizard__progress .planner-wizard__progress-item.is-active,
.planner-form--custom .planner-wizard__progress .planner-wizard__progress-item.is-complete {
    color: white
}

.planner-form--custom .planner-wizard__progress .planner-wizard__progress-item.is-active:after,
.planner-form--custom .planner-wizard__progress .planner-wizard__progress-item.is-complete:after {
    background: white;
}

/** Fase 1 **/
.planner-form--custom .planner-calendar__nav {
    color: white;
    margin-top: 40px;
    place-self: center;
}

.planner-form--custom .planner-section {
    margin-top: 4.5rem;
}

.planner-form--custom .planner-section .planner-section__title {
    color: white;
    border: 0;
    font-size: 30px;
    line-height: 35px;
    margin: 0;
    padding: 0;
}

.planner-form--custom .planner-section .planner-hint {
    color: #deb8b0;
    font-size: 14px;
}

.planner-form--custom .planner-section .planner-calendar .planner-calendar__panels {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.planner-form--custom .planner-section .planner-calendar .planner-calendar__panels .planner-month {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1 1 280px;
    max-width: 360px;
    padding: 1.1rem 1.25rem;
    background: var(--planner-teal);
    border-radius: 14px;
}

.planner-form--custom .planner-section .planner-calendar .planner-calendar__panels .planner-month h3 {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-align: center;
    color: #ffffff;
}

.planner-form--custom .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
}

.planner-form--custom .calendar-grid.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.planner-form--custom .calendar-grid.calendar-weekdays span {
    min-width: 0;
    padding: 8px 0;
    color: #FFFFFF;
    border: none;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    box-sizing: border-box;
    /* border: 1px solid */
}

.planner-form--custom .calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    background: transparent;
    color: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
    border: 1px solid;
    border-radius: 0px;
}

.planner-form--custom .calendar-day:hover,
.planner-form--custom .calendar-day.is-selected {
    background: #FFFFFF;
    color: #963B2F;
}

.planner-form--custom .calendar-day.is-in-range {
    background: rgb(255 255 255 / 22%);
}

.planner-form--custom .planner-section .planner-calendar .planner-calendar__selection {
    display: flex;
    width: 100%;
    justify-content: space-around;
    color: white;
}

/** FASE 2 **/
.planner-form--custom .planner-cards--perfil,
.planner-form--custom .planner-cards--interes,
.planner-form--custom .planner-cards--zona,
.planner-form--custom .planner-cards--days,
.planner-form--custom .planner-cards--filter {
    margin-top: 25px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.planner-form--custom .planner-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1.4;
    box-sizing: border-box;
    overflow: hidden;
    gap: 10px;
}

.planner-form--custom .planner-cards--interes .planner-card {
    aspect-ratio: 1 / 1;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem 1.1rem;
}

.planner-form--custom .planner-card.has-icon .planner-card__icon {
    position: absolute;
    top: 0;
    left: 0;
}

.planner-form--custom .planner-card .planner-card__label,
.planner-form--custom .planner-card.has-icon .planner-card__label {
    place-self: center;
    text-align: center;
    position: absolute;
    bottom: 13%;
    padding: 5px;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.2;
    z-index: 2;
    font-size: 1.2rem;
    font-weight: 800;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.planner-form--custom .planner-card.has-icon .planner-card__icon img {
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: none;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.planner-form--custom .planner-card.planner-card--big {
    aspect-ratio: 1/1;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem 1.1rem;
    transition: none;
}

.planner-form--custom .planner-card.planner-card--big .planner-card__label {
    place-self: center;
    text-align: center;
    position: absolute;
    bottom: 13%;
}

.planner-form--custom .planner-card.planner-card--big.has-img::after {
    background: linear-gradient(transparent 7%, rgba(0, 0, 0, 0.6));
}

.planner-form--custom .planner-card:has(input:checked) {
    color: white;
    border: 4px solid var(--planner-yellow);
    background: #5d6990;
    background-size: cover;
    background-position: center;
}

/** Buttons **/
.planner-form--custom .planner-wizard__actions {place-self: center;}

.planner-form--custom .planner-wizard__actions button {
    background: url(../../resources/v1/images/botton-02.svg) no-repeat 0 0;
    background-size: cover;
    width: 229px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Pretendard-Bold';
    font-size: 16px;
    line-height: 26px;
    color: #000000;
    transition: all .5s ease;
    border: none;
}

.planner-form--custom .planner-calendar__nav button {
    background: none;
    color: white;
    border: none;
    font-size: 23px;
}


/** Canvis Disseny **/
.planner-form--custom .planner-cards--interes {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.planner-form--custom .planner-cards--zona {
    gap: 16px;
}

@media (max-width: 640px) {
    .planner-form--custom .planner-cards--interes {
        grid-template-columns: repeat(2, 1fr);
    }
}

.planner-form--custom .planner-cards--interes .planner-card.has-icon,
.planner-form--custom .planner-cards--zona .planner-card--big.has-img {
    --planner-card-dark: #000;

    aspect-ratio: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 6px;
    background-color: #fff;
    border-radius: 10px;
    color: var(--planner-card-dark);
}

.planner-form--custom .planner-cards--zona .planner-card--big.has-img {
    background-size: 0 0;
    background-repeat: no-repeat;
}

.planner-form--custom .planner-cards--zona .planner-card--big.has-img::before {
    content: "";
    display: block;
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2px;
}

.planner-form--custom .planner-cards--zona .planner-card--big.has-img::after {
    content: none;
}

.planner-form--custom .planner-cards--interes .planner-card.has-icon:hover,
.planner-form--custom .planner-cards--zona .planner-card--big.has-img:hover {
    box-shadow: 0 8px 20px rgba(11, 71, 201, 0.25);
}

.planner-form--custom .planner-cards--interes .planner-card.has-icon .planner-card__icon {
    position: static;
    display: block;
    flex: none;
    width: 100%;
    aspect-ratio: 7 / 8;
    overflow: hidden;
    border-radius: 2px;
}

.planner-form--custom .planner-cards--interes .planner-card.has-icon .planner-card__icon img {
    border-radius: 0;
}

.planner-form--custom .planner-cards--interes .planner-card.has-icon .planner-card__label,
.planner-form--custom .planner-cards--zona .planner-card--big.has-img .planner-card__label {
    position: static;
    place-self: auto;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 3.2em;
    padding: 10px 6px 4px;
    color: var(--planner-card-dark);
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    text-shadow: none;
}

.planner-form--custom .planner-cards--interes .planner-card.has-icon:has(input:checked),
.planner-form--custom .planner-cards--zona .planner-card--big.has-img:has(input:checked) {
    background-color: #fff;
    border: 6px solid var(--planner-yellow);
    outline: none;
    color: var(--planner-card-dark);
}

.planner-form--custom .planner-cards--zona .planner-card--big.has-img:has(input:checked) {
    background-size: 0 0;
}

.planner-form--custom .planner-cards--interes .planner-card.has-icon:has(input:checked)::after,
.planner-form--custom .planner-cards--zona .planner-card--big.has-img:has(input:checked)::after {
    content: "✓";
    position: absolute;
    inset: 12px 12px auto auto;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: var(--planner-yellow);
    color: var(--planner-dark);
    font-weight: 800;
    border: 2px solid #fff;
    border-radius: 50%;
}

.planner-form--custom .planner-cards--interes .planner-card.has-icon:has(input:focus-visible),
.planner-form--custom .planner-cards--zona .planner-card--big.has-img:has(input:focus-visible) {
    outline: 3px solid var(--planner-yellow);
    outline-offset: 3px;
}

/** end Canvis Disseny **/