/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
    background: #f5f5f5;
    color: #333;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none; /* no long press menu on iOS */
}

/* Allow selection inside inputs and textareas if needed */
input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.time-btn{
	font-weight: 600;
}

.timeslot{
	display: block;
	font-weight: normal !important;
	margin-top: 5px;
}

.time-btn.disabled{
    background:#f0f0f0;
    border-color:#d0d0d0;
    color:#999;
    cursor:not-allowed;
}

.time-btn.disabled .timeslot{
    color:#999;
}

/* background and overlay */
.booking-bg {
    position: relative;
    min-height: 100vh;
    background: url('../assets/img/auth-one-bg.jpg') no-repeat center center;
    background-size: cover;
}

.booking-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

/* wrapper */
.booking-wrapper {
    position: relative;
    z-index: 2;
    padding-bottom: 90px;
}

/* header */
.booking-header {
    padding: 10px 0 10px;
    text-align: center;
}

.booking-logo {
    width: 130px;
    height: auto;
}

/* main card */
.booking-main {
    justify-content: center;
    padding: 0 14px 40px;
}

.booking-card {
    width: 100%;
    max-width: 540px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 20px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.15);
    margin-left: auto;
    margin-right: auto;
}

.booking-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    color: #ffffff;
}

.booking-subtitle {
    font-size: 14px;
    color: #777;
    text-align: center;
    margin-bottom: 20px;
}

/* section titles */
.form-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-helper {
    font-size: 13px;
    color: #555;
    margin-bottom: 12px;
}

/* fields */
.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-field input,
.date-input,
.select2-area {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border 0.25s;
    background: #fff;
}

.form-field input:focus,
.date-input:focus,
.select2-selection--single {
    border-color: #c09135 !important;
}

.form-section:last-child {
    margin-bottom: 0;
}
.form-field:last-child {
    margin-bottom: 0;
}
.time-group:last-child {
    margin-bottom: 0;
}
.readonly-input {
    background: #f2f2f2;
    cursor: not-allowed;
}

.field-note {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

/* grids */
.form-grid {
    display: grid;
    gap: 6px;
}

.form-grid.two-cols {
    grid-template-columns: 1fr 1fr;
}

/* toggle buttons */
.toggle-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
	margin-bottom: 10px;
}

.toggle-btn {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #c09135;
    background: #fff;
    color: #c09135;
    font-size: 14px;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.25s;
}

.toggle-btn.active {
    background: #c09135;
    color: #fff;
}

/* service buttons */
.service-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-btn {
    padding: 10px 14px;
    border: 1.5px solid #c09135;
    border-radius: 4px;
    color: #c09135;
    background: #fff;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
	flex: 1;
}

.service-btn.selected {
    background: #c09135;
    color: #fff;
}

/* tick mark */
.service-btn.selected::before {
/*     content: "✓";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
 */}

/* floating message just above PAY & BOOK */
.booking-message {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 80px; /* height of button + some gap */
    width: 80%;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 50;
}

/* keep your existing success and error colors if you had them */
.booking-message.error {
    background: #FF474C;
}

.booking-message.success {
    background: rgba(30, 150, 70, 0.95);
}

/* sticky footer */
.booking-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px;
    background: #fff;
    box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.15);
    z-index: 20;
}

.pay-book-btn {
    width: 70%;
    padding: 14px;
    background: #c09135;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
}

.pay-book-btn:hover {
    background: #a7802d;
}

/* select2 fixes */
.select2-container .select2-selection--single {
    height: 42px;
    padding: 6px 10px;
    border-radius: 4px !important;
    border: 1.5px solid #ccc !important;
}

.select2-selection__arrow {
    top: 7px !important;
}

.select2-container--open .select2-selection--single {
    border: 1.5px solid #c09135 !important;
}

/* responsive */
@media (min-width: 768px) {
    .booking-card {
        padding: 28px 28px 34px;
    }
}

.booking-footer{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:10px 14px;
    background:#fff;
    border-top:1px solid #e3e3e3;
}

.footer-price{
    flex:1;
    display:flex;
    flex-direction:column;
}

.footer-price-label{
    font-size:11px;
    color:#777;
}

.footer-price-value{
    font-size:18px;
    font-weight:600;
    color:#c09135;
}

.pay-book-btn{
    flex:0 0 auto;
}

/* Fix iOS input overflow */
#booking_date,
.flatpickr-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* If the input is inside a flex row, this prevents overflow */
#booking_date {
    min-width: 0 !important;
}

/* Make disabled days truly not tappable */
.flatpickr-day.disabled,
.flatpickr-day.prevMonthDay.disabled,
.flatpickr-day.nextMonthDay.disabled {
    pointer-events: none !important;
    opacity: 0.35 !important;
}

.no_slot{
	text-align: center;
    background: #fdecea;
    border-top: 4px solid #d32f2f;
	font-size: 16px;
	border-radius: 8px;
	padding: 8px;
}

.almarai-light {
    font-family: 'Almarai', sans-serif;
    font-weight: 300;
    font-style: normal;
}
.almarai-regular {
    font-family: 'Almarai', sans-serif;
    font-weight: 400;
    font-style: normal;
}
.almarai-bold {
    font-family: 'Almarai', sans-serif;
    font-weight: 700;
    font-style: normal;
}
.almarai-extrabold {
    font-family: 'Almarai', sans-serif;
    font-weight: 800;
    font-style: normal;
}

.booking-footer {
    display: block;
}

.policy-consent-row {
    width: 100%;
    padding: 0 0 14px 0;
    margin: 0 0 14px 0;
    border-bottom: 1px solid #d9d9d9;
}

.policy-consent-label-inline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    cursor: pointer;
    color: #2b2b2b;
    font-size: 16px;
    line-height: 1.3;
}

.policy-consent-label-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    cursor: pointer;
}

.policy-consent-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.policy-link {
    color: #8f1737;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.booking-footer-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.footer-price {
    display: flex;
    align-items: flex-end;
    min-width: 0;
}

.footer-price-value {
    white-space: nowrap;
}

.pay-book-btn {
    flex: 0 0 auto;
}

.te-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.te-modal.show {
    display: flex;
}

.te-modal-box {
    background: #fff;
    width: 100%;
    max-width: 650px;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.te-modal-close {
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 38px;
    border: none;
    border-radius: 0 0 10px;
    background: #c09135;
    color: #fff;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
	font-weight: 700;
}

.te-modal-body {
    padding: 28px 22px 24px 22px;
}

.policy-modal-body {
    direction: rtl;
    text-align: right;
    color: #222;
    font-size: 17px;
    line-height: 2;
    max-height: 75vh;
    overflow-y: auto;
}

.policy-modal-body p {
    margin: 0 0 14px 0;
}

.policy-modal-body ul {
    margin: 10px 0 18px 0;
    padding: 0 18px 0 0;
    list-style: disc;
}

.policy-modal-body li {
    margin-bottom: 10px;
}

.policy-link-url {
    color: #8a1538;
    word-break: break-word;
    direction: ltr;
    display: inline-block;
}

.custom-alert-body {
    text-align: center;
    padding-top: 40px;
}

.custom-alert-message {
    font-size: 17px;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.6;
}

.custom-alert-ok {
    min-width: 110px;
    border: none;
    background: #c09135;
    color: #fff;
    border-radius: 6px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 640px) {
    .policy-consent-row {
        padding-bottom: 4px;
    }

    .policy-consent-label-inline {
        font-size: 14px;
        gap: 10px;
        align-items: flex-start;
    }

    .policy-consent-text {
        display: inline;
    }

    .booking-footer-bottom {
        gap: 12px;
        align-items: center;
    }

    .policy-modal-body {
        font-size: 15px;
        line-height: 1.9;
    }

    .te-modal-body-terms {
        padding: 20px 10px 40px;
    }
    .te-modal-body-alert {
        padding: 20px 10px 20px;
    }
}
