.appointment-page {
    box-sizing: border-box;
    max-width: 1080px;
    margin: 0 auto;
    padding: 42px 20px 68px;
}

.appointment-heading {
    margin: 0 auto 24px;
    text-align: center;
}

.appointment-eyebrow {
    margin: 0 0 8px;
    color: #e31e24;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}

.appointment-heading h1 {
    margin: 0;
    font-size: clamp(28px, 5vw, 40px);
    line-height: 1.15;
}

.appointment-heading>p:last-child {
    max-width: 650px;
    margin: 12px auto 0;
    color: #666;
    line-height: 1.5;
}

.appointment-card {
    padding: clamp(20px, 4vw, 36px);
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .08);
}

/* =========================================================================
 * Шаги — теперь их три
 * ========================================================================= */
.appointment-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
}

.appointment-steps li {
    position: relative;
    min-width: 0;
}

.appointment-steps li:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 17px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: #e5e5e5;
    content: '';
}

.appointment-step {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #858585;
    font: inherit;
}

.appointment-step span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
}

.appointment-step b {
    overflow: hidden;
    max-width: 100%;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-step.is-active,
.appointment-step.is-complete {
    color: #222;
    cursor: pointer;
}

.appointment-step.is-active span,
.appointment-step.is-complete span {
    border-color: #e31e24;
    background: #e31e24;
    color: #fff;
}

.appointment-panel[hidden] {
    display: none;
}

.appointment-panel h2 {
    margin: 0;
    color: #1e1e1e;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.25;
}

/* Подзаголовки внутри шага 1 (Услуга) и шага 2 (Сотрудник, Дата и время) */
.appointment-subheading {
    margin: 24px 0 8px;
    color: #1e1e1e;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.appointment-subheading:first-of-type {
    margin-top: 18px;
}

.appointment-panel-hint {
    margin: 8px 0 22px;
    color: #707070;
    font-size: 14px;
    line-height: 1.5;
}

.appointment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.appointment-option {
    display: flex;
    min-height: 76px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    padding: 14px 16px;
    border: 1px solid #dedede;
    border-radius: 9px;
    background: #fff;
    color: #222;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.appointment-option:hover {
    border-color: #ee777a;
}

.appointment-option.is-selected {
    border-color: #e31e24;
    background: #fff8f8;
    box-shadow: 0 0 0 2px rgba(227, 30, 36, .08);
}

.option-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.option-description {
    color: #707070;
    font-size: 13px;
    line-height: 1.4;
}

.appointment-navigation {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}

.appointment-button {
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

.appointment-button-primary {
    background: #e31e24;
    color: #fff;
}

.appointment-button-primary:hover:not(:disabled) {
    background: #c9181e;
}

.appointment-button-primary:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.appointment-button-secondary {
    border-color: #d8d8d8;
    background: #fff;
    color: #333;
}

.appointment-button-secondary:hover {
    border-color: #aaa;
    background: #f8f8f8;
}

.appointment-time-fields,
.appointment-contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.appointment-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    color: #292929;
    font-size: 14px;
    font-weight: 600;
}

.appointment-field b,
.appointment-consent b {
    color: #e31e24;
}

.appointment-field input,
.appointment-field textarea,
.appointment-field select {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 8px;
    background: #fff;
    color: #171717;
    font: inherit;
    font-weight: 400;
    transition: border-color .15s ease, box-shadow .15s ease;
}

/* Select: убираем «системный» вид, добавляем кастомную стрелку */
.appointment-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23666' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.appointment-field select:invalid,
.appointment-field select.is-placeholder {
    color: #9a9a9a;
}

.appointment-field textarea {
    min-height: 92px;
    resize: vertical;
}

.appointment-field input:focus,
.appointment-field textarea:focus,
.appointment-field select:focus {
    border-color: #e31e24;
    outline: 2px solid rgba(227, 30, 36, .14);
}

.appointment-field input#customer-phone:invalid:not(:placeholder-shown) {
    border-color: #e05252;
    box-shadow: 0 0 0 3px rgba(224, 82, 82, .12);
}

.appointment-field input.is-invalid {
    border-color: #e05252;
    box-shadow: 0 0 0 3px rgba(224, 82, 82, .12);
}

.appointment-field input.is-valid {
    border-color: #34a853;
}

.appointment-field input.is-valid:focus {
    border-color: #34a853;
    outline: 2px solid rgba(52, 168, 83, .14);
}

.appointment-field-wide {
    grid-column: 1 / -1;
}

.appointment-times {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.appointment-time {
    min-height: 42px;
    border: 1px solid #d7d7d7;
    border-radius: 7px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.appointment-time:hover:not(:disabled) {
    border-color: #e31e24;
}

.appointment-time.is-selected {
    border-color: #e31e24;
    background: #e31e24;
    color: #fff;
}

.appointment-time:disabled {
    cursor: not-allowed;
    opacity: .38;
}

.appointment-help {
    color: #777;
    font-size: 12px;
    font-weight: 400;
}

.appointment-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 0;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.appointment-consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #e31e24;
}

.appointment-static-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 20px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff8e8;
    color: #725b2c;
    font-size: 12px;
    line-height: 1.5;
}

.appointment-static-note span {
    flex: 0 0 auto;
    font-size: 16px;
}

.appointment-confirmation {
    text-align: center;
}

.appointment-confirmation-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    background: #eaf7ee;
    color: #238044;
    font-size: 26px;
    font-weight: 700;
}

.appointment-confirmation>p {
    max-width: 620px;
    margin: 10px auto 20px;
    color: #666;
    line-height: 1.55;
}

.appointment-summary {
    max-width: 620px;
    margin: 0 auto 22px;
    text-align: left;
}

.appointment-summary div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.appointment-summary dt {
    color: #777;
}

.appointment-summary dd {
    margin: 0;
    color: #222;
    font-weight: 600;
}

/* =========================================================================
 * Дисклеймер о ценах «от» и публичной оферте
 * ========================================================================= */

.appointment-disclaimer {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin-top: 20px;
    padding: 14px 18px;
    background-color: #fff5f5;
    border: 1px solid #f8d7da;
    border-radius: 8px;
    color: #721c24;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.appointment-disclaimer strong {
    color: #c9181e;
    font-weight: 700;
}

.appointment-option .option-price {
    display: inline-block;
    margin-top: 4px;
    font-weight: 600;
    color: #c9181e;
    font-size: 14px;
}

/* Предупреждение по услуге (шаг 1) */
.appointment-service-warning {
    box-sizing: border-box;
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid #f3d99a;
    border-radius: 8px;
    background: #fff8e8;
    color: #725b2c;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .appointment-page {
        padding: 28px 12px 42px;
    }

    .appointment-card {
        padding: 20px 15px;
    }

    .appointment-step b {
        font-size: 11px;
    }

    .appointment-steps li:not(:last-child)::after {
        top: 15px;
        left: calc(50% + 17px);
        width: calc(100% - 34px);
    }

    .appointment-step span {
        width: 32px;
        height: 32px;
    }

    .appointment-options,
    .appointment-time-fields,
    .appointment-contact-fields {
        grid-template-columns: 1fr;
    }

    .appointment-field-wide {
        grid-column: auto;
    }

    .appointment-times {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .appointment-navigation .appointment-button {
        flex: 1;
        padding: 0 12px;
    }

    .appointment-summary div {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 8px;
    }
}