/* Floating booking button */
.floating-booking-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: linear-gradient(135deg, #6e453b 0%, #a66656 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(110, 69, 59, 0.4);
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    animation: heartbeat 0.85s ease-in-out infinite;
}

.floating-booking-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s ease-in-out infinite;
}

.floating-booking-btn:hover {
    box-shadow: 0 6px 20px rgba(110, 69, 59, 0.6);
    animation: heartbeat 0.6s ease-in-out infinite;
}

.floating-booking-btn i {
    font-size: 20px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(110, 69, 59, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(110, 69, 59, 0.8);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 150%;
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(110, 69, 59, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 25px rgba(110, 69, 59, 0.8);
    }
}

/* Hide scrollbar globally */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Booking Modal */
.booking-modal {
    display: flex;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.booking-modal.show {
    pointer-events: auto;
    animation: fadeIn 0.3s ease forwards;
}

.booking-modal.hiding {
    pointer-events: none;
    animation: fadeOut 0.3s ease forwards;
}

.booking-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.booking-modal.show .booking-modal-content {
    animation: slideUp 0.3s ease forwards;
}

.booking-modal.hiding .booking-modal-content {
    animation: slideDown 0.3s ease forwards;
}

.booking-modal-header {
    background: linear-gradient(135deg, #6e453b 0%, #a66656 100%);
    color: white;
    padding: 25px;
    border-radius: 20px 20px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.booking-modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-family: var(--secondary-font);
    letter-spacing: 1.2px;
}

.booking-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.booking-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.booking-modal-body {
    padding: 30px;
}

.booking-form-group {
    margin-bottom: 20px;
}

.booking-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #6e453b;
    font-size: 14px;
}

.booking-form-group label .required {
    color: #dc3545;
}

.booking-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e4cdac;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: var(--primary-font);
    box-sizing: border-box;
    color: #6e453b;
}

input[type="date"],
input[type="time"] {
    color: #6e453b;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(34%) sepia(18%) saturate(1015%) hue-rotate(332deg) brightness(93%) contrast(88%);
    cursor: pointer;
}

.booking-form-control:focus {
    outline: none;
    border-color: #6e453b;
    box-shadow: 0 0 0 3px rgba(110, 69, 59, 0.1);
}

.booking-form-control.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.booking-form-control.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.booking-form-group .error-message {
    display: none;
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

.booking-form-group .error-message.show {
    display: block;
}

.booking-form-group.has-error .error-message {
    display: block;
}

.quick-time-btn.error {
    border-color: #dc3545;
    background-color: #fff5f5;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.booking-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.booking-form-group {
    min-width: 0; /* Allows grid items to shrink below content size */
}

.quick-time-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.quick-time-btn {
    padding: 8px;
    border: 2px solid #e4cdac;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
    color: #6e453b;
}

.quick-time-btn:hover {
    border-color: #6e453b;
    background: #fff8f3;
}

.quick-time-btn.active {
    background: #6e453b;
    color: white;
    border-color: #6e453b;
}

.quick-time-btn.disabled,
.quick-time-btn:disabled {
    background: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #dee2e6;
}

.quick-time-btn.disabled:hover,
.quick-time-btn:disabled:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.booking-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #6e453b 0%, #a66656 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    margin-bottom: 0px;
    position: sticky;
    bottom: 20px;
    z-index: 10;
    box-shadow: 0 -10px 15px rgba(0, 0, 0, 0.15);
}

.booking-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(110, 69, 59, 0.4);
}

.booking-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.booking-submit-btn .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}

.booking-submit-btn.loading .spinner {
    display: block;
}

.booking-submit-btn.loading .btn-text {
    display: none;
}

.booking-alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.booking-alert.show {
    display: block;
}

.booking-alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.booking-alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(50px);
        opacity: 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .floating-booking-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .booking-modal {
        padding: 20px 0;
        align-items: flex-start;
    }
    
    .booking-modal-content {
        width: 95%;
        max-width: 100%;
        border-radius: 24px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .booking-modal-body {
        padding: 20px 15px;
    }
    
    .booking-form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .booking-form-group {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .quick-time-btns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-form-control {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 10px 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    input[type="date"],
    input[type="time"] {
        width: 100% !important;
        max-width: 100% !important;
        -webkit-appearance: none;
        appearance: none;
    }
}
