/* Individual service pages — content left, tall image right */

.service-detail {
    width: 100%;
    max-width: 100%;
    background: var(--bg-white);
    padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 72px);
    box-sizing: border-box;
}

.service-detail__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.service-detail__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding-right: clamp(0px, 2vw, 24px);
}

.service-detail__badge {
    margin-bottom: 16px;
}

.service-detail__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 4px;
}

.service-detail__tagline {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 600;
    color: var(--color-accent, #e85126);
    margin-bottom: 5px;
    line-height: 1.45;
}

.service-detail__text {
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
    line-height: 1.85;
    color: var(--text-body);
    margin-bottom: 6px;
}

.service-detail__text:last-of-type {
    margin-bottom: 12px;
}

.service-detail__features {
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.service-detail__features li {
    position: relative;
    padding: 14px 16px 14px 44px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-body);
    background: var(--bg-alt, #eef2fa);
    border: 1px solid rgba(48, 67, 143, 0.08);
    border-radius: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-detail__features li::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(232, 81, 38, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e85126' stroke-width='2.5'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
}

.service-detail__features li:hover {
    border-color: rgba(232, 81, 38, 0.25);
    box-shadow: 0 6px 20px rgba(48, 67, 143, 0.06);
}

.service-detail__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

/* Premium Book Now CTA */
.service-detail__book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: min(100%, 220px);
    padding: 18px 36px !important;
    font-size: 0.9375rem !important;
    letter-spacing: 0.1em;
    border-radius: 100px !important;
    box-shadow:
        0 12px 32px rgba(48, 67, 143, 0.22),
        0 4px 12px rgba(232, 81, 38, 0.2) !important;
}

.service-detail__book:hover {
    gap: 16px;
    box-shadow:
        0 18px 44px rgba(232, 81, 38, 0.35),
        0 8px 20px rgba(48, 67, 143, 0.15) !important;
}

.service-detail__book-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-detail__book:hover .service-detail__book-icon {
    transform: translateX(4px);
}

.service-detail__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.service-detail__link:hover {
    color: var(--color-accent, #e85126);
}

/* Image — right */
.service-detail__visual {
    display: flex;
    align-items: stretch;
    align-self: stretch;
}

.service-detail__media {
    width: 100%;
    min-height: clamp(440px, 58vh, 620px);
    border-radius: clamp(24px, 3vw, 36px);
    overflow: hidden;
    box-shadow:
        0 24px 64px rgba(48, 67, 143, 0.14),
        0 8px 24px rgba(0, 0, 0, 0.08);
    background: #e8e8e6;
}

.service-detail__media img {
    width: 100%;
    height: 100%;
    min-height: clamp(440px, 58vh, 620px);
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Booking modal */
.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.booking-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.booking-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 22, 48, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.booking-modal__dialog {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: min(94vw, 780px);
    max-height: min(92dvh, 92vh);
    overflow: hidden;
    background: linear-gradient(165deg, #2a3d7a 0%, #243366 48%, #1e2d58 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: clamp(20px, 3vw, 28px);
    box-shadow: none;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-modal__dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    pointer-events: none;
}

.booking-modal.is-open .booking-modal__dialog {
    transform: translateY(0) scale(1);
}

.booking-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(22px, 3.5vw, 32px) clamp(22px, 3.5vw, 32px) 0;
}

.booking-modal__intro {
    flex: 1;
    min-width: 0;
}

.booking-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 14px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(232, 81, 38, 0.22);
    border: 1px solid rgba(232, 81, 38, 0.4);
    border-radius: 100px;
}

.booking-modal__intro h3 {
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 8px;
}

.booking-modal__intro p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    max-width: 520px;
}

.booking-modal__close {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    font-size: 1.45rem;
    line-height: 1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s;
}

.booking-modal__close:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.booking-modal__body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: clamp(18px, 3vw, 26px) clamp(22px, 3.5vw, 32px) clamp(24px, 3.5vw, 32px);
    scrollbar-width: thin;
    scrollbar-color: rgba(232, 81, 38, 0.45) rgba(255, 255, 255, 0.06);
}

.booking-modal__body::-webkit-scrollbar {
    width: 8px;
}

.booking-modal__body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.booking-modal__body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(232, 81, 38, 0.55) 0%, rgba(48, 67, 143, 0.65) 100%);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.booking-modal__body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(232, 81, 38, 0.75) 0%, rgba(48, 67, 143, 0.8) 100%);
    background-clip: padding-box;
}

.booking-modal__body::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.booking-modal__form {
    margin: 0;
}

.booking-modal__service {
    margin-bottom: 20px;
}

.booking-modal__service--locked {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-modal__service--picker {
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-modal__service--picker .form-group {
    margin-bottom: 16px;
}

.booking-modal.is-service-pickable .booking-modal__service--picker {
    display: block;
}

.booking-modal__service-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.booking-modal__service-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    max-width: 100%;
    padding: 12px 20px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(232, 81, 38, 0.28) 0%, rgba(232, 81, 38, 0.12) 100%);
    border: 1px solid rgba(232, 81, 38, 0.38);
    color: #fff;
    user-select: none;
    pointer-events: none;
}

.booking-modal__service-icon {
    flex-shrink: 0;
    opacity: 0.85;
}

.booking-modal__service-name {
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.booking-modal .schedule-form__grid {
    gap: 0 16px;
}

@media (min-width: 768px) {
    .booking-modal .schedule-form__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-modal .schedule-form__grid > .form-group:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) {
    .booking-modal .schedule-form__grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .booking-modal .schedule-form__grid > .form-group:nth-child(1),
    .booking-modal .schedule-form__grid > .form-group:nth-child(2),
    .booking-modal .schedule-form__grid > .form-group:nth-child(3) {
        grid-column: span 2;
    }

    .booking-modal .schedule-form__grid > .form-group:nth-child(4),
    .booking-modal .schedule-form__grid > .form-group:nth-child(5) {
        grid-column: span 3;
    }
}

.booking-modal .schedule-form__actions,
.booking-modal__actions {
    justify-content: flex-end;
    margin-top: 6px;
}

.booking-modal__submit,
.booking-modal .schedule-form__submit {
    width: auto;
    min-width: min(100%, 320px);
    box-shadow: none !important;
}

.booking-modal__submit:hover,
.booking-modal .schedule-form__submit:hover {
    box-shadow: none !important;
}

.booking-modal__form .form-group {
    position: relative;
    z-index: 1;
}

.booking-modal__form .form-group:has(.schedule-select.is-open) {
    z-index: 50;
}

/* Booking modal — tablet & mobile */
@media (max-width: 991.98px) {
    .booking-modal {
        padding:
            max(16px, env(safe-area-inset-top))
            max(16px, env(safe-area-inset-right))
            max(16px, env(safe-area-inset-bottom))
            max(16px, env(safe-area-inset-left));
        align-items: center;
        justify-content: center;
    }

    .booking-modal__dialog {
        width: 100%;
        max-width: 100%;
        max-height: min(calc(100dvh - 32px), calc(100vh - 32px));
        border-radius: 20px;
        transform: translateY(16px) scale(0.98);
    }

    .booking-modal__header {
        padding: 20px 18px 0;
    }

    .booking-modal__body {
        padding: 16px 18px 22px;
    }

    .booking-modal.is-open .booking-modal__dialog {
        transform: translateY(0) scale(1);
    }

    .booking-modal__close {
        width: 44px;
        height: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    .booking-modal .schedule-form__submit,
    .booking-modal__submit {
        width: 100%;
        min-width: 0;
    }

    .booking-modal .schedule-form__actions,
    .booking-modal__actions {
        justify-content: stretch;
    }
}

@media (max-width: 575.98px) {
    .booking-modal {
        padding:
            max(14px, env(safe-area-inset-top))
            max(14px, env(safe-area-inset-right))
            max(14px, env(safe-area-inset-bottom))
            max(14px, env(safe-area-inset-left));
    }

    .booking-modal__dialog {
        max-height: min(calc(100dvh - 28px), calc(100vh - 28px));
        border-radius: 18px;
    }

    .booking-modal__header {
        padding: 18px 16px 0;
        gap: 12px;
    }

    .booking-modal__intro h3 {
        font-size: 1.25rem;
    }

    .booking-modal__body {
        padding: 14px 16px 20px;
    }

    .booking-modal__close {
        width: 40px;
        height: 40px;
    }

    .booking-modal__service {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
}

/* Mobile — stack: content first, image below */
@media (max-width: 991.98px) {
    .service-detail {
        padding:
            24px
            max(16px, env(safe-area-inset-right))
            40px
            max(16px, env(safe-area-inset-left));
    }

    .service-detail__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .service-detail__content {
        padding-right: 0;
    }

    .service-detail__visual {
        order: 2;
    }

    .service-detail__media {
        min-height: clamp(360px, 52vh, 480px);
    }

    .service-detail__media img {
        min-height: clamp(360px, 52vh, 480px);
    }

    .service-detail__book {
        width: auto;
        max-width: 100%;
        min-width: 0;
        padding: 13px 28px !important;
        font-size: 0.8125rem !important;
        gap: 10px;
    }

    .service-detail__book-icon {
        width: 28px;
        height: 28px;
    }

    .service-detail__book-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 575.98px) {
    .service-detail {
        padding:
            20px
            max(14px, env(safe-area-inset-right))
            32px
            max(14px, env(safe-area-inset-left));
    }

    .service-detail__title {
        font-size: 1.75rem;
    }

    .service-detail__features li {
        padding: 12px 14px 12px 40px;
        font-size: 0.875rem;
    }

    .service-detail__media {
        min-height: 300px;
        border-radius: 20px;
    }

    .service-detail__media img {
        min-height: 300px;
    }

    .service-detail__actions {
        gap: 12px;
    }

    .service-detail__book {
        padding: 11px 22px !important;
        font-size: 0.75rem !important;
        letter-spacing: 0.07em;
        gap: 8px;
    }

    .service-detail__book-icon {
        width: 26px;
        height: 26px;
    }

    .service-detail__book-icon svg {
        width: 14px;
        height: 14px;
    }
}
