html { scroll-behavior: smooth; }

body.tm-page {
    margin: 0;
    overflow-x: hidden;
    background: #fff;
    color: #5a5a5a;
    font-family: 'MiSans', Arial, Helvetica, sans-serif;
}

.tm-page *, .tm-page *::before, .tm-page *::after { box-sizing: border-box; }

.tm-container {
    width: calc(100% - 40px);
    max-width: 1120px;
    margin: 0 auto;
}

.tm-breadcrumb {
    height: 46px;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.tm-breadcrumb .tm-container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #888;
    font-size: 14px;
}

.tm-breadcrumb a { color: #666; text-decoration: none; }
.tm-breadcrumb a:hover, .tm-breadcrumb a:focus { color: #0caedc; }

.tm-main {
    min-height: 1688px;
    padding: 53px 0 55px;
    background: #152838 url('/images/tailor-made/background.jpg') center top / cover no-repeat;
}

.tm-content { color: #555; }

.tm-intro {
    margin-bottom: 45px;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.tm-intro h1 {
    margin: 0 0 17px;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.15;
}

.tm-intro p {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
}

.tm-message {
    margin: -20px 0 24px;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.tm-message--success { background: #eaf8ee; color: #247a3c; }
.tm-message--error { background: #fff0f0; color: #bd2430; }

.tm-form { margin: 0; }

.tm-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.tm-panel {
    margin: 0 0 20px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.tm-panel > h2 {
    margin: 0;
    padding: 8px 15px 7px;
    background: #13aed9;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.15;
}

.tm-panel-body { padding: 20px 16px 22px; }
.tm-destination-body { padding-top: 21px; }

.tm-destination-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 52px;
    margin-bottom: 26px;
}

.tm-destination-grid label,
.tm-choice-group label {
    margin: 0;
    color: #626262;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.tm-page input[type="checkbox"],
.tm-page input[type="radio"] {
    margin: 0 7px 0 0;
    accent-color: #12b4df;
    vertical-align: -1px;
}

.tm-field {
    display: block;
    margin: 0;
    color: #575757;
    font-size: 16px;
    font-weight: 400;
}

.tm-field > span:first-child,
.tm-field--wide > span:first-child { display: block; margin-bottom: 5px; }
.tm-field em, .tm-travelers em { color: #ed1c24; font-style: normal; }

.tm-field input,
.tm-field select,
.tm-field textarea {
    width: 100%;
    border: 1px solid #c5c5c5;
    border-radius: 0;
    background: #fff;
    color: #333;
    font: inherit;
    outline: none;
}

.tm-field input,
.tm-field select { height: 32px; padding: 4px 8px; }
.tm-field input[type="date"],
.tm-field input[data-date-picker] { cursor: pointer; }
.tm-field textarea { min-height: 88px; padding: 8px; resize: vertical; }
.tm-field input:focus, .tm-field select:focus, .tm-field textarea:focus { border-color: #13aed9; box-shadow: 0 0 0 1px #13aed9; }

.tm-calendar {
    position: absolute;
    z-index: 1000;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #c5c5c5;
    background: #fff;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .16);
    color: #333;
    font-size: 13px;
}
.tm-calendar[hidden] { display: none; }
.tm-calendar__header { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; margin-bottom: 7px; }
.tm-calendar__title { text-align: center; font-size: 14px; font-weight: 600; }
.tm-calendar__nav,
.tm-calendar__day,
.tm-calendar__today {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}
.tm-calendar__nav { height: 30px; font-size: 20px; line-height: 1; }
.tm-calendar__nav:hover:not(:disabled),
.tm-calendar__nav:focus-visible,
.tm-calendar__day:hover:not(:disabled),
.tm-calendar__day:focus-visible { background: #e9f7fb; outline: none; }
.tm-calendar__nav:disabled { color: #bbb; cursor: default; }
.tm-calendar__week,
.tm-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.tm-calendar__week span { padding: 5px 0; color: #666; text-align: center; font-size: 11px; font-weight: 600; }
.tm-calendar__day,
.tm-calendar__blank { height: 30px; padding: 0; text-align: center; }
.tm-calendar__day:disabled { color: #bbb; cursor: default; }
.tm-calendar__day.is-today { color: #078bb2; font-weight: 700; }
.tm-calendar__day.is-selected { background: #13aed9; color: #fff; font-weight: 700; }
.tm-calendar__footer { margin-top: 7px; padding-top: 7px; border-top: 1px solid #e5e5e5; text-align: center; }
.tm-calendar__today { color: #078bb2; font-weight: 600; }
.tm-calendar__today:hover, .tm-calendar__today:focus-visible { text-decoration: underline; outline: none; }

.tm-field small,
.tm-travelers > small {
    display: block;
    margin-top: 5px;
    visibility: hidden;
    color: #cf2938;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
}

.tm-field.is-invalid small,
.tm-travelers.is-invalid > small { visibility: visible; }
.tm-field.is-invalid input, .tm-field.is-invalid select { border-color: #cf2938; }

.tm-plan-body { padding-top: 22px; padding-bottom: 25px; }

.tm-plan-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 95px;
    max-width: 705px;
    margin-bottom: 36px;
}

.tm-plan-top .tm-field { font-size: 17px; }
.tm-plan-top input { max-width: 285px; }

.tm-unit-control { display: flex; align-items: center; gap: 9px; }
.tm-unit-control input { width: 125px; }
.tm-unit-control b { font-size: 13px; font-weight: 400; }

.tm-travelers,
.tm-choice-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.tm-travelers { margin-bottom: 32px; }
.tm-travelers legend,
.tm-choice-group legend {
    width: auto;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    color: #575757;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.25;
}

.tm-traveler-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.tm-counter-row { display: flex; align-items: center; gap: 11px; }
.tm-counter-row img { width: 55px; height: 45px; object-fit: contain; }
.tm-counter { display: flex; align-items: center; }

.tm-counter button,
.tm-counter input {
    height: 31px;
    border: 0;
    border-radius: 0;
    text-align: center;
}

.tm-counter button {
    width: 23px;
    padding: 0;
    background: #707070;
    color: #fff;
    font-size: 18px;
    line-height: 31px;
}

.tm-counter button:hover, .tm-counter button:focus { background: #13aed9; outline: none; }
.tm-counter input { width: 38px; padding: 0; background: #f7f7f7; color: #777; font-size: 14px; }
.tm-counter input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.tm-traveler p { margin: 5px 0 0; color: #6d6d6d; font-size: 12px; white-space: nowrap; }

.tm-choice-group { margin-bottom: 28px; }
.tm-hotel-grid { display: grid; grid-template-columns: 1.35fr 1.65fr; gap: 13px 82px; max-width: 720px; }
.tm-stars { color: #f20f22; font-size: 14px; font-weight: 400; letter-spacing: 1px; }
.tm-guide-group { margin-bottom: 29px; }
.tm-guide-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; max-width: 910px; }
.tm-field--request { max-width: 805px; }

.tm-contact-body { padding-top: 20px; padding-bottom: 25px; }
.tm-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 98px; }
.tm-name-control { display: grid; grid-template-columns: 80px 1fr; }
.tm-name-control select { border-right: 0; }

.tm-contact-methods { margin: 25px 0 0; }
.tm-contact-methods > div { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1.3fr; gap: 25px; max-width: 820px; }

.tm-submit-wrap { margin-top: 35px; text-align: center; }
.tm-submit {
    min-width: 152px;
    padding: 5px 18px 6px;
    border: 0;
    border-radius: 18px;
    background: #f5a000;
    color: #fff;
    font-size: 17px;
    line-height: 1.1;
    transition: background-color .2s ease;
}

.tm-submit:hover, .tm-submit:focus { background: #dc8e00; outline: none; }
.tm-submit[disabled] { cursor: wait; opacity: .7; }

.tm-privacy { display: block; margin: 10px 0 0; color: #777; font-size: 12px; font-weight: 400; }
.tm-privacy b { color: #f04a4a; font-weight: 400; }

@media (min-width: 701px) {
    .tm-panel--destination { min-height: 295px; }
    .tm-panel--plan { min-height: 662px; }
    .tm-panel--contact { min-height: 424px; }
}

@media (max-width: 900px) {
    .tm-main { min-height: 0; background-size: auto 1688px; background-repeat: repeat-y; }
    .tm-intro br { display: none; }
    .tm-destination-grid { column-gap: 25px; }
    .tm-plan-top { gap: 45px; }
    .tm-traveler-grid { gap: 18px; }
    .tm-hotel-grid { column-gap: 30px; }
    .tm-guide-grid { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
    .tm-contact-grid { column-gap: 35px; }
}

@media (max-width: 700px) {
    .tm-container { width: calc(100% - 24px); }
    .tm-breadcrumb { height: 42px; }
    .tm-main { padding: 35px 0 38px; }
    .tm-intro { margin-bottom: 30px; }
    .tm-intro h1 { font-size: 26px; }
    .tm-intro p { font-size: 14px; }
    .tm-panel { margin-bottom: 16px; border-radius: 8px; }
    .tm-panel > h2 { padding: 9px 12px; font-size: 18px; }
    .tm-panel-body { padding: 19px 14px 22px; }
    .tm-destination-grid { grid-template-columns: repeat(2, 1fr); gap: 13px 20px; }
    .tm-plan-top, .tm-contact-grid { grid-template-columns: 1fr; gap: 18px; max-width: none; }
    .tm-plan-top input { max-width: none; }
    .tm-traveler-grid { grid-template-columns: 1fr; gap: 19px; }
    .tm-traveler { display: grid; grid-template-columns: 190px 1fr; align-items: center; }
    .tm-traveler p { margin: 0; white-space: normal; }
    .tm-hotel-grid { grid-template-columns: 1fr; gap: 13px; }
    .tm-guide-grid { grid-template-columns: repeat(2, 1fr); }
    .tm-contact-methods > div { grid-template-columns: 1fr 1fr; gap: 13px 20px; }
    .tm-submit-wrap { margin-top: 30px; }
}

@media (max-width: 420px) {
    .tm-intro h1 { font-size: 23px; }
    .tm-traveler { grid-template-columns: 1fr; gap: 4px; }
    .tm-contact-methods > div { grid-template-columns: 1fr; }
    .tm-name-control { grid-template-columns: 72px 1fr; }
}
