* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f4f7fb;
    --bg-2: #edf3fa;
    --card: #ffffff;
    --text: #142033;
    --muted: #667085;
    --line: #d7e2ee;
    --primary: #2563eb;
    --primary-soft: #eaf1ff;
    --primary-hover: #1d4ed8;
    --success-bg: #ecfdf3;
    --success-border: #86efac;
    --success-text: #166534;
    --error-bg: #fef2f2;
    --error-border: #fecaca;
    --error-text: #b91c1c;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --warning-text: #92400e;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    color: var(--text);
    line-height: 1.5;
}

.page-wrap {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 36px 20px 60px;
}

.site-header {
    text-align: center;
    margin-bottom: 26px;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.logo-badge span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4f8cff;
    box-shadow: 0 0 10px rgba(79, 140, 255, 0.5);
}

.site-header h1 {
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--text);
}

.site-header h1 em {
    font-style: normal;
    color: var(--primary);
}

.site-header p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 18px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.step-badge {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--primary-soft);
    border: 1px solid #cfe0ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.card-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.card-subtitle {
    color: var(--muted);
    font-size: 15px;
}

.date-input-wrap input,
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 15px 16px;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: 0.2s ease;
}

.date-input-wrap input:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.form-group {
    display: block;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.required {
    color: #dc2626;
}

.input-hint {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.slot {
    border-radius: 14px;
    padding: 15px 12px;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid var(--line);
    background: #f8fbff;
    color: var(--text);
    cursor: pointer;
    transition: 0.2s ease;
}

.slot:hover {
    border-color: #93c5fd;
    background: #eef4ff;
}

.slot--free {
    background: #f8fbff;
}

.slot--selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.slot--booked {
    background: #f3f4f6;
    color: #98a2b3;
    border-color: #e5e7eb;
    cursor: not-allowed;
    text-decoration: line-through;
}

.selected-time-display {
    margin-top: 14px;
}

.selected-time-text {
    color: var(--primary);
    font-weight: 800;
}

.submit-btn {
    width: 100%;
    border: none;
    border-radius: 15px;
    background: var(--primary);
    color: #fff;
    padding: 16px 20px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.submit-btn:hover {
    background: var(--primary-hover);
}

.submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.msg-box {
    display: none;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    box-shadow: var(--shadow);
}

.msg-box--success {
    display: block;
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success-text);
}

.msg-box--error {
    display: block;
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error-text);
}

.msg-box--warning {
    display: block;
    background: var(--warning-bg);
    border-color: var(--warning-border);
    color: var(--warning-text);
}

.success-box {
    text-align: center;
    padding: 6px 4px;
}

.success-box h3 {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 10px;
    color: #15803d;
    font-weight: 800;
}

.success-box p {
    font-size: 18px;
    color: #166534;
    margin: 6px 0;
    font-weight: 600;
}

.loading-msg,
.error-msg {
    font-size: 15px;
}

.loading-msg {
    color: var(--muted);
}

.error-msg {
    color: var(--error-text);
}

.contact-strip {
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 18px 22px;
    text-align: center;
    margin-bottom: 24px;
    color: var(--muted);
}

.contact-strip a {
    color: #16a34a;
    font-weight: 800;
    text-decoration: none;
    margin-left: 6px;
}

.site-footer {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    padding-top: 4px;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .page-wrap {
        padding: 28px 14px 40px;
    }

    .site-header h1 {
        font-size: 42px;
    }

    .site-header p {
        font-size: 16px;
    }

    .card {
        padding: 20px;
    }

    .card-title {
        font-size: 24px;
    }

    .slots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .success-box h3 {
        font-size: 28px;
    }

    .success-box p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .site-header h1 {
        font-size: 36px;
    }

    .slots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}