:root {
    --primary: #003169;
    --secondary: #9D1E18;
    --dark: #111111;
}

body {
    color: #1d1d1d;
}

.booking-services-selector {
    overflow: visible;
    position: relative;
    z-index: 3;
    pointer-events: auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.booking-service-card-item {
    min-width: 0;
}

.booking-service-card-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.booking-service-card-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #d8deea;
    border-radius: 10px;
    padding: 8px;
    min-height: 104px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.booking-service-card-label:hover {
    border-color: #003169;
    box-shadow: 0 4px 10px rgba(0, 49, 105, 0.12);
}

.booking-service-card-input:checked+.booking-service-card-label {
    border-color: #003169;
    background: rgba(0, 49, 105, 0.06);
    box-shadow: 0 0 0 2px rgba(0, 49, 105, 0.15);
}

.booking-service-card-avatar-wrap {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-service-card-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-service-card-fallback-icon {
    color: #003169;
    font-size: 20px;
}

.booking-service-card-title {
    font-size: 12px;
    font-weight: 700;
    color: #003169;
    line-height: 1.2;
}

.brand-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.text-primary {
    color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #002550;
    border-color: #002550;
}

.service .nav .nav-link.active {
    background: var(--primary);
}

.lang-switcher-dropdown .lang-switcher-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #1d1d1d;
    text-decoration: none;
    border: 0;
    background: transparent;
}

.lang-switcher-dropdown .lang-switcher-toggle:hover,
.lang-switcher-dropdown .lang-switcher-toggle:focus {
    color: var(--primary);
}

.lang-flag-icon {
    width: 20px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-switcher-dropdown .lang-code {
    font-size: 13px;
    letter-spacing: 0.02em;
}

.lang-switcher-dropdown .dropdown-item.active,
.lang-switcher-dropdown .dropdown-item:active {
    background-color: rgba(0, 49, 105, 0.12);
    color: var(--primary);
}

.navbar-light a.btn.book-service-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
}

.footer .btn.btn-link::before {
    color: var(--secondary);
}

html[dir="rtl"] body {
    font-family: "Tajawal", "Ubuntu", sans-serif;
}

html[dir="rtl"] .fa-arrow-right {
    transform: scaleX(-1);
}

html[dir="rtl"] .navbar-light .navbar-nav .nav-link {
    margin-right: 0;
    margin-left: 30px;
}

@media (max-width: 991.98px) {
    .brand-logo {
        height: 44px;
    }

    .lang-switcher-dropdown .lang-switcher-toggle {
        padding: 0;
    }

    .navbar-light a.btn.book-service-btn {
        height: 44px;
        width: clamp(98px, 34vw, 128px);
        max-width: clamp(98px, 34vw, 128px);
        min-width: clamp(98px, 34vw, 128px);
        padding: 0 10px !important;
        font-size: clamp(11px, 2.9vw, 12px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .booking-services-selector {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    html[dir="rtl"] .navbar-light .navbar-nav .nav-link {
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    .booking-services-selector {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}