/**
 * Beautiful Restaurant Table Booking CSS - Complete Design System
 * Matching ui-preview.html design exactly with enhanced functionality
 */

:root {
    --rtb-primary-color: #4a6fa5;
    --rtb-secondary-color: #6b8cbe;
    --rtb-accent-color: #ff7d45;
    --rtb-success-color: #28a745;
    --rtb-error-color: #dc3545;
    --rtb-warning-color: #ffc107;
    --rtb-text-color: #2c3e50;
    --rtb-light-color: #ffffff;
    --rtb-border-color: #e3e8f0;
    --rtb-background-color: #f8fafc;
    --rtb-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --rtb-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
    --rtb-border-radius: 12px;
    --rtb-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --rtb-gradient: linear-gradient(135deg, var(--rtb-primary-color) 0%, var(--rtb-secondary-color) 100%);
}

/* Base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: var(--rtb-background-color);
    line-height: 1.6;
}

/* Main containers */
.rtb-booking-form-step-1,
.rtb-table-selection,
.rtb-customer-details {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 30px;
    background-color: var(--rtb-light-color);
    border-radius: var(--rtb-border-radius);
    box-shadow: var(--rtb-shadow);
    border: 1px solid var(--rtb-border-color);
}

/* Headings */
.rtb-booking-form-step-1 h3,
.rtb-table-selection h3,
.rtb-customer-details h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 28px;
    color: var(--rtb-primary-color);
    border-bottom: 2px solid var(--rtb-border-color);
    padding-bottom: 15px;
    font-weight: 600;
    text-align: center;
    position: relative;
}

/* Steps Progress Indicator */
.rtb-steps-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.rtb-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.rtb-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background-color: var(--rtb-border-color);
    z-index: 1;
}

.rtb-step-item.completed:not(:last-child)::after,
.rtb-step-item.active:not(:last-child)::after {
    background-color: var(--rtb-primary-color);
}

.rtb-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--rtb-border-color);
    color: var(--rtb-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    transition: var(--rtb-transition);
}

.rtb-step-item.active .rtb-step-number,
.rtb-step-item.completed .rtb-step-number {
    background-color: var(--rtb-primary-color);
    color: var(--rtb-light-color);
    box-shadow: 0 0 0 5px rgba(74, 111, 165, 0.2);
}

.rtb-step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--rtb-text-color);
    text-align: center;
}

.rtb-step-item.active .rtb-step-label,
.rtb-step-item.completed .rtb-step-label {
    color: var(--rtb-primary-color);
    font-weight: 600;
}

/* Form sections */
.rtb-form-section {
    margin-bottom: 35px;
    padding: 20px;
    background-color: var(--rtb-background-color);
    border-radius: var(--rtb-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Date time section */
.date-time-section {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 20px;
}

/* Form fields */
.form-field,
.rtb-form-group {
    flex: 1 1 30%;
    min-width: 200px;
    margin-bottom: 20px;
}

/* Date time specific fields */
.date-field,
.time-field,
.guests-field {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 200px;
}

.form-field label,
.rtb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--rtb-text-color);
    font-size: 15px;
}

.form-field input,
.form-field select,
.form-field textarea,
.rtb-form-group input,
.rtb-form-group select,
.rtb-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--rtb-border-color);
    border-radius: 8px;
    background-color: var(--rtb-light-color);
    font-size: 16px;
    box-sizing: border-box;
    color: var(--rtb-text-color);
    transition: var(--rtb-transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.rtb-form-group input:focus,
.rtb-form-group select:focus,
.rtb-form-group textarea:focus {
    border-color: var(--rtb-secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

/* Error styling for validation */
.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
    border-color: var(--rtb-error-color);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    display: block;
    color: var(--rtb-error-color);
    font-size: 14px;
    margin-top: 5px;
    font-weight: 500;
}

/* Required indicator */
.required-label {
    color: var(--rtb-accent-color);
    margin-left: 5px;
    font-size: 18px;
}

/* Buttons */
.rtb-check-availability-btn,
.rtb-continue-button,
.rtb-submit-button,
.rtb-btn-primary {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--rtb-transition);
    background-color: var(--rtb-primary-color);
    color: white;
    border: 2px solid var(--rtb-primary-color);
    box-shadow: 0 4px 10px rgba(74, 111, 165, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.rtb-check-availability-btn:hover,
.rtb-continue-button:hover,
.rtb-submit-button:hover,
.rtb-btn-primary:hover {
    background-color: var(--rtb-secondary-color);
    border-color: var(--rtb-secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(74, 111, 165, 0.25);
}

.rtb-back-button {
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--rtb-transition);
    background-color: #f5f7fa;
    border: 2px solid var(--rtb-border-color);
    color: var(--rtb-text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rtb-back-button:hover {
    background-color: #e9ecf0;
    transform: translateX(-3px);
}

/* Navigation buttons */
.rtb-navigation-buttons,
.rtb-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--rtb-border-color);
}

/* Table selection */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.table-item {
    position: relative;
    padding: 20px;
    border: 2px solid var(--rtb-border-color);
    border-radius: var(--rtb-border-radius);
    background-color: var(--rtb-light-color);
    cursor: pointer;
    transition: var(--rtb-transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    text-align: center;
    overflow: hidden;
}

.table-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--rtb-primary-color);
    opacity: 0;
    transition: var(--rtb-transition);
}

.table-item:hover {
    border-color: var(--rtb-secondary-color);
    background-color: #f9fafc;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.table-item:hover::before {
    opacity: 1;
}

.table-item.selected {
    border-color: var(--rtb-accent-color);
    background-color: #fff9f6;
    box-shadow: 0 5px 15px rgba(255, 125, 69, 0.15);
}

.table-item.selected::before {
    background-color: var(--rtb-accent-color);
    opacity: 1;
}

.table-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--rtb-primary-color);
}

.table-capacity {
    color: var(--rtb-text-color);
    margin-bottom: 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-description {
    font-size: 14px;
    color: #6c7a89;
    line-height: 1.5;
    border-top: 1px solid var(--rtb-border-color);
    padding-top: 10px;
    margin-top: 10px;
}

/* Booking summary - removed duplicate definition */

/* Modal/Result popup */
.rtb-booking-result {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.rtb-booking-result-content {
    max-width: 500px;
    width: 90%;
    padding: 35px;
    background-color: var(--rtb-light-color);
    border-radius: var(--rtb-border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    animation: popup-enter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popup-enter {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.rtb-result-icon {
    margin-bottom: 25px;
    font-size: 64px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rtb-icon-success {
    color: #4CAF50;
}

.rtb-icon-error {
    color: #f44336;
}

.rtb-result-message {
    margin-bottom: 25px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--rtb-text-color);
}

.rtb-close-button {
    padding: 12px 25px;
    background-color: var(--rtb-primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--rtb-transition);
    display: inline-flex;
    align-items: center;
    min-width: 120px;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(74, 111, 165, 0.2);
}

.rtb-close-button:hover {
    background-color: var(--rtb-secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(74, 111, 165, 0.25);
}

/* Messages */
.rtb-message {
    margin-bottom: 25px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.rtb-error {
    background-color: #fdecea;
    border-left: 4px solid #f44336;
    color: #d32f2f;
}

.rtb-success {
    background-color: #e8f5e9;
    border-left: 4px solid #4CAF50;
    color: #388e3c;
}

/* Error messages */
.error-message {
    color: #f44336;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

.has-error input,
.has-error textarea,
.has-error select {
    border-color: #f44336 !important;
}

/* Loading indicator */
.rtb-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: rtb-spin 1s ease-in-out infinite;
}

@keyframes rtb-spin {
    to { transform: rotate(360deg); }
}

/* UI Preview Matching Styles */

/* Form labels */
label {
    display: block;
    font-weight: 600;
    color: var(--rtb-text-color);
    margin-bottom: 8px;
    font-size: 14px;
}

label .required-label {
    color: var(--rtb-error-color);
    margin-left: 4px;
}

/* Form inputs matching ui-preview */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="time"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--rtb-border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: var(--rtb-transition);
    background-color: var(--rtb-light-color);
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="time"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--rtb-primary-color);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

/* Textarea specific */
textarea {
    min-height: 100px;
    resize: vertical;
}

/* Buttons matching ui-preview */
.button,
button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rtb-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.button-primary {
    background-color: var(--rtb-primary-color);
    color: var(--rtb-light-color);
}

.button-primary:hover {
    background-color: var(--rtb-secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--rtb-shadow-hover);
}

.button:not(.button-primary) {
    background-color: var(--rtb-background-color);
    color: var(--rtb-text-color);
    border: 2px solid var(--rtb-border-color);
}

.button:not(.button-primary):hover {
    background-color: var(--rtb-border-color);
    transform: translateY(-1px);
}

/* Booking Summary matching ui-preview */
.rtb-booking-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #e3e8f0 100%);
    border-radius: var(--rtb-border-radius);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--rtb-border-color);
    display: block;
    visibility: visible;
}

.rtb-booking-summary h4 {
    margin: 0 0 20px 0;
    color: var(--rtb-primary-color);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid var(--rtb-border-color);
    padding-bottom: 10px;
    display: block;
    visibility: visible;
}

.booking-summary-info {
    display: block;
    visibility: visible;
}

.booking-summary-info p {
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.5;
    display: block;
    visibility: visible;
}

.booking-summary-info strong {
    color: var(--rtb-text-color);
    font-weight: 600;
    display: inline-block;
    min-width: 80px;
    visibility: visible;
}

/* Navigation buttons matching ui-preview */
.rtb-navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--rtb-border-color);
}

.rtb-navigation-buttons .button {
    flex: 1;
    justify-content: center;
    padding: 15px 30px;
    font-size: 16px;
    max-width: 200px;
}

/* Beautiful Confirmation Popup */
.rtb-beautiful-popup {
    max-width: 500px;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.rtb-beautiful-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--rtb-gradient);
}

.rtb-beautiful-popup .rtb-modal-header {
    position: relative;
    padding: 20px 30px 0;
    text-align: right;
}

.rtb-beautiful-popup .rtb-modal-close {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--rtb-transition);
    color: var(--rtb-text-color);
}

.rtb-beautiful-popup .rtb-modal-close:hover {
    background: rgba(220, 53, 69, 0.1);
    color: var(--rtb-error-color);
    transform: scale(1.1);
}

.rtb-beautiful-popup .rtb-modal-body {
    padding: 30px 40px;
    text-align: center;
}

.rtb-beautiful-popup .rtb-result-icon {
    margin-bottom: 25px;
}

.rtb-success-check {
    color: var(--rtb-success-color);
    animation: rtb-success-bounce 0.6s ease-out;
}

.rtb-error-x {
    color: var(--rtb-error-color);
    animation: rtb-error-shake 0.6s ease-out;
}

@keyframes rtb-success-bounce {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes rtb-error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.rtb-beautiful-popup .rtb-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--rtb-text-color);
    margin: 0 0 15px 0;
}

.rtb-beautiful-popup .rtb-result-message {
    font-size: 16px;
    color: var(--rtb-text-color);
    line-height: 1.6;
    margin-bottom: 25px;
}

.rtb-booking-details {
    background: rgba(74, 111, 165, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.rtb-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(74, 111, 165, 0.1);
}

.rtb-detail-item:last-child {
    border-bottom: none;
}

.rtb-detail-label {
    font-weight: 600;
    color: var(--rtb-text-color);
}

.rtb-detail-value {
    font-weight: 500;
    color: var(--rtb-primary-color);
}

.rtb-beautiful-popup .rtb-modal-footer {
    padding: 0 40px 40px;
    text-align: center;
}

.rtb-beautiful-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    background: var(--rtb-gradient);
    border: none;
    color: var(--rtb-light-color);
    cursor: pointer;
    transition: var(--rtb-transition);
    box-shadow: 0 10px 25px rgba(74, 111, 165, 0.3);
}

.rtb-beautiful-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(74, 111, 165, 0.4);
}

/* Modal overlay enhancement */
.rtb-modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

/* Success and Error messages */
.rtb-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 20px;
    border-radius: var(--rtb-border-radius);
    border: 1px solid #c3e6cb;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin: 20px 0;
}

.rtb-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 20px;
    border-radius: var(--rtb-border-radius);
    border: 1px solid #f5c6cb;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin: 20px 0;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .rtb-booking-form-step-1,
    .rtb-table-selection,
    .rtb-customer-details {
        margin: 0 10px 30px;
        padding: 20px;
    }

    .date-time-section {
        flex-direction: column;
        gap: 15px;
    }

    .date-field,
    .time-field,
    .guests-field {
        flex: 1 1 100%;
        min-width: auto;
    }

    .rtb-navigation-buttons {
        flex-direction: column;
    }

    .rtb-navigation-buttons .button {
        max-width: none;
    }

    .rtb-beautiful-popup {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }

    .rtb-beautiful-popup .rtb-modal-body,
    .rtb-beautiful-popup .rtb-modal-footer {
        padding: 20px 25px;
    }

    .rtb-steps-progress {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .rtb-step-item {
        max-width: none;
        flex-direction: row;
        gap: 15px;
    }

    .rtb-step-item:not(:last-child)::after {
        display: none;
    }
}

/* Additional enhancements for accessibility and polish */
.rtb-datepicker {
    position: relative;
}

input[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rtb-text-color);
    color: var(--rtb-light-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
}

/* Enhanced focus states for accessibility */
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(74, 111, 165, 0.3);
    outline-offset: 2px;
}

/* Form section titles */
.rtb-form-section h4 {
    color: var(--rtb-primary-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rtb-border-color);
}

/* Additional polish for the beautiful design */
.rtb-booking-form-step-1,
.rtb-table-selection,
.rtb-customer-details {
    animation: rtb-fadeInUp 0.6s ease-out;
}

@keyframes rtb-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhance the datepicker to match ui-preview */
.ui-datepicker {
    border-radius: 12px !important;
    box-shadow: var(--rtb-shadow-hover) !important;
    border: 1px solid var(--rtb-border-color) !important;
    padding: 10px !important;
}

.ui-datepicker-header {
    background: var(--rtb-gradient) !important;
    color: white !important;
    border-radius: 8px !important;
    border: none !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
}

.ui-datepicker-title {
    color: white !important;
    font-weight: 600 !important;
}

.ui-datepicker td {
    border: none !important;
    padding: 2px !important;
}

.ui-datepicker td a {
    border-radius: 6px !important;
    transition: var(--rtb-transition) !important;
    border: none !important;
    text-align: center !important;
    padding: 8px !important;
}

.ui-datepicker td a:hover {
    background: var(--rtb-primary-color) !important;
    color: white !important;
    transform: scale(1.1) !important;
}

.ui-datepicker .ui-state-active {
    background: var(--rtb-primary-color) !important;
    color: white !important;
}

/* Input placeholder styling */
input::placeholder,
textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Focus ring enhancement */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

/* Disabled state */
input:disabled,
textarea:disabled,
select:disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f3f4f6;
}

/* Beautiful form transitions */
.form-field {
    transition: var(--rtb-transition);
}

.form-field:hover input,
.form-field:hover textarea,
.form-field:hover select {
    border-color: var(--rtb-secondary-color);
}

/* Special requests textarea enhancement */
#special-requests {
    font-family: inherit;
    line-height: 1.5;
    background: rgba(248, 250, 252, 0.8);
}

/* Required label styling */
.required-label {
    color: var(--rtb-error-color);
    font-weight: 700;
}

/* Nepali Date Picker - Use natural width like sample.html */
.form-field input#rtb-date {
    width: auto !important;
}

/* Nepali Date Picker - Fix popup overflow issues in frontend */
div#ndp-nepali-box, 
div.ndp-nepali-box {
    position: fixed !important;
    z-index: 999999 !important;
    max-width: none !important;
    white-space: nowrap !important;
}

/* Ensure date picker popup is not constrained by parent containers */
.rtb-booking-form-step-1,
.rtb-booking-container,
.date-time-section,
.form-field,
.date-field {
    overflow: visible !important;
}

/* Prevent date picker popup from being cut off on mobile */
@media (max-width: 768px) {
    div#ndp-nepali-box, 
    div.ndp-nepali-box {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
    }
}

/* Nepali Date Picker - Extra Compact table rows */
div#ndp-nepali-box table,
div#ndp-nepali-box td,
div#ndp-nepali-box tr,
div.ndp-nepali-box table,
div.ndp-nepali-box td,
div.ndp-nepali-box tr {
    height: 8px !important;
    line-height: 8px !important;
    font-size: 8px !important;
}

/* Extra compact date cell styling */
div#ndp-nepali-box td.ndp-date,
div.ndp-nepali-box td.ndp-date,
div#ndp-nepali-box td.ndp-selected,
div.ndp-nepali-box td.ndp-selected,
div#ndp-nepali-box td.ndp-current,
div.ndp-nepali-box td.ndp-current {
    padding: 0px !important;
    height: 8px !important;
    line-height: 8px !important;
}

/* Extra compact date links */
div#ndp-nepali-box td.ndp-date a,
div#ndp-nepali-box td.ndp-selected a,
div.ndp-nepali-box td.ndp-date a,
div.ndp-nepali-box td.ndp-selected a,
div#ndp-nepali-box td.ndp-current a,
div.ndp-nepali-box td.ndp-current a {
    width: 12px !important;
    height: 8px !important;
    line-height: 8px !important;
    font-size: 8px !important;
    padding: 0 !important;
}

/* Extra compact header */
.ndp-header {
    padding: 0px !important;
    line-height: 12px !important;
    font-size: 9px !important;
}

/* Extra compact overall calendar box */
div#ndp-nepali-box,
div.ndp-nepali-box {
    width: 140px !important;
    padding: 0px !important;
}

/* Extra compact table spacing */
div#ndp-table-div table {
    border-spacing: 0px !important;
}


