/* Formulari del planificador per passos (planner-plug/planner-form.php). Es carrega després de planner.css del plugin. */

/* PAGINA START */
.planner-page-main {clear: both;background: #f4f4f4;color: #fff;}
.planner-page-inner { padding-top: 60px; padding-bottom: 80px; }
.planner-page-main .planner-page-title,
.planner-page-main .planner-form__title {color: #0b0b0b;line-height: 26px;font-size: 25px;}
/* PAGINA END */

/* ASSISTENT START */
.planner-form--wizard .planner-section[hidden],
.planner-form--wizard .planner-wizard__button[hidden],
.planner-form--wizard .planner-wizard__submit[hidden] { display: none; }
.planner-form--wizard .planner-section:focus { outline: none; }

.planner-wizard__progress { display: flex; justify-content: space-around; gap: 12px; margin: 0 0 50px; padding: 0; list-style: none; }
.planner-wizard__progress[hidden] { display: none; }
.planner-wizard__progress-item {position: relative;display: flex;align-items: center;gap: 10px;padding-bottom: 14px;color: rgb(0 0 0 / 33%);font-size: 16px;font-weight: 700;}
.planner-wizard__progress-item::after {content: "";position: absolute;left: 0;right: 0;bottom: 0;height: 3px;border-radius: 3px;background: rgb(204 202 203);}
.planner-wizard__progress-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 2px solid currentColor; border-radius: 50%; }
.planner-wizard__progress-item.is-active,
.planner-wizard__progress-item.is-complete {color: #000000a3;}
.planner-wizard__progress-item.is-active::after { background: var(--planner-yellow); }
.planner-wizard__progress-item.is-complete::after { background: #fff; }
.planner-wizard__progress-item.is-complete .planner-wizard__progress-number { background: #fff; color: #182A3F; border-color: #fff; }

.planner-form--custom .planner-section__title { color: #fff; border-bottom-color: rgba(255,255,255,0.25); }
.planner-form--custom .planner-hint { color: rgba(255,255,255,0.75); }

.planner-wizard__actions { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.planner-wizard__actions .planner-wizard__button,
.planner-wizard__actions .planner-submit { margin: 0; padding: 0.95rem 2.6rem; border-radius: 10px; font: inherit; font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.planner-wizard__prev { background: transparent; color: #fff; border: 2px solid #fff; }
.planner-wizard__prev:hover { background: rgba(255,255,255,0.1); }
.planner-wizard__next { background: var(--planner-yellow); color: #182A3F; border: 2px solid var(--planner-yellow); }
.planner-wizard__next:hover { filter: brightness(0.96); }
.planner-wizard__actions .planner-submit { border: 2px solid var(--planner-yellow); }
.planner-wizard__actions button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.planner-wizard__status { min-height: 24px; margin: 16px 0 0; text-align: center; color: #FFB4A8; font-weight: 700; }
/* ASSISTENT END */

/* CALENDARI START */
.planner-calendar__nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 25px 0 20px; color: #fff; font-weight: 700; text-transform: capitalize; }
.planner-calendar__nav button { width: 40px; height: 40px; border: 2px solid rgba(255,255,255,0.4); border-radius: 50%; background: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.planner-calendar__nav button:hover { border-color: #fff; }
.planner-calendar__panels { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.planner-month { flex: 1 1 280px; max-width: 380px; padding: 18px 20px; background: rgba(255,255,255,0.06); border-radius: 14px; }
.planner-month__title { margin: 0 0 10px; text-align: center; text-transform: uppercase; font-size: 14px; font-weight: 800; letter-spacing: 0.06em; color: #fff; }
.planner-form--custom .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.planner-form--custom .calendar-weekdays span { padding: 6px 0; text-align: center; text-transform: uppercase; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.7); }
.planner-form--custom .calendar-day { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; min-width: 0; padding: 0; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; background: transparent; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.planner-form--custom .calendar-day:hover { border-color: var(--planner-yellow); }
.planner-form--custom .calendar-day.is-in-range { background: rgba(244,164,0,0.3); border-color: transparent; }
.planner-form--custom .calendar-day.is-selected { background: var(--planner-yellow); border-color: var(--planner-yellow); color: #182A3F; font-weight: 800; }
.planner-form--custom .calendar-day:disabled { opacity: 0.3; cursor: default; border-color: transparent; }
.planner-form--custom .calendar-day:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.planner-calendar__selection { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; margin-top: 20px; color: #fff; }
/* CALENDARI END */

/* TARGETES START */
.planner-form--custom .planner-card { background-color: #fff; color: #182A3F; }
.planner-form--custom .planner-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.planner-form--custom .planner-card:has(input:checked) { background-color: var(--planner-yellow); color: #182A3F; }
.planner-form--custom .planner-card:has(input:focus-visible) { outline-color: #fff; }
.planner-form--custom .planner-card--big:not(.has-img) .planner-card__label { text-shadow: none; }
.planner-form--custom .planner-card--big.has-img { color: #fff; }
/* TARGETES END */

/* TARGETES AMB IMATGE START */
.planner-form--custom .planner-cards--perfil,
.planner-form--custom .planner-cards--interes { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.planner-form--custom .planner-cards--zona { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.planner-form--custom .planner-card--big { aspect-ratio: 1; }

.planner-form--custom .planner-card.has-icon { align-items: flex-end; justify-content: flex-start; padding: 0; background: #182A3F; border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.planner-form--custom .planner-card.has-icon .planner-card__icon { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.planner-form--custom .planner-card.has-icon .planner-card__icon img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.planner-form--custom .planner-card.has-icon .planner-card__label { position: relative; z-index: 2; width: 100%; box-sizing: border-box; padding: 0 14px 14px; text-align: left; font-size: 1.05rem; font-weight: 700; color: #fff; white-space: normal; overflow-wrap: break-word; }
.planner-form--custom .planner-card.has-icon:has(input:checked) { background: #182A3F; color: #fff; border: 4px solid var(--planner-yellow); }

.planner-form--custom .planner-cards--zona .planner-card--big.has-img { aspect-ratio: auto; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 6px; background-color: #fff; background-size: 0 0; background-repeat: no-repeat; border-radius: 10px; color: #182A3F; }
.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: 6px; }
.planner-form--custom .planner-cards--zona .planner-card--big.has-img::after { content: none; }
.planner-form--custom .planner-cards--zona .planner-card--big.has-img .planner-card__label { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-height: 3.2em; padding: 10px 6px 4px; color: #182A3F; text-align: center; text-shadow: none; }
.planner-form--custom .planner-cards--zona .planner-card--big.has-img:has(input:checked) { background-color: #fff; background-size: 0 0; border: 6px solid var(--planner-yellow); outline: none; color: #182A3F; }

.planner-form--custom .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: #182A3F; font-weight: 800; border: 2px solid #fff; border-radius: 50%; }
.planner-form--custom .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; }
/* TARGETES AMB IMATGE END */

@media (max-width: 767px) {
	.planner-page-inner { padding-top: 40px; padding-bottom: 50px; }
	.planner-wizard__progress { margin-bottom: 35px; }
	.planner-wizard__progress-label { display: none; }
	.planner-wizard__actions { gap: 10px; }
	.planner-wizard__actions .planner-wizard__button,
	.planner-wizard__actions .planner-submit { padding: 0.85rem 1.4rem; font-size: 0.95rem; }
	.planner-month { padding: 14px; }
	.planner-form--custom .planner-cards--perfil,
	.planner-form--custom .planner-cards--interes,
	.planner-form--custom .planner-cards--zona { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/** JIRA DENIA-143 **/
.planner-page-main h1.planner-page-title { font-size: 55px; font-family: 'Gordita-Bold'; line-height: 56px; margin: 0px; }

.planner-wizard__actions .planner-wizard__button,
.planner-wizard__actions .planner-submit {
    color: #ffffff;
    text-transform: capitalize !important;
    font-size: 20px !important;
    font-family: 'Gordita-Bold';
}

.planner-form {
    padding-top: 15px;
}

.planner-form--custom .planner-section__title {
    color: var(--planner-dark-2);
    font-size: 28px;
    font-family: 'Gordita-Bold';
    text-transform: math-auto;
}

.planner-wizard__progress-item.is-complete::after {
    background: #cccacb;
}

.planner-form--custom .planner-cards--perfil,
.planner-form--custom .planner-cards--interes,
.planner-form--custom .planner-cards--filter,
.planner-form--custom .planner-cards--days {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.planner-form--custom .planner-cards--perfil > *,
.planner-form--custom .planner-cards--interes > *,
.planner-form--custom .planner-cards--filter > *,
.planner-form--custom .planner-cards--days > * {
    flex: 0 1 calc(25% - 12px);
    min-width: 160px;
}

.planner-form--custom .planner-card:has(input:checked) .planner-card__label {
    color: white;
}

.planner-form--custom .planner-card.has-icon .planner-card__icon {
    align-items: center;
    min-height: 0;
    position: static;
    display: block;
    flex: none;
    width: 100%;
    aspect-ratio: 7 / 8;
    overflow: hidden;
    border-radius: 2px;
    height: auto;
}

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

.planner-form--custom .planner-card.has-icon, .planner-form--custom .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: 0px;
    background-color: #fff;
    border-radius: 10px;
    color: var(--planner-card-dark);
    box-shadow: 1px 1px 7px 3px rgba(0, 0, 0, 0.2);
}

.planner-form--custom .planner-card.has-icon .planner-card__label {
    color: #000000;
    padding: 15px;
    text-align: center;
    font-family: 'Gordita-Regular';
}

.planner-form--custom .planner-card.has-icon:has(input:checked) {
    background: var(--planner-yellow);
}

.planner-wizard__prev {
    color: var(--planner-yellow) !important;
    border: 2px solid var(--planner-yellow);
}

.planner-form--custom .planner-card.has-icon:has(input:checked)::after, .planner-form--custom .planner-cards--zona .planner-card--big.has-img:has(input:checked)::after {
    color: #fff;
}

/*** SINGLE ***/
main.planner-page-main.planner-plan-main {
    float: left;
    width: 100%;
}

.planner-mail-open {
    color: white;
    font-family: 'Gordita-Bold';
    font-size: 16px;
}

.planner-result-card__media {
    aspect-ratio: 16/20;
}

.single-plan .planner-page-main h1.planner-page-title {
    font-size: 30px;
}

.single-plan .planner-page-main h2,
.planner-cards-result__header h2 {
    padding: 30px 0 0;
    color: #000;
}

.single-plan .planner-cards-result__header .planner-mail-action {
    display: none;
}