/* ==========================================================================
   Tailor-made page (/tailormade) — tm- prefix; depends on departures.css + tours-all.css
   ========================================================================== */
.tm-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 32px;
    align-items: start;
}
.dp .tm-grid:before, .dp .tm-grid:after { display: none !important; } /* bootstrap .container clearfix would become grid items */
.tm-main { min-width: 0; }

.tm-steps {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    counter-reset: step;
}
.tm-steps li {
    position: relative;
    padding: 20px 18px 18px;
    border: 1px solid var(--hx-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
}
.tm-steps span {
    display: inline-flex;
    width: 32px; height: 32px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--hx-yellow);
    color: #151919;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}
.tm-steps strong { display: block; color: #fff; font-size: 15px; margin-bottom: 6px; }
.tm-steps p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--hx-text); }

.tm-about { margin-bottom: 28px; }
.tm-about__text { columns: 1; }
.tm-about__text p { margin: 0 0 14px; }

.tm-custom { margin-bottom: 28px; }
.tm-custom__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.tm-custom__list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--hx-line);
    border-radius: 10px;
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, .03);
}
.tm-custom__list i { color: var(--hx-yellow); font-size: 12px; }

.tm-types { margin: 0 0 8px; }

/* ---------- form ---------- */
.tm-form { position: sticky; top: 80px; }
.tm-form__card {
    background: #fff;
    color: #151919;
    border-radius: 14px;
    border-top: 4px solid var(--hx-yellow);
    padding: 22px 24px 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    scroll-margin-top: 80px;
}
.tm-form__card .hx-eyebrow { color: #8a6f00; }
.tm-form__card h2 { margin: 0 0 6px; font-size: 21px; font-weight: 700; color: #151919; }
.tm-form__intro { margin: 0 0 16px; font-size: 13px; color: #6b7070; line-height: 1.6; }

.tm-alert {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
}
.tm-alert i { margin-top: 2px; }
.tm-alert--ok { background: #e8f6ea; color: #1d6b2a; }
.tm-alert--err { background: #fdecec; color: #a12222; }

.tm-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tm-field { grid-column: span 6; min-width: 0; }
.tm-field--half { grid-column: span 3; }
.tm-field--third { grid-column: span 2; }
.tm-field label, .tm-field legend {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #3a3f3f;
    margin: 0 0 5px;
    padding: 0;
    border: 0;
}
.tm-field label em { color: #c9a400; font-style: normal; }
.tm-field input:not([type="checkbox"]),
.tm-field textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d9dcdc;
    border-radius: 8px;
    background: #fff;
    color: #151919;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tm-field input::placeholder, .tm-field textarea::placeholder { color: #9aa3a3; }
.tm-field input:focus, .tm-field textarea:focus { outline: 0; border-color: var(--hx-yellow); box-shadow: 0 0 0 3px rgba(255, 208, 0, .25); }
.tm-field.has-error input, .tm-field.has-error textarea { border-color: #d64545; }
.tm-field small { display: block; margin-top: 4px; font-size: 12px; color: #a12222; }
.tm-field textarea { resize: vertical; min-height: 110px; }
.tm-field input[type="date"] { min-width: 0; padding-left: 7px; padding-right: 4px; font-size: 13px; }
.tm-interests { margin: 0; padding: 0; border: 0; min-width: 0; }
.tm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-chip { position: relative; cursor: pointer; margin: 0; }
.tm-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tm-chip span {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid #d9dcdc;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #3a3f3f;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.tm-chip:hover span { border-color: #b8bcbc; }
.tm-chip input:checked + span { background: #151919; border-color: #151919; color: var(--hx-yellow); }
.tm-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(255, 208, 0, .35); }
.tm-hp { position: absolute; left: -9999px; top: -9999px; }
.tm-submit { grid-column: span 6; justify-content: center; padding: 12px 18px; font-size: 14px; }
.tm-form__note { grid-column: span 6; margin: 0; font-size: 11px; color: #8a8f8f; text-align: center; }

.tm-contact { margin-top: 18px; padding: 18px 22px; border: 1px solid var(--hx-line); border-radius: 14px; }
.tm-contact ul { list-style: none; margin: 0; padding: 0; }
.tm-contact li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; }
.tm-contact li i { width: 18px; color: var(--hx-yellow); text-align: center; line-height: 1; }
.tm-contact a { color: #fff !important; }
.tm-contact a:hover { color: var(--hx-yellow) !important; }

@media (max-width: 1199px) {
    .tm-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; }
    .tm-custom__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .tm-grid { grid-template-columns: 1fr; }
    .tm-form { position: static; }
    .tm-steps { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
    .tm-form__card { padding: 18px 16px 20px; }
    .tm-field--half, .tm-field--third { grid-column: span 6; }
    .tm-custom__list { grid-template-columns: 1fr; }
}
