/* Анимация записи клиента на лендинге — безрамочный экран */
.booking-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.booking-demo-phone {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow:
        0 32px 80px rgba(31, 36, 41, 0.14),
        0 8px 24px rgba(31, 36, 41, 0.06);
}

.bdp-status {
    height: 44px;
    background: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 10px 22px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2429;
}

.bdp-status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #1f2429;
}

.bdp-screen {
    background: #fff;
    min-height: 560px;
    position: relative;
    overflow: hidden;
}

.bdp-step {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.bdp-step.is-active {
    opacity: 1;
    transform: translateX(0);
}

.bdp-step:not(.bdp-step--success) {
    padding: 14px 16px 20px;
    background: #f5f5f5;
}

.bdp-step--success {
    background: #fff;
}

/* —— Экран салона (как в референсе) —— */
.bdp-hero {
    position: relative;
    height: 168px;
    overflow: hidden;
}

.bdp-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bdp-profile-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #6e7378;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bdp-hero-logo {
    position: absolute;
    left: 16px;
    bottom: -22px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
    background-image: linear-gradient(135deg, #f4be2a 0%, #e8a820 100%);
    background-size: cover;
}

.bdp-hero-logo::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #fff8e0 0%, transparent 70%);
    opacity: 0.6;
}

.bdp-intro-body {
    padding: 30px 16px 16px;
}

.bdp-business-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bdp-business-name i {
    font-size: 11px;
    color: #6e7378;
    font-weight: 400;
}

.bdp-business-addr {
    font-size: 12px;
    color: #6e7378;
    margin: 0 0 14px;
}

.bdp-promo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: #fff8e6;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    color: #1f2429;
    margin-bottom: 16px;
}

.bdp-promo > i:first-child {
    color: #c9a020;
    font-size: 13px;
}

.bdp-promo span {
    flex: 1;
}

.bdp-promo > i:last-child {
    font-size: 10px;
    color: #6e7378;
}

.bdp-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bdp-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    text-decoration: none;
    color: #1f2429;
    font-size: 14px;
    font-weight: 500;
    border-radius: 12px;
    transition: background 0.2s;
}

.bdp-menu-item.is-selected {
    background: #fff8e6;
}

.bdp-menu-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f1f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #6e7378;
    flex-shrink: 0;
}

.bdp-menu-arrow {
    margin-left: auto;
    font-size: 11px;
    color: #c4c8cc;
}

/* —— Шаги записи —— */
.bdp-panel {
    background: #fff;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.bdp-steps-row {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
}

.bdp-pill {
    flex: 1;
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    padding: 6px 2px;
    border-radius: 10px;
    background: #f1f1f3;
    color: #6e7378;
    transition: background 0.25s, color 0.25s;
}

.bdp-pill.is-on {
    background: #f4be2a;
    color: #111;
}

.bdp-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.25;
}

.bdp-title em {
    font-style: normal;
    color: #c9a020;
}

.bdp-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border-radius: 14px;
    border: 1.5px solid #e8eaed;
    margin-bottom: 8px;
    background: #fff;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.bdp-card.is-selected {
    border-color: #f4be2a;
    background: #fffdf5;
    box-shadow: 0 2px 12px rgba(244, 190, 42, 0.18);
}

.bdp-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    background: #e8eaed;
    flex-shrink: 0;
}

.bdp-avatar--placeholder {
    background: linear-gradient(135deg, #d0e8ff, #fff3cc);
}

.bdp-card-body { flex: 1; min-width: 0; }

.bdp-card-body b {
    display: block;
    font-size: 13px;
}

.bdp-card-body span {
    font-size: 11px;
    color: #6e7378;
}

.bdp-stars {
    color: #f4be2a;
    font-size: 10px;
    letter-spacing: 1px;
}

.bdp-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #1896fa;
    flex-shrink: 0;
}

.bdp-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.bdp-slot {
    text-align: center;
    padding: 9px 4px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid #e8eaed;
    background: #fff;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.bdp-slot.is-selected {
    background: #1896fa;
    border-color: #1896fa;
    color: #fff;
}

.bdp-field {
    margin-bottom: 9px;
}

.bdp-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6e7378;
    margin-bottom: 5px;
}

.bdp-input {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    font-size: 12px;
    background: #fff;
    color: #1f2429;
}

.bdp-btn {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: none;
    border-radius: 14px;
    background: #f4be2a;
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.bdp-success {
    text-align: center;
    padding: 48px 16px;
    background: #fff;
}

.bdp-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #e8f8ec;
    color: #2ecc71;
    font-size: 28px;
    line-height: 56px;
    font-weight: 700;
}

.bdp-success h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.bdp-success p {
    font-size: 12px;
    color: #6e7378;
    line-height: 1.5;
}

.bdp-finger {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(24, 150, 250, 0.22);
    border: 2px solid rgba(24, 150, 250, 0.45);
    pointer-events: none;
    opacity: 0;
    transform: scale(0.5);
    z-index: 10;
    transition: opacity 0.2s, transform 0.2s, top 0.45s ease, left 0.45s ease;
}

.bdp-finger.is-visible {
    opacity: 1;
    transform: scale(1);
}

.bdp-finger.is-tap {
    animation: bdpTap 0.35s ease;
}

@keyframes bdpTap {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.85); background: rgba(24, 150, 250, 0.38); }
}

.booking-demo-caption {
    text-align: center;
    min-height: 44px;
}

.bdp-caption-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: opacity 0.3s;
}

.bdp-caption-text.is-changing {
    opacity: 0;
}

@media (min-width: 1025px) {
    .booking-demo {
        max-width: 420px;
    }

    .booking-demo-phone {
        max-width: 400px;
    }

    .bdp-screen {
        min-height: 600px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bdp-step { transition: none; }
    .bdp-finger { display: none; }
}

@media (max-width: 1024px) {
    .hero-visual {
        margin-top: 32px;
    }
}
