/* Table Booking Pro – Public Form Styles */
.tbp-booking-wrapper {
    max-width: 680px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tbp-booking-header {
    text-align: center;
    margin-bottom: 32px;
}

.tbp-booking-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px;
}

.tbp-booking-header p {
    color: #718096;
    font-size: 15px;
    margin: 0;
}

.tbp-booking-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
}

.tbp-step {
    display: none;
}
.tbp-step.active {
    display: block;
}

/* Progress indicator */
.tbp-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}
.tbp-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    flex: 1;
}
.tbp-progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.tbp-progress-step.done::after,
.tbp-progress-step.active::after {
    background: #2563eb;
}
.tbp-progress-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background .2s, color .2s;
}
.tbp-progress-step.active .tbp-progress-dot,
.tbp-progress-step.done .tbp-progress-dot {
    background: #2563eb;
    color: #fff;
}
.tbp-progress-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.tbp-progress-step.active .tbp-progress-label {
    color: #2563eb;
}

/* Form fields */
.tbp-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.tbp-field-group.full {
    grid-template-columns: 1fr;
}
@media (max-width: 520px) {
    .tbp-field-group { grid-template-columns: 1fr; }
    .tbp-booking-form { padding: 20px; }
}

.tbp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tbp-field label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.tbp-field input,
.tbp-field select,
.tbp-field textarea {
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a202c;
    background: #f8fafc;
    transition: border-color .15s, box-shadow .15s, background .15s;
    width: 100%;
    box-sizing: border-box;
}
.tbp-field input:focus,
.tbp-field select:focus,
.tbp-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.tbp-field textarea { resize: vertical; min-height: 72px; }

/* Slot grid */
.tbp-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
    margin-top: 8px;
}
.tbp-slot {
    padding: 10px 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    background: #f8fafc;
    user-select: none;
}
.tbp-slot:hover:not(.unavailable) {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}
.tbp-slot.selected {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}
.tbp-slot.unavailable {
    opacity: .4;
    cursor: not-allowed;
    text-decoration: line-through;
}
.tbp-slot small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    margin-top: 2px;
}

/* Buttons */
.tbp-btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}
.tbp-submit-btn, .tbp-next-btn, .tbp-back-btn {
    padding: 11px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .15s, transform .1s;
}
.tbp-submit-btn, .tbp-next-btn {
    background: #2563eb;
    color: #fff;
}
.tbp-submit-btn:hover, .tbp-next-btn:hover {
    background: #1d4ed8;
}
.tbp-submit-btn:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}
.tbp-back-btn {
    background: #f1f5f9;
    color: #475569;
}
.tbp-back-btn:hover { background: #e2e8f0; }

/* Summary box */
.tbp-summary-box {
    background: #f0f9ff;
    border: 1.5px solid #bae6fd;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.tbp-summary-box h3 {
    font-size: 14px;
    font-weight: 700;
    color: #0369a1;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.tbp-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
    border-bottom: 1px solid #e0f2fe;
}
.tbp-summary-row:last-child { border-bottom: none; }
.tbp-summary-row span:first-child { color: #64748b; }
.tbp-summary-row span:last-child  { font-weight: 600; color: #0f172a; }

/* Messages */
.tbp-message {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    display: none;
}
.tbp-message.show { display: block; }
.tbp-message-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.tbp-message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Loading spinner */
.tbp-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: tbp-spin .6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
@keyframes tbp-spin { to { transform: rotate(360deg); } }

/* Success screen */
.tbp-success-screen {
    text-align: center;
    padding: 32px 16px;
}
.tbp-success-icon {
    width: 64px; height: 64px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}
.tbp-success-screen h3 { font-size: 22px; color: #065f46; margin: 0 0 8px; }
.tbp-success-screen p  { color: #475569; font-size: 15px; }
