/* Tailor Made — multi-step enquiry form */
.tailor-made-section {
    padding: 2.75rem 0 4.5rem;
    background-color: var(--pt-bg, #0a0a0a);
}

.tailor-made-container {
    width: 100%;
    max-width: 52rem;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.tailor-made-container .tour-breadcrumbs {
    text-align: center;
    margin-bottom: 1.25rem;
}

.tailor-made__header {
    margin-bottom: 2rem;
    text-align: center;
}

.tailor-made__header .cursive-subtitle {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.tailor-made__title {
    font-family: var(--pt-font-display, 'Source Sans 3', sans-serif);
    font-size: clamp(1.85rem, 4.5vw, 2.5rem);
    color: #fff;
    margin: 0.35rem auto 0.85rem;
    font-weight: 700;
    line-height: 1.15;
    max-width: 28ch;
}

.tailor-made__intro {
    color: var(--pt-muted, #a3a3a3);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 44rem;
}

.tailor-made__steps {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 44rem;
    margin-inline: auto;
    margin-bottom: 1.75rem;
    list-style: none;
    padding: 0;
    counter-reset: tm-step;
}

.tailor-made__step-indicator {
    flex: 1;
    text-align: center;
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(250, 204, 21, 0.2);
    background: var(--pt-surface, #161616);
    color: var(--pt-muted, #a3a3a3);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tailor-made__step-indicator.is-active {
    border-color: var(--pt-yellow, #facc15);
    color: #fff;
    background: rgba(250, 204, 21, 0.08);
}

.tailor-made__step-indicator.is-done {
    color: var(--pt-yellow, #facc15);
}

.tailor-made-form {
    width: 100%;
    margin-inline: auto;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.25rem 0 0;
    box-shadow: none;
}

.tailor-made-form__panel {
    display: none;
}

.tailor-made-form__panel.is-active {
    display: block;
}

.tailor-made-form__panel-title {
    font-family: var(--pt-font-display, 'Source Sans 3', sans-serif);
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 1.35rem;
    font-weight: 700;
    text-align: center;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(250, 204, 21, 0.15);
}

.tailor-made-field {
    margin-bottom: 1.5rem;
    border: none;
    padding: 0;
    margin-inline: 0;
    min-width: 0;
}

.tailor-made-field > legend,
.tailor-made-field > label:first-child {
    display: block;
    float: none;
    width: 100%;
    padding: 0;
    font-weight: 700;
    color: #f0f0f0;
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
}

.tailor-made-field__hint {
    display: block;
    font-size: 0.85rem;
    color: var(--pt-muted, #a3a3a3);
    margin: -0.35rem 0 0.65rem;
    font-weight: 400;
}

.tailor-made-field--inline {
    display: grid;
    grid-template-columns: minmax(7.5rem, 38%) minmax(0, 1fr);
    gap: 0.65rem 1rem;
    align-items: center;
}

.tailor-made-field--inline > label:first-child {
    width: auto;
    margin-bottom: 0;
    text-align: left;
    line-height: 1.35;
}

.tailor-made-field--inline .tailor-made-input--wide {
    max-width: none;
    justify-self: stretch;
}

html[data-theme="light"] .tailor-made-field--inline > label:first-child {
    color: #0f172a;
}

.tailor-made-date-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.tailor-made-date-row select {
    flex: 1;
    min-width: 5.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(250, 204, 21, 0.25);
    background: var(--pt-surface-2, #1c1c1c);
    color: #f8fafc;
    font-size: 0.95rem;
}

.tailor-made-choice-grid--adults-row .tailor-made-choice__box {
    font-size: 0.72rem;
    padding: 0.5rem 0.3rem;
    min-height: 3.1rem;
}

.tailor-made-adults-other {
    display: flex;
    align-items: center;
    min-height: 3.1rem;
    min-width: 0;
}

.tailor-made-adults-other__input {
    width: 100%;
    max-width: none;
    min-height: 3.1rem;
    box-sizing: border-box;
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
}

.tailor-made-adults-other__input::placeholder {
    font-weight: 600;
    opacity: 0.85;
}

.tailor-made-input {
    width: 100%;
    max-width: 12rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(250, 204, 21, 0.25);
    background: var(--pt-surface-2, #1c1c1c);
    color: #f8fafc;
    font-size: 0.95rem;
}

.tailor-made-input--wide {
    max-width: 100%;
}

.tailor-made-choice-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    border: none;
    padding: 0;
    margin: 0;
}

.tailor-made-choice-grid--fill-3,
.tailor-made-choice-grid--fill-4,
.tailor-made-choice-grid--fill-5,
.tailor-made-choice-grid--fill-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 520px) {
    .tailor-made-choice-grid {
        gap: 0.65rem;
    }

    .tailor-made-choice-grid--fill-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tailor-made-choice-grid--fill-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tailor-made-choice-grid--fill-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .tailor-made-choice-grid--fill-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.tailor-made-choice-grid--adults-row .tailor-made-choice__box,
.tailor-made-choice-grid--children .tailor-made-choice__box,
.tailor-made-choice-grid--activities .tailor-made-choice__box,
.tailor-made-choice-grid--diet .tailor-made-choice__box {
    font-size: 0.76rem;
    padding: 0.55rem 0.35rem;
    min-height: 3.1rem;
}

.tailor-made-choice-grid--wide .tailor-made-choice__box {
    font-size: 0.84rem;
}

.tailor-made-choice {
    position: relative;
    display: block;
    width: 100%;
    cursor: pointer;
}

.tailor-made-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tailor-made-choice__box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 3.25rem;
    padding: 0.65rem 0.5rem;
    text-align: center;
    border-radius: 8px;
    border: 1px solid rgba(250, 204, 21, 0.22);
    background: var(--pt-surface-2, #1c1c1c);
    color: #e8e8e8;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tailor-made-choice:hover .tailor-made-choice__box {
    border-color: rgba(250, 204, 21, 0.45);
}

.tailor-made-choice input:focus-visible + .tailor-made-choice__box {
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25);
}

.tailor-made-choice input:checked + .tailor-made-choice__box,
.tailor-made-choice.is-selected .tailor-made-choice__box {
    border-color: var(--pt-yellow, #facc15);
    background: rgba(250, 204, 21, 0.12);
    color: #fff;
}

.tailor-made-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.75rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(250, 204, 21, 0.12);
}

.tailor-made-form__actions .btn-primary {
    min-width: min(100%, 15rem);
    padding: 0.9rem 2.5rem !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 10px !important;
    border-color: #a16207 !important;
    background: linear-gradient(180deg, #fde047 0%, #eab308 45%, #ca8a04 100%) !important;
    color: #0a0a0a !important;
    box-shadow:
        0 10px 26px rgba(234, 179, 8, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tailor-made-form__actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 32px rgba(234, 179, 8, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tailor-made-form__actions:has(.tailor-made-btn-secondary) .btn-primary {
    min-width: 11rem;
    flex: 1 1 11rem;
    max-width: 16rem;
}

.tailor-made-form__actions:has(.tailor-made-btn-secondary) .tailor-made-btn-secondary {
    flex: 1 1 9rem;
    max-width: 12rem;
}

.tailor-made-btn-secondary {
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(250, 204, 21, 0.35);
    background: transparent;
    color: #f8fafc;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--pt-font-display, 'Source Sans 3', sans-serif);
}

.tailor-made-btn-secondary:hover {
    border-color: var(--pt-yellow, #facc15);
    color: var(--pt-yellow, #facc15);
}

.tailor-made-form__diet-extra {
    margin-top: 0.75rem;
    display: none;
}

.tailor-made-form__diet-extra.is-visible {
    display: block;
}

.tailor-made-field--schedule {
    margin-bottom: 1.5rem;
}

.tailor-made-schedule-row {
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    width: 100%;
}

.tailor-made-schedule-row .tailor-made-checkbox-row {
    flex: 0 1 38%;
    min-width: 0;
    align-items: center;
    margin: 0;
}

.tailor-made-form__call-extra {
    display: none;
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
}

.tailor-made-form__call-extra.is-visible {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.tailor-made-form__diet-extra label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #f0f0f0;
    margin-bottom: 0.5rem;
}

html[data-theme="light"] .tailor-made-form__diet-extra label {
    color: #0f172a;
}

.tailor-made-call-schedule {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    max-width: 20rem;
}

.tailor-made-call-schedule .tailor-made-input {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}

.tailor-made-call-schedule__note,
.tailor-made-form__call-note {
    margin: 0.5rem 0 0;
    padding-left: calc(38% + 1rem);
    font-size: 0.8rem;
    color: var(--pt-muted, #a3a3a3);
    line-height: 1.45;
}

.tailor-made-form__call-note[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .tailor-made-schedule-row {
        flex-wrap: wrap;
    }

    .tailor-made-schedule-row .tailor-made-checkbox-row {
        flex: 1 1 100%;
    }

    .tailor-made-form__call-extra.is-visible {
        flex: 1 1 100%;
        justify-content: stretch;
    }

    .tailor-made-call-schedule {
        max-width: none;
    }

    .tailor-made-call-schedule__note,
    .tailor-made-form__call-note {
        padding-left: 0;
    }
}

@media (max-width: 520px) {

    .tailor-made-field--inline {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .tailor-made-field--inline > label:first-child {
        margin-bottom: 0.15rem;
    }
}

.tailor-made-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    color: #e8e8e8;
    font-size: 0.95rem;
}

.tailor-made-checkbox-row input {
    margin-top: 0.2rem;
    accent-color: var(--pt-yellow, #facc15);
}

.tailor-made-form__message textarea {
    width: 100%;
    min-height: 6rem;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(250, 204, 21, 0.25);
    background: var(--pt-surface-2, #1c1c1c);
    color: #f8fafc;
    font-size: 0.95rem;
    resize: vertical;
    font-family: inherit;
}

.tailor-made-form__success {
    display: none;
    padding: 1.25rem;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
    margin-top: 1rem;
}

.tailor-made-form__success.is-visible {
    display: block;
}

.tailor-made-form__error {
    color: #fca5a5;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    display: none;
}

.tailor-made-form__error.is-visible {
    display: block;
}

html[data-theme="light"] .tailor-made-section {
    background-color: var(--as-page-bg, #f4f4f5);
}

html[data-theme="light"] .tailor-made__title {
    color: #0f172a;
}

html[data-theme="light"] .tailor-made-form {
    background: transparent;
    border: none;
    box-shadow: none;
}

html[data-theme="light"] .tailor-made-form__panel-title {
    border-bottom-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .tailor-made-form__actions {
    border-top-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .tailor-made__intro {
    color: var(--pt-muted);
}

html[data-theme="light"] .tailor-made-form__panel-title,
html[data-theme="light"] .tailor-made-field > legend,
html[data-theme="light"] .tailor-made-field > label:first-child {
    color: #0f172a;
}

html[data-theme="light"] .tailor-made-choice__box,
html[data-theme="light"] .tailor-made-date-row select,
html[data-theme="light"] .tailor-made-input,
html[data-theme="light"] .tailor-made-form__message textarea {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.22);
    color: #0f172a;
}

html[data-theme="light"] .tailor-made-choice:hover .tailor-made-choice__box {
    border-color: #ca8a04;
    background: #fffbeb;
    color: #0f172a;
}

html[data-theme="light"] .tailor-made-choice input:focus-visible + .tailor-made-choice__box {
    box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.35);
}

html[data-theme="light"] .tailor-made-choice input:checked + .tailor-made-choice__box,
html[data-theme="light"] .tailor-made-choice.is-selected .tailor-made-choice__box {
    background: #fde68a;
    border-color: #a16207;
    color: #0a0a0a;
    box-shadow: 0 2px 10px rgba(161, 98, 7, 0.2);
}

html[data-theme="light"] .tailor-made-btn-secondary {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.25);
    background: #ffffff;
}

html[data-theme="light"] .tailor-made-btn-secondary:hover {
    color: #a16207;
    border-color: #ca8a04;
    background: #fffbeb;
}

html[data-theme="light"] .tailor-made-form__actions .btn-primary {
    border-color: #a16207 !important;
    background: linear-gradient(180deg, #fde047 0%, #eab308 45%, #ca8a04 100%) !important;
    color: #0a0a0a !important;
    box-shadow:
        0 10px 26px rgba(161, 98, 7, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-theme="light"] .tailor-made-checkbox-row {
    color: #0f172a;
}

html[data-theme="light"] .tailor-made__step-indicator {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #64748b;
}

html[data-theme="light"] .tailor-made__step-indicator.is-active {
    border-color: #ca8a04;
    color: #0f172a;
    background: rgba(250, 204, 21, 0.15);
}

@media (max-width: 640px) {
    .tailor-made-section {
        padding-top: 2rem;
    }

    .tailor-made__title {
        max-width: none;
    }

    .tailor-made__step-indicator {
        font-size: 0.65rem;
        padding: 0.5rem 0.25rem;
    }

    .tailor-made-choice-grid--adults-row .tailor-made-choice__box,
    .tailor-made-choice-grid--children .tailor-made-choice__box,
    .tailor-made-choice-grid--activities .tailor-made-choice__box,
    .tailor-made-choice-grid--diet .tailor-made-choice__box {
        font-size: 0.68rem;
        min-height: 3rem;
        padding: 0.5rem 0.3rem;
        line-height: 1.2;
    }

    .tailor-made-adults-other__input {
        min-height: 3rem;
        font-size: 0.68rem;
    }

    .tailor-made-form__actions {
        justify-content: stretch;
    }

    .tailor-made-form__actions .btn-primary,
    .tailor-made-form__actions .tailor-made-btn-secondary {
        flex: 1 1 auto;
        text-align: center;
    }
}
