@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    --ink: #121826;
    --muted: #667085;
    --line: #e3e7ef;
    --surface: #fff;
    --surface-soft: #f7f8fb;
    --accent: #087f78;
    --accent-soft: #eff7f6;
    --success: #087a55;
    --danger: #c52d2d;
    --shadow: 0 22px 60px rgba(16, 24, 40, .10);
    --shadow-soft: 0 8px 24px rgba(16, 24, 40, .06);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", system-ui, sans-serif;
    color: var(--ink);
    background: #f4f5f8;
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }

.page-shell {
    width: min(1480px, calc(100% - 40px));
    margin: 28px auto 72px;
}

.hero-card {
    min-height: 360px;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 30px;
    background: #17191f;
    box-shadow: var(--shadow);
}
.hero-cover,
.hero-overlay { position: absolute; inset: 0; }
.hero-cover {
    background-size: cover;
    background-position: center 45%;
    transform: scale(1.01);
}
.hero-overlay {
    background:
        linear-gradient(90deg, rgba(10, 12, 18, .88), rgba(10, 12, 18, .25) 70%),
        linear-gradient(0deg, rgba(10, 12, 18, .58), transparent 70%);
}
.hero-content {
    width: 100%;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 22px;
    padding: 40px;
    color: #fff;
}
.business-logo {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border: 4px solid rgba(255, 255, 255, .8);
    border-radius: 22px;
    background: #fff center / cover no-repeat;
    color: var(--ink);
    font-size: 30px;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.hero-main { min-width: 0; }
.eyebrow,
.section-kicker {
    display: block;
    margin: 0 0 7px;
    color: #7167ee;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.hero-main .eyebrow { color: rgba(255, 255, 255, .74); }
.hero-main h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1;
    letter-spacing: -.045em;
}
.business-description {
    max-width: 720px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .82);
    line-height: 1.55;
}
.business-meta {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    font-weight: 700;
}
.business-meta a { text-underline-offset: 3px; }
.hero-button,
.primary-button,
.secondary-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 12px 18px;
    border: 1px solid transparent;
    font-weight: 800;
    text-decoration: none;
}
.hero-button {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
.primary-button {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.primary-button:hover:not(:disabled) { background: #066f69; border-color: #066f69; }
.primary-button:disabled { opacity: .42; cursor: not-allowed; }
.secondary-button {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
}

.booking-layout {
    margin-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(390px, .65fr);
    align-items: start;
    gap: 24px;
}
.profile-column { min-width: 0; display: grid; gap: 20px; }
.section-card,
.booking-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}
.section-card { padding: 28px; }
.booking-card {
    position: sticky;
    top: 104px;
    padding: 26px;
    box-shadow: var(--shadow-soft);
}
.section-heading { margin-bottom: 20px; }
.section-heading--split,
.booking-card__head,
.location-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.section-heading h2,
.booking-card h2 {
    margin: 0;
    font-size: 23px;
    line-height: 1.15;
    letter-spacing: -.03em;
}
.section-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}
.count-pill,
.secure-pill {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: #475467;
    font-size: 12px;
    font-weight: 800;
}
.secure-pill { background: #ecfdf3; color: var(--success); }

.service-list { display: grid; gap: 10px; }
.service-choice {
    width: 100%;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 17px;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    color: var(--ink);
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.service-choice:hover {
    border-color: #b7b2f5;
    transform: translateY(-1px);
}
.service-choice.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px var(--accent);
}
.service-choice__check {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid #cfd5df;
    border-radius: 50%;
    color: transparent;
    font-size: 13px;
}
.service-choice.selected .service-choice__check {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}
.service-choice__copy { min-width: 0; display: grid; gap: 3px; }
.service-choice__copy small {
    color: #776ce9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.service-choice__copy strong { font-size: 16px; }
.service-choice__copy p {
    margin: 2px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}
.service-choice__copy span { color: var(--muted); font-size: 12px; font-weight: 700; }
.service-choice > b { white-space: nowrap; font-size: 15px; }

.worker-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.worker-card {
    min-width: 0;
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.worker-card:not(:disabled) { cursor: pointer; }
.worker-card:not(:disabled):hover {
    border-color: #b7b2f5;
    transform: translateY(-1px);
}
.worker-card.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px var(--accent);
}
.worker-card:disabled {
    cursor: default;
    opacity: .72;
}
.worker-card img,
.avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    object-fit: cover;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
}
.worker-card div { min-width: 0; }
.worker-card strong { font-size: 14px; }
.worker-card p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-frame {
    height: 300px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.reviews-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.review-card {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.review-card__head { display: flex; justify-content: space-between; gap: 12px; }
.review-card__head span { color: #f5a524; letter-spacing: 1px; }
.review-card p { color: #344054; line-height: 1.55; font-size: 13px; }
.review-card small { color: var(--success); font-weight: 700; }
.review-card blockquote {
    margin: 14px 0 0;
    padding: 12px;
    display: grid;
    gap: 5px;
    border-radius: 12px;
    background: var(--surface-soft);
    color: #475467;
    font-size: 12px;
}
.text-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--accent);
    font-weight: 800;
    text-underline-offset: 3px;
}

.choice-summary {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 15px;
    background: var(--surface-soft);
}
.choice-summary > span,
.flow-title > span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}
.choice-summary > span.done { background: var(--accent); color: #fff; border-color: var(--accent); }
.choice-summary div { min-width: 0; display: grid; gap: 2px; }
.choice-summary small,
.choice-summary div > span { color: var(--muted); font-size: 11px; }
.choice-summary strong { font-size: 14px; }

.flow-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.flow-title { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.flow-title div { display: grid; gap: 2px; }
.flow-title strong { font-size: 14px; }
.flow-title small { color: var(--muted); font-size: 11px; }

input, select, textarea {
    width: 100%;
    border: 1px solid #d7dce5;
    border-radius: 13px;
    background: #fff;
    color: var(--ink);
    outline: none;
}
input, select { min-height: 48px; padding: 10px 12px; }
textarea { min-height: 84px; padding: 12px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(91, 78, 232, .10);
}
input:disabled, select:disabled { background: #f2f4f7; color: #98a2b3; }

.slot-list {
    margin-top: 12px;
    max-height: 185px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding-right: 3px;
}
.slot-button {
    min-height: 42px;
    border: 1px solid #d7dce5;
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}
.slot-button:hover,
.slot-button.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.empty-state,
.loading-state {
    grid-template-columns: 1fr;
    padding: 16px;
    text-align: center;
    border: 1px dashed #d7dce5;
    border-radius: 13px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
}
.empty-state p,
.loading-state p { margin: 0; }
.skeleton-row {
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(90deg, #f1f2f5 25%, #fafafa 50%, #f1f2f5 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 12px;
    font-weight: 800;
}
.full-width { grid-column: 1 / -1; }
.optional-label { color: var(--muted); font-weight: 500; }
.selected-slot-box {
    margin: 14px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 13px;
    border: 1px solid #d9d4ff;
    border-radius: 13px;
    background: var(--accent-soft);
}
.selected-slot-box div { display: grid; gap: 3px; }
.selected-slot-box span { color: #6b63bd; font-size: 11px; }
.selected-slot-box strong { font-size: 13px; }
.text-button {
    border: 0;
    padding: 4px;
    background: transparent;
    color: var(--accent);
    font-weight: 800;
    font-size: 12px;
}
.payment-note {
    margin-bottom: 14px;
    display: flex;
    gap: 9px;
    align-items: center;
    color: #34665a;
}
.payment-note > span {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #d9fbe9;
    font-size: 12px;
    font-weight: 800;
}
.payment-note p { margin: 0; font-size: 12px; line-height: 1.45; }
.submit-hint { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.message {
    margin-top: 14px;
    padding: 12px 13px;
    border: 1px solid #a6f4c5;
    border-radius: 12px;
    background: #ecfdf3;
    color: #067647;
    font-size: 12px;
    font-weight: 700;
}
.message.error { border-color: #fecdca; background: #fef3f2; color: #b42318; }

.success-card { padding: 12px 2px 2px; text-align: center; }
.success-icon {
    width: 62px;
    height: 62px;
    margin: 4px auto 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #d9fbe9;
    color: var(--success);
    font-size: 28px;
    font-weight: 800;
}
.success-card > p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.success-details {
    margin: 20px 0;
    padding: 4px 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface-soft);
    text-align: left;
}
.success-details div {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.success-details div:last-child { border: 0; }
.success-details dt { color: var(--muted); font-size: 11px; }
.success-details dd { margin: 0; font-size: 12px; font-weight: 800; }
.success-card .secondary-button { width: 100%; margin-top: 9px; }

.salon-events-list,
.salon-posts-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.salon-event-card,
.salon-post-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
    transition: transform .18s ease, box-shadow .18s ease;
}

.salon-event-card:hover,
.salon-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(16, 24, 40, .09);
}

.salon-event-card__media,
.salon-post-card__media {
    display: grid;
    place-items: center;
    height: 178px;
    overflow: hidden;
    color: #6b63bd;
    background: linear-gradient(135deg, #eeecff, #f7f8fb);
    font-size: 34px;
    text-decoration: none;
}

.salon-event-card__media img,
.salon-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.salon-event-card:hover img,
.salon-post-card:hover img {
    transform: scale(1.025);
}

.salon-event-card__body,
.salon-post-card__body {
    padding: 17px;
}

.salon-event-card__date,
.salon-post-card small {
    display: block;
    color: #6b63bd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .02em;
}

.salon-event-card h3,
.salon-post-card h3 {
    margin: 7px 0 6px;
    font-size: 17px;
    line-height: 1.3;
}

.salon-event-card h3 a,
.salon-post-card h3 a {
    text-decoration: none;
}

.salon-event-card p,
.salon-post-card p {
    min-height: 54px;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.salon-event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.salon-event-card__meta span {
    padding: 5px 7px;
    border-radius: 8px;
    color: #475467;
    background: var(--surface-soft);
    font-size: 9px;
    font-weight: 700;
}

.salon-event-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.salon-event-card__footer strong {
    color: var(--ink);
    font-size: 13px;
}

.event-details-link {
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.salon-post-card .event-details-link {
    display: inline-block;
    margin-top: 12px;
}

@media (max-width: 1120px) {
    .booking-layout { grid-template-columns: minmax(0, 1fr) 390px; }
    .worker-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .page-shell { width: min(100% - 24px, 760px); margin-top: 14px; }
    .hero-card { min-height: 300px; }
    .hero-content { grid-template-columns: auto 1fr; padding: 24px; }
    .hero-button { display: none; }
    .booking-layout { grid-template-columns: 1fr; }
    .booking-card { position: static; order: -1; }
    .worker-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
    .page-shell { width: 100%; margin: 0 auto 40px; }
    .hero-card { min-height: 255px; border-radius: 0 0 22px 22px; }
    .hero-content { grid-template-columns: 54px 1fr; gap: 13px; padding: 22px 16px; }
    .business-logo { width: 54px; height: 54px; border-radius: 16px; font-size: 22px; }
    .hero-main h1 { font-size: 31px; }
    .business-description { font-size: 13px; }
    .business-meta { gap: 8px; font-size: 11px; }
    .booking-layout { gap: 12px; margin-top: 12px; }
    .section-card,
    .booking-card { border-radius: 18px; padding: 18px 15px; border-left: 0; border-right: 0; }
    .section-heading--split,
    .location-heading { align-items: flex-start; }
    .service-choice { grid-template-columns: 24px minmax(0, 1fr); }
    .service-choice > b { grid-column: 2; justify-self: start; }
    .worker-list,
    .reviews-list,
    .salon-events-list,
    .salon-posts-list { grid-template-columns: 1fr; }
    .slot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: auto; }
    .map-frame { height: 240px; }
}
