.tour-page {
    width: 100%;
    margin: 0;
    padding: 0;

    background: #fbf7f1;
    color: #28323a;
}

.tour-hero {
    width: 100vw;
    min-height: 230px;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    box-sizing: border-box;

    background: #6486a1;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 30px 20px;
}

.tour-hero h1 {
    margin: 0 0 10px;

    color: white;

    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.tour-hero p {
    margin: 0 0 16px;

    color: white;

    font-size: 13px;
    line-height: 1.5;
}

.tour-tags {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 10px;
    flex-wrap: wrap;

    width: 100%;
}

.tour-tags span {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 5px 12px;

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 20px;

    color: white;

    font-size: 10px;
}

.tour-steps {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    box-sizing: border-box;

    padding: 28px 0 20px;

    display: flex;

    align-items: center;

    justify-content: center;

}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 11px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.step-number {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #ccd3d9;
    border-radius: 50%;
    background: transparent;
    font-size: 10px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.step.active .step-number {
    border-color: #6486a1;
    background: #6486a1;
    color: white;
    animation: step-pop 0.35s ease;
}

.step.completed .step-number {
    border-color: #6486a1;
    background: #6486a1;
    color: white;
}

.step-line {
    width: 90px;
    height: 1px;
    flex-shrink: 0;
    margin: 0 14px;
    background: #d8d2c9;
    position: relative;
    overflow: hidden;
}

.step-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #6486a1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

@keyframes step-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.tour-content {
    width: 100%;

    margin: 0 auto;

    padding: 0 0 60px;

    box-sizing: border-box;

    display: grid;

    grid-template-columns: minmax(0, 1fr); /* was: minmax(0, 620px) 250px */

    gap: 30px;

    align-items: start;
}


/* LEFT */

.tour-main {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    min-width: 0;
}


/* RIGHT */

.tour-sidebar {
    width: 100%;

    min-width: 0;
}

.tour-card {
    width: 100%;

    box-sizing: border-box;

    margin: 0 0 18px;
    padding: 20px;

    background: white;

    border: 1px solid #ddd8d0;
    border-radius: 7px;
}

.tour-card h2 {
    margin: 18px 0 10px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    letter-spacing: 0.2px;

    color: #28323a;
}

.section-note {
    margin: 0 0 18px;

    color: #747474;

    font-size: 10px;
    line-height: 1.5;
}

.form-row {
    width: 100%;

    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 16px;

    margin-bottom: 16px;
}

.form-group {
    width: 100%;
    min-width: 0;

    margin: 0;
}

.field-heading {
    display: block;

    margin: 0 0 6px;

    color: #28323a;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.required {
    color: #b43b32;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea,
.tour-card input[type="text"],
.tour-card input[type="email"],
.tour-card input[type="tel"],
.tour-card input[type="number"],
.tour-card input[type="date"],
.tour-card input[type="time"],
.tour-card select,
.tour-card textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid #ccd3d9;
    border-radius: 2px;
    background: white;
    color: #333;
    font-family: inherit;
    font-size: 14px;
}


/* SINGLE LINE */

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.tour-card input[type="text"],
.tour-card input[type="email"],
.tour-card input[type="tel"],
.tour-card input[type="number"],
.tour-card input[type="date"],
.tour-card input[type="time"],
.tour-card select {
    height: 38px;
    padding: 11px 12px;
}


/* TEXTAREA */

.form-group textarea,
.tour-card textarea {
    min-height: 100px;

    padding: 11px 12px;

    resize: vertical;
}


/* PLACEHOLDER */

.form-group input::placeholder,
.form-group textarea::placeholder,
.tour-card input::placeholder,
.tour-card textarea::placeholder {
    color: #aaa;
}


/* FOCUS */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.tour-card input:focus,
.tour-card select:focus,
.tour-card textarea:focus {
    outline: none;

    border-color: #6486a1;

    box-shadow: 0 0 0 1px rgba(100, 134, 161, 0.12);
}

.field-error {
    display: none;

    margin-top: 5px;

    color: #b43b32;

    font-size: 9px;
}

/* Years and months side by side, each number followed by its unit. */
.age-field {
    display: flex;
    gap: 10px;
}

.age-part {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.age-part input {
    flex: 1;
    min-width: 0;
}

.age-unit {
    flex: 0 0 auto;
    color: #6b6b6b;
    font-size: 14px;
    white-space: nowrap;
}

/* Typed clock beside its am/pm choice, together filling the field's width. */
.time-field {
    display: flex;
    gap: 8px;
}

.time-field input[type="text"] {
    flex: 1;
    min-width: 0;
}

.time-field select {
    width: 5.5rem;
    flex: 0 0 auto;
}

/* Sits between two fields, so it carries the same 16px rhythm as .form-row.
   The row gap keeps wrapped lines from touching on narrow screens. */
.day-checkbox-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px 24px;
    flex-wrap: wrap;
    margin: 14px 0 16px;
}

.day-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 11px;
    font-weight: 400;
    color: #2f3a46;
    white-space: nowrap;
}

.day-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}
.radio-group {
    height: 38px;

    display: flex;

    align-items: center;

    gap: 20px;
}

.radio-option {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin: 0;

    font-size: 10px;
    font-weight: 400;

    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 13px;
    height: 13px;

    margin: 0;
}

.message-group {
    margin-top: 16px;
}

.turnstile-wrapper {
    width: 100%;

    margin: 14px 0;
}

.cf-turnstile {
    max-width: 100%;
}
/* Privacy consent */

.privacy-check {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin: 12px 0 16px;

    color: #66717c;

    font-size: 10px;
    font-weight: 400;
    line-height: 1.5;

    cursor: pointer;
}

.privacy-check span {
    display: block;

    font-size: 9px;
    font-weight: 400;
    line-height: 1.5;
}

.privacy-check input[type="checkbox"] {
    width: 13px;
    height: 13px;

    flex-shrink: 0;

    margin: 1px 0 0;

    cursor: pointer;
}

.confirm-row {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 10px;
}

.confirm-button {
    width: 230px;
    height: 44px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 0;

    background: #6486a1;
    color: white;

    font-size: 11px;
    font-weight: 600;
    line-height: 1;

    text-align: center;

    cursor: pointer;
}

.confirm-button:hover {
    background: #54758f;
}

.call-details {
    color: #555;

    font-size: 9px;
    line-height: 1.4;
}

.call-details strong {
    color: #28323a;
}

.call-details small {
    display: block;

    margin-top: 3px;

    color: #888;

    font-size: 8px;
}

.summary-card {
    width: 100%;

    box-sizing: border-box;

    padding: 18px;

    background: #f1eadf;

    border-radius: 7px;
}

.summary-card h2 {
    margin: 18px 0 10px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: 0.2px;

    color: #28323a;
}

.summary-line {
    width: 100%;
    height: 1px;

    margin: 10px 0 15px;

    background: #d8d0c4;
}

.summary-item {
    margin-bottom: 14px;
}

.summary-item span {
    display: block;

    margin-bottom: 3px;

    color: #777;

    font-size: 7px;
    font-weight: 600;
}

.summary-item strong {
    display: block;

    color: #28323a;

    font-size: 10px;
    font-weight: 500;

    line-height: 1.4;
}

.map-small {
    width: 100%;
    height: 100px;

    box-sizing: border-box;

    margin: 15px 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 10px;

    background: #e5ddd0;

    color: #8b867f;

    font-size: 8px;

    text-align: center;
}

.summary-card h3 {
    margin: 12px 0 10px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: 0.2px;

    color: #28323a;
}

.summary-card ul {
    margin: 0;

    padding-left: 14px;

    color: #555;

    font-size: 8px;
    line-height: 1.6;
}

.children-note {
    width: 100%;

    box-sizing: border-box;

    margin-top: 15px;
    padding: 14px;

    background: #dce9f0;

    border-radius: 6px;
}

.children-note strong {
    display: block;

    color: #28323a;

    font-size: 9px;
}

.children-note p {
    margin: 4px 0 0;

    color: #555;

    font-size: 8px;
    line-height: 1.4;
}

/* Two scan codes side by side, filling the space under the sidebar note. */
.tour-qr {
    margin-top: 18px;
    padding: 16px;

    box-sizing: border-box;

    background: white;

    border: 1px solid #ddd8d0;
    border-radius: 7px;

    text-align: center;
}

.tour-qr-label {
    margin-bottom: 12px;

    color: #28323a;

    font-size: 14px;
    font-weight: 600;
}

.tour-qr-codes {
    display: flex;
    gap: 12px;
}

.tour-qr-item {
    flex: 1;
    min-width: 0;

    margin: 0;
}

.tour-qr-item img {
    display: block;

    width: 100%;
    height: auto;
}

.tour-qr-item figcaption {
    margin-top: 6px;

    color: #747474;

    font-size: 12px;
}

.confirmation-note {
    margin: 14px 0 0;

    color: #777;

    font-size: 8px;
    line-height: 1.5;
}

/* Flash Message (for 'Book a Tour' Form) */

.tour-page .message,
.tour-page .message.error {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 48px;
    margin: 0 0 18px;
    padding: 12px 48px 12px 14px;
    color: #b42318;
    font-size: 14px;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: 8px;
}

.tour-page .message-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
    line-height: 1;
}

.tour-page .message-icon svg {
    display: block;
}

.tour-page .message-text {
    font-size: 14px;
    line-height: 1.4;
}

.tour-page .message-close,
.tour-page .message-close:hover,
.tour-page .message-close:focus {
    position: absolute;
    top: 50%;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translateY(-50%);
}

.tour-page .message.hidden {
    display: none;
}

@media (max-width: 950px) {

    .tour-steps,
    .tour-content {
        width: calc(100% - 40px);

        max-width: none;
    }

    .tour-content {
        grid-template-columns: minmax(0, 1fr) 230px;
    }
}

@media (max-width: 780px) {

    .tour-content {
        grid-template-columns: 1fr;
    }

    .tour-sidebar {
        width: 100%;
    }

    .summary-card {
        width: 100%;
    }
}

@media (max-width: 600px) {

    .tour-hero {
        padding: 32px 18px;
    }

    .tour-hero h1 {
        margin: 0 0 12px;

        color: white;

        font-size: 28px;
        font-weight: 700;
        line-height: 1.3;

        text-align: center;
    }

    .tour-hero p {
        margin: 0 0 18px;

        color: white;

        font-size: 13px;
        line-height: 1.5;

        text-align: center;
    }


    .tour-steps {
        width: calc(100% - 30px);

        padding-top: 22px;
    }

    .step {
        font-size: 8px;
    }

    .step-number {
        width: 22px;
        height: 22px;
    }

    .step-line {
        width: 25px;

        margin-left: 6px;
        margin-right: 6px;
    }


    .tour-content {
        width: calc(100% - 30px);

        padding-bottom: 40px;
    }


    .tour-card {
        padding: 16px;
    }


    .form-row {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    .confirm-row {
        flex-direction: column;

        align-items: stretch;
    }

    .confirm-button {
        width: 100%;
    }

    .call-details {
        text-align: center;
    }
}

/* Enlarged typography for improved readability */
.tour-hero h1 {
    font-size: 40px;
}

.tour-hero p {
    font-size: 18px;
}

.tour-tags span,
.step-number,
.radio-option,
.privacy-check {
    font-size: 14px;
}

/* Field labels and inputs carry the contact page's sizes so the two forms
   match: 13px labels over 14px text in a 42px field. */
.field-heading {
    font-size: 13px;
}

.step {
    font-size: 15px;
}

/* Same metrics as the contact form's submit button. */
.confirm-button {
    font-size: 14px;
}

/* A step down from the input text, so the day row reads as a set of options
   rather than another field. */
.day-option {
    font-size: 13px;
}

.tour-card h2,
.summary-card h2,
.summary-card h3 {
    font-size: 20px;
}

.section-note,
.summary-item strong {
    font-size: 14px;
}

.field-error,
.privacy-check span,
.call-details,
.children-note strong {
    font-size: 13px;
}

.call-details small,
.summary-item span,
.map-small,
.summary-card ul,
.children-note p,
.confirmation-note {
    font-size: 12px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.tour-card input[type="text"],
.tour-card input[type="email"],
.tour-card input[type="tel"],
.tour-card input[type="number"],
.tour-card input[type="date"],
.tour-card input[type="time"],
.tour-card select,
.radio-group {
    height: 42px;
}

.confirm-button {
    height: 42px;
}

.tour-main span.field-error {
    display: block !important;
    margin-top: 6px;
    color: #b43b32;
    font-size: 12px;
}

@media (max-width: 600px) {
    .tour-hero h1 {
        font-size: 34px;
    }

    .tour-hero p {
        font-size: 17px;
    }

    .step {
        font-size: 12px;
    }
}
.step.active {
    color: #28323a;
    font-weight: 700;
}

.step.active .step-number {
    color: #ffffff;
    background-color: #6486a1;
    border-color: #6486a1;
}

.step.completed .step-number {
    color: #ffffff;
    background-color: #8ba6ba;
    border-color: #8ba6ba;
}

/* Show only current step's label, so that the row fits narrow phones. */

@media (max-width: 600px) {
    .tour-steps {
        justify-content: center;
        overflow: hidden;
    }

    .step:not(.active) {
        font-size: 0;
        gap: 0;
    }

    .step-line {
        width: 20px;
        margin-left: 8px;
        margin-right: 8px;
    }
}
