.nwb-booking-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
}

.nwb-booking-form {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.06);
}

.nwb-form-header {
    margin-bottom: 22px;
}

.nwb-form-header h3 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.nwb-form-header p {
    margin: 0;
    color: #666;
}

.nwb-field {
    margin-bottom: 18px;
}

.nwb-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.nwb-field label span {
    color: #d63638;
}

.nwb-field input,
.nwb-field select,
.nwb-field textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 16px;
    background: #fff;
    box-sizing: border-box;
}

.nwb-field textarea {
    min-height: 110px;
    resize: vertical;
}

.nwb-field input:focus,
.nwb-field select:focus,
.nwb-field textarea:focus {
    outline: none;
    border-color: #1d72aa;
    box-shadow: 0 0 0 3px rgba(29, 114, 170, 0.12);
}

.nwb-slots-help {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.nwb-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 10px;
}

.nwb-slot-btn {
    border: 1px solid #d7d7d7;
    border-radius: 12px;
    padding: 11px 12px;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-weight: 700;
    text-align: center;
    transition: all 0.16s ease;
}

.nwb-slot-btn.is-available:hover,
.nwb-slot-btn.is-selected {
    border-color: #1d72aa;
    background: #eef7fd;
    color: #0b527f;
}

.nwb-slot-btn.is-selected {
    box-shadow: 0 0 0 3px rgba(29, 114, 170, 0.12);
}

.nwb-slot-btn.is-booked {
    background: #f6f6f6;
    color: #999;
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.8;
}

.nwb-empty-slots,
.nwb-loading-slots {
    grid-column: 1 / -1;
    border: 1px dashed #d7d7d7;
    border-radius: 12px;
    padding: 14px;
    color: #666;
    background: #fafafa;
}

.nwb-submit-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    background: #111;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.16s ease;
}

.nwb-submit-btn:hover {
    opacity: 0.9;
}

.nwb-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.nwb-message {
    display: none;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-weight: 600;
}

.nwb-message.nwb-success {
    display: block;
    background: #edfaef;
    color: #126b24;
    border: 1px solid #bfe7c7;
}

.nwb-message.nwb-error {
    display: block;
    background: #fff0f0;
    color: #9a1b1b;
    border: 1px solid #f1b6b6;
}

@media (max-width: 640px) {
    .nwb-booking-form {
        padding: 20px;
        border-radius: 14px;
    }

    .nwb-form-header h3 {
        font-size: 23px;
    }

    .nwb-slots {
        grid-template-columns: 1fr;
    }
}

.nwb-choice-group {
    display: grid;
    gap: 8px;
}

.nwb-choice-option {
    display: flex !important;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    font-weight: 500 !important;
    cursor: pointer;
}

.nwb-choice-option input {
    width: auto !important;
    min-height: auto !important;
    margin: 0;
}

.nwb-html-field {
    color: inherit;
}

.nwb-html-field p:last-child {
    margin-bottom: 0;
}

/* Improved slot layout: separates time and status to avoid text overflow */
.nwb-slots {
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
    align-items: stretch;
}

.nwb-slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 66px;
    line-height: 1.2;
    white-space: normal;
    overflow: hidden;
}

.nwb-slot-time {
    display: block;
    max-width: 100%;
    font-size: 14.5px;
    font-weight: 800;
    white-space: nowrap;
}

.nwb-slot-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.nwb-slot-icon {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
}

.nwb-slot-btn.is-available .nwb-slot-status {
    background: #ecfdf3;
    color: #087443;
}

.nwb-slot-btn.is-available .nwb-slot-icon {
    background: #12b76a;
    color: #ffffff;
}

.nwb-slot-btn.is-booked {
    text-decoration: none;
}

.nwb-slot-btn.is-booked .nwb-slot-time {
    text-decoration: line-through;
}

.nwb-slot-btn.is-booked .nwb-slot-status {
    background: #fff1f3;
    color: #b42318;
}

.nwb-slot-btn.is-booked .nwb-slot-icon {
    background: #f04438;
    color: #ffffff;
}

@media (max-width: 480px) {
    .nwb-slots {
        grid-template-columns: 1fr;
    }
}
