/* Universal Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

.Calendhar_widget {
    position: fixed;
    right: 20px;
    bottom: 170px;
    z-index: 99;
}

.Calendhar_btn {
    width: 55px;
    height: 55px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s ease;
}

.Calendhar_btn:hover {
    transform: scale(1.08);
}

.Calendhar_btn svg {
    width: 28px;
    height: 28px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    z-index: 99999;
    padding: 16px;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-overlay.active .popup-card {
    transform: scale(1);
}

.popup-card {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
    -webkit-overflow-scrolling: touch;
}

.popup-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    text-decoration: none;
    color: #64748b;
    line-height: 1;
}

.popup-close-btn:hover {
    color: #1e293b;
}

.popup-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #0f172a;
}

#bookingForm {
    width: 100%;
    overflow: visible;
}

.form-field {
    margin-bottom: 18px;
    text-align: left;
    width: 100%;
}

.form-field-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.form-field.half {
    flex: 1;
    min-width: 0;
}

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.form-field input,
.form-field select {
    width: 100%;
    height: 44px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    background-color: #f8fafc;
    color: #0f172a;
}

/* iOS Safari Specific Fix for Date and Time Inputs */
.form-field input[type="date"],
.form-field input[type="time"] {
    display: block;
    height: 44px;
    line-height: 44px;
    padding: 8px 12px;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #08324b;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #090e19;
}

.btn-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.form-messages-container {
    margin-top: 14px;
}

.msg-alert {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

.msg-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.msg-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .popup-card {
        padding: 20px 16px;
    }

    .form-field-row {
        flex-direction: column;
        gap: 0;
    }
}