.book-shell {
    max-width: 980px;
    margin: 0 auto 28px;
}

.book-header {
    text-align: center;
    margin-bottom: 18px;
}

.book-title {
    margin: 0 0 10px;
    font-size: 44px;
    line-height: 1.05;
    color: #0b1a2c;
}

.book-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.book-card,
.book-slots-card,
.book-form-card {
    background: linear-gradient(180deg, #07142b 0%, #081630 100%);
    border: 1px solid rgba(61, 109, 192, .22);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(8, 22, 48, .18);
    padding: 18px;
    margin-bottom: 14px;
}

.book-calendar-head {
    display: grid;
    grid-template-columns: 110px 1fr 110px;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.book-month-title {
    margin: 0;
    text-align: center;
    color: #f8fafc;
    font-size: 26px;
    font-weight: 800;
}

.book-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: rgba(26, 41, 77, .96);
    color: #e5eefc;
    text-decoration: none;
    border: 1px solid rgba(72, 114, 196, .28);
    font-size: 13px;
    font-weight: 700;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid rgba(61, 109, 192, .18);
    border-radius: 14px;
    overflow: hidden;
}

.book-grid+.book-grid {
    border-top: 0;
}

.book-grid-head {
    border-bottom: 0;
    margin-bottom: 0;
}

.book-head-cell {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #8ea3c7;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: rgba(18, 30, 58, .9);
    border-right: 1px solid rgba(61, 109, 192, .12);
}

.book-head-cell:last-child {
    border-right: 0;
}

.book-day {
    min-height: 84px;
    padding: 10px;
    text-decoration: none;
    color: #f8fafc;
    background: rgba(8, 22, 48, .92);
    border-right: 1px solid rgba(61, 109, 192, .10);
    border-top: 1px solid rgba(61, 109, 192, .10);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.book-day:hover {
    transform: translateY(-1px);
    border-color: rgba(93, 156, 255, .28);
}

.book-day.other-month {
    opacity: .32;
}

.book-day.today {
    box-shadow: inset 0 0 0 1px rgba(93, 156, 255, .28);
}

.book-day.selected {
    box-shadow: inset 0 0 0 2px rgba(93, 156, 255, .55);
}

.book-day-num {
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
}

.book-day-meta {
    font-size: 11px;
    font-weight: 800;
    color: #7bf1b0;
}

.book-day-meta.muted {
    color: #8b93a7;
}

.book-day.state-walkin .book-day-meta {
    color: #8ec9ff;
}

.book-day.state-closed {
    background: rgba(10, 16, 30, .96);
}

.book-day.state-closed .book-day-num {
    color: #a1a8b6;
}

.book-note-line {
    text-align: center;
    padding-top: 14px;
    color: #9fb2d5;
    font-size: 12px;
}

.book-selected-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.book-selected-head h3 {
    margin: 0;
    color: #f8fafc;
    font-size: 22px;
    font-weight: 800;
}

.book-duration-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.book-inline-label {
    color: #c7d3ea;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.slot-btn {
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(61, 109, 192, .20);
    background: rgba(10, 20, 39, .96);
    color: #86efac;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.slot-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(34, 197, 94, .36);
}

.slot-btn.active {
    background: rgba(18, 83, 58, .95);
    border-color: rgba(34, 197, 94, .55);
    color: #eafff2;
}

.slot-empty {
    grid-column: 1 / -1;
    color: #9fb2d5;
    font-size: 13px;
    padding: 12px 4px;
}

.book-form-head {
    margin-bottom: 14px;
}

.book-form-head h3 {
    margin: 0 0 8px;
    color: #f8fafc;
    font-size: 22px;
    font-weight: 800;
}

.book-form-head p {
    margin: 0;
    color: #9fb2d5;
    font-size: 13px;
}

.selected-slot-box {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #d9e4f7;
    margin-bottom: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    color: #d9e4f7;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.in,
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(61, 109, 192, .18);
    background: linear-gradient(180deg, #0b1830, #081326);
    color: #f8fafc;
    padding: 10px 12px;
    box-sizing: border-box;
}

.form-field textarea {
    min-height: 110px;
    resize: vertical;
}

.form-field select option {
    background: #0f1b2e;
    color: #e5e7eb;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 16px;
}

.btn-book-submit {
    min-height: 46px;
    padding: 0 18px;
    border-radius: 10px;
    border: 0;
    background: #d1b24a;
    color: #0c1526;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 900px) {
    .slot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .book-title {
        font-size: 32px;
    }

    .book-calendar-head {
        grid-template-columns: 1fr;
    }

    .book-month-title {
        order: -1;
    }

    .slot-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .book-selected-head {
        align-items: flex-start;
    }
}

.book-type-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 260px;
}

.book-type-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.book-type-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.book-type-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.book-type-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(61, 109, 192, .20);
    background: rgba(10, 20, 39, .96);
    color: #d9e4f7;
    font-size: 13px;
    font-weight: 800;
    transition: border-color .12s ease, background .12s ease, color .12s ease;
}

.book-type-chip input:checked+span {
    background: rgba(18, 83, 58, .95);
    border-color: rgba(34, 197, 94, .55);
    color: #eafff2;
}

.book-type-note {
    margin: 0 0 14px;
    color: #9fb2d5;
    font-size: 13px;
}

.slot-btn-disabled {
    opacity: .42;
    color: #8f99ae;
    cursor: not-allowed;
    border-color: rgba(120, 130, 160, .18);
    background: rgba(20, 24, 40, .88);
}

.slot-btn-disabled:hover {
    transform: none;
    border-color: rgba(120, 130, 160, .18);
}

.walkin-box {
    padding: 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(19, 73, 58, .28), rgba(9, 34, 58, .28));
    border: 1px solid rgba(34, 197, 94, .22);
    color: #e7f6ee;
}

.walkin-box strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.walkin-box p {
    margin: 6px 0;
}

.walkin-box-closed {
    border-color: rgba(239, 68, 68, .22);
    background: linear-gradient(180deg, rgba(92, 18, 34, .24), rgba(9, 34, 58, .24));
}