:root {
    --primary: #1e5fe0;
    --primary-dark: #1547a4;
    --secondary: #eef3ff;
    --accent: #54d1ff;
    --text: #101828;
    --text-muted: #6b7280;
    --border-radius: 14px;
    --shadow-sm: 0 18px 40px rgba(15, 23, 42, 0.12);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: radial-gradient(circle at top, rgba(30, 95, 224, 0.12), transparent 55%), #f5f7ff;
    color: var(--text);
    min-height: 100vh;
}

body.faq-open {
    overflow: hidden;
}

#app {
    width: 100%;
    max-width: none;
    padding: 0;
    background: transparent;
}

body.booking-mode {
    background: #f5f7ff;
}

body.booking-mode #app {
    max-width: 1120px;
    margin: 32px auto;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: clamp(24px, 4vw, 48px);
}

#app.welcome-mode {
    padding: 0;
}

.language-switcher {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.language-switcher .lang-option {
    border: 1px solid rgba(30, 95, 224, 0.35);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 6px 16px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.language-switcher .lang-option.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(30, 95, 224, 0.35);
    transform: translateY(-1px);
}

.lang-flag {
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
}

.home-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(32px, 6vw, 72px) clamp(16px, 5vw, 48px) 80px;
    display: grid;
    gap: clamp(40px, 5vw, 72px);
}

.section-heading {
    max-width: 640px;
}

.section-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 40px);
}

.section-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(32px, 4vw, 60px);
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 95, 224, 0.16), #ffffff);
    border-radius: 32px;
    padding: clamp(28px, 5vw, 48px);
    box-shadow: var(--shadow-sm);
}

.hero-content h1 {
    margin: 8px 0 12px;
    font-size: clamp(36px, 6vw, 54px);
}

.hero-subtitle {
    margin: 0 0 18px;
    font-size: 18px;
    color: var(--text-muted);
}

.hero-body p {
    margin: 0 0 10px;
    line-height: 1.6;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(108, 78, 210, 0.15);
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin: 20px 0;
}

.hero-contact {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-contact a {
    font-weight: 600;
    color: var(--primary-dark);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    max-width: 360px;
    width: 100%;
    text-align: center;
}

.hero-logo img {
    max-width: 120px;
    height: auto;
    margin-bottom: 16px;
}

.hero-faces {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.hero-face {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 78, 210, 0.15);
    margin-left: -12px;
}

.hero-face:first-child {
    margin-left: 0;
}

.hero-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-face-initial {
    font-weight: 600;
    color: var(--primary-dark);
}

.hero-face-count {
    background: var(--primary-dark);
    color: #fff;
    font-weight: 600;
}

.hero-note {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.process-section,
.stylists-section,
.reviews-section,
.contact-section {
    display: grid;
    gap: 24px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.process-step {
    background: rgba(108, 78, 210, 0.08);
    border-radius: 20px;
    padding: 24px;
}

.process-index {
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-dark);
}

.process-step h3 {
    margin: 12px 0 8px;
}

.stylists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.stylists-grid.single {
    justify-items: center;
}

.stylists-grid.single .stylist-card {
    max-width: 420px;
    width: 100%;
}

.stylist-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 18px;
    padding: 20px;
}

@media (min-width: 768px) {
    .stylist-card {
        grid-template-columns: 200px 1fr;
        align-items: center;
        gap: 24px;
    }
}

.stylist-image img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 16px;
}

.stylist-placeholder {
    width: 100%;
    height: 180px;
    border-radius: 16px;
    background: rgba(108, 78, 210, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 24px;
}

.stylist-info h3 {
    margin: 0 0 6px;
}

.stylist-info p {
    margin: 0 0 8px;
    color: var(--text-muted);
}

.stylist-bio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

.stylists-empty {
    margin: 0;
    color: var(--text-muted);
}

.reviews-section {
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.faq-inline {
    margin-top: 18px;
    text-align: left;
    color: var(--text-muted);
    line-height: 1.5;
}

.faq-inline p {
    margin: 0 0 8px;
}

.faq-inline .faq-trigger {
    margin-top: 4px;
}

.review-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 32px rgba(33, 27, 69, 0.12);
    display: grid;
    gap: 14px;
}

.review-rating .star {
    font-size: 18px;
    color: #d7d8db;
    margin-right: 2px;
}

.review-rating .star.filled {
    color: #ffb347;
}

.review-comment {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.review-footer strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

.review-stylist {
    font-weight: 600;
    color: var(--primary-dark);
}

.faq-trigger {
    min-width: 160px;
}

.contact-card {
    margin-top: 20px;
    padding: 24px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    display: grid;
    gap: 16px;
}

.contact-mail a {
    color: var(--primary);
    font-weight: 600;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(108, 78, 210, 0.2);
    border-radius: 12px;
    padding: 12px;
    font-size: 15px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-feedback {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
}

.contact-feedback.hidden {
    display: none;
}

.contact-feedback.success {
    background: rgba(31, 138, 77, 0.12);
    color: #1f8a4d;
}

.contact-feedback.error {
    background: rgba(178, 58, 58, 0.12);
    color: #b23a3a;
}

.faq-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 48px);
    background: rgba(24, 22, 48, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1000;
}

.faq-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.faq-modal {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 40px 80px rgba(22, 16, 64, 0.32);
    width: min(720px, 100%);
    max-height: min(80vh, 640px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.faq-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 26px;
    border-bottom: 1px solid rgba(108, 78, 210, 0.15);
}

.faq-modal-header h2 {
    margin: 0;
    font-size: 22px;
}

.faq-close {
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
    transition: background 0.2s ease, color 0.2s ease;
}

.faq-close:hover,
.faq-close:focus {
    background: rgba(108, 78, 210, 0.12);
    color: var(--primary);
    outline: none;
}

.faq-modal-body {
    padding: 12px 26px 28px;
    overflow-y: auto;
    text-align: left;
}

.faq-section {
    display: grid;
    gap: 12px;
    margin: 0;
}

.faq-item {
    border-radius: 14px;
    background: linear-gradient(155deg, #ffffff, #f4f1ff);
    border: 1px solid rgba(108, 78, 210, 0.15);
    padding: 0 18px;
    transition: box-shadow 0.2s ease;
}

.faq-item[open] {
    box-shadow: 0 14px 30px rgba(33, 27, 69, 0.12);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    padding: 18px 0;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(108, 78, 210, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 18px;
}

.faq-text {
    margin: 0 0 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-text:last-child {
    margin-bottom: 0;
}

.step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

#schedule-section .step-actions {
    justify-content: space-between;
}

#form-section .step-actions {
    justify-content: flex-start;
}

.button-secondary {
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid rgba(108, 78, 210, 0.25);
    background: #ffffff;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.button-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(108, 78, 210, 0.15);
}

.button-primary.is-disabled,
.button-secondary.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.step-section.hidden {
    display: none;
}

.booking-shell h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 36px);
}

.booking-shell p.lead {
    margin: 0 0 32px;
    color: var(--text-muted);
    font-size: 18px;
}

.booking-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.booking-header-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.booking-title {
    flex: 1;
}

.booking-logo img {
    max-width: 160px;
    width: 100%;
    height: auto;
}

.stepper {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.step {
    flex: 1;
    background: var(--secondary);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    transition: background 0.2s ease, color 0.2s ease;
}

.step.active {
    background: var(--primary);
    color: #ffffff;
}

.step .index {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.stylist-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 8px;
}

.service-card {
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff, #fbf9ff);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform 0.2s ease, border 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card.active {
    border-color: var(--primary);
}

.service-card h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.service-card .description {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.service-card .meta {
    color: var(--text-muted);
    font-size: 15px;
}

.stylist-card,
.service-card {
    transition: transform 0.2s ease, border 0.2s ease;
}

.stylist-card {
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px;
    background: linear-gradient(145deg, #ffffff, #fbf9ff);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
    align-items: stretch;
}

.stylist-card.active {
    border-color: var(--primary);
}

.stylist-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.stylist-card h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.stylist-card.has-image {
    gap: 20px;
}

.stylist-image {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #f1effb;
}

.stylist-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.stylist-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    max-width: 100%;
}

.stylist-content .summary {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
}

.stylist-content .bio {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
    font-size: 14px;
    word-break: break-word;
}

.service-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: none;
}

.service-unavailable {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.calendar {
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #f4f1ff);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    max-width: 420px;
}

.schedule-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    align-items: flex-start;
}

.time-panel {
    background: linear-gradient(135deg, #ffffff, #fdf7ec);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.time-panel h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-header button {
    border: none;
    background: var(--secondary);
    color: var(--primary);
    font-size: 18px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.calendar-header button:hover {
    background: rgba(108, 78, 210, 0.1);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.calendar-grid .weekday {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.calendar-grid button {
    border: none;
    background: transparent;
    padding: 12px 0;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.calendar-grid button.available {
    background: rgba(108, 78, 210, 0.1);
    color: var(--primary);
}

.calendar-grid button.selected {
    background: var(--primary);
    color: #ffffff;
}

.calendar-grid button.disabled {
    color: var(--text-muted);
    opacity: 0.45;
    cursor: not-allowed;
}

.time-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.time-grid button {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 15px;
    background: var(--secondary);
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.time-grid button:hover {
    transform: translateY(-2px);
}

.time-grid button.selected {
    background: var(--primary);
    color: #ffffff;
}

.booking-form {
    display: grid;
    gap: 16px;
    max-width: 420px;
    margin-top: 24px;
}

.booking-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.booking-form input,
.booking-form textarea {
    border: 1px solid rgba(108, 78, 210, 0.15);
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    font-family: inherit;
    width: 100%;
}

.booking-form textarea {
    min-height: 90px;
    resize: vertical;
}

.consent-field {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(108, 78, 210, 0.08);
    font-size: 14px;
    color: var(--text);
}

.consent-field input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.consent-field label {
    line-height: 1.5;
}

@media (max-width: 768px) {
    .home-shell {
        padding: 32px 18px 60px;
        gap: 40px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .booking-logo img {
        max-width: 120px;
    }

    .booking-logo {
        order: 1;
    }

    .booking-title {
        order: 2;
        width: 100%;
    }

    .booking-shell h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .booking-shell p.lead {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .step-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button-primary,
    .button-secondary {
        width: 100%;
    }

    .schedule-layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .stylist-card.has-image {
        align-items: stretch;
    }

    .stylist-image {
        max-height: 220px;
        width: 100%;
    }

    .calendar,
    .time-panel {
        padding: 18px;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    .stylist-list {
        grid-template-columns: 1fr;
    }

    .consent-field {
        grid-template-columns: 1fr;
    }

    .consent-field input[type="checkbox"] {
        margin-top: 0;
    }

    .faq-modal {
        max-height: 85vh;
    }

    .faq-modal-header {
        padding: 18px;
    }

    .faq-modal-body {
        padding: 12px 18px 24px;
    }
}

.button-primary {
    padding: 14px 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: var(--primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(108, 78, 210, 0.35);
}

.alert {
    padding: 16px;
    border-radius: 14px;
    background: rgba(108, 78, 210, 0.08);
    color: var(--primary);
    margin-top: 24px;
}

.success-card {
    padding: 32px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(108, 78, 210, 0.1), rgba(255, 179, 71, 0.08));
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.success-card h2 {
    margin-top: 0;
}

@media (max-width: 920px) {
    .stepper {
        flex-direction: column;
    }

    .calendar {
        max-width: none;
    }
}

@media (min-width: 769px) {
    .stylist-card.has-image {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .stylist-image {
        flex: none;
        max-width: 100%;
        max-height: 260px;
        width: 100%;
        height: auto;
    }

    .stylist-card.has-image .stylist-image img {
        width: 100%;
        height: auto;
    }
}
