
/* 1. Basic setup */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --background: #f5f7fb;
    --surface: #ffffff;
    --text: #172033;
    --muted: #64748b;
    --border: #dbe2ea;
    --success: #15803d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

/* 2. Header */
header {
    background: var(--surface);
    padding: 32px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

header h1 {
    margin: 0 0 8px;
    font-size: 2rem;
}

header p {
    margin: 0;
    color: var(--muted);
}

/* 3. Main layout */
main {
    width: min(100% - 32px, 1000px);
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

section {
    background: var(--surface);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
}

section h2 {
    margin: 0 0 20px;
    font-size: 1.35rem;
}

/* 4. Services */
.service-list {
    display: grid;
    gap: 16px;
}

.service {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}

.service h3 {
    margin: 0 0 8px;
}

.service p {
    margin: 6px 0;
    color: var(--muted);
}

.service .price {
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 700;
}

.service:has(.selected) {
    border-color: var(--primary);
    background: #eff6ff;
}

/* 5. Buttons */
button {
    border: none;
    border-radius: 8px;
    padding: 11px 16px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    transition: background 0.2s;
}

button:hover {
    background: var(--primary-dark);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 2px;
}

.service button {
    margin-top: 10px;
    width: 100%;
}

.service button.selected {
    background: var(--success);
}

/* 6. Booking form */
#booking-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

#booking-form label {
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: 600;
}

#booking-form input,
#booking-form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--text);
}

#booking-form input:focus,
#booking-form select:focus {
    border-color: var(--primary);
}

#booking-form input[readonly] {
    background: #f1f5f9;
}

#booking-form button {
    margin-top: 16px;
    width: 100%;
}

/* 7. Booking feedback */
#booking-message {
    margin: 16px 0 0;
    font-size: 0.95rem;
}

#booking-message.success {
    padding: 12px;
    color: var(--success);
    background: #f0fdf4;
    border-radius: 8px;
}

/* 8. Footer */
footer {
    padding: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

/* 9. Mobile layout */
@media (max-width: 700px) {
    header {
        padding: 24px 16px;
    }

    header h1 {
        font-size: 1.65rem;
    }

    main {
        width: calc(100% - 24px);
        margin: 20px auto;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    section {
        padding: 18px;
    }
}
