:root {
    --primary-color: #9d3686;
    --text-color: #333;
    --border-color: #ddd;
    --bg-color: #fcfcfc;
}

.sm_container {
    display: flex;
    width: 100%;
    max-width: 1600px;
    gap: 20px;
}

.sm_card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    border: 1px solid #f0f0f0;
}

.sm_branding_section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 500px;
}

.sm_logo_container {
    margin-bottom: 20px;
}

.sm_logo_icon {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.sm_brand_name {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #000;
}

.sm_branding_section h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #000;
}

.sm_branding_section p {
    color: #666;
    font-size: 16px;
}

.sm_form_section {
    flex: 2;
}

.sm_form_title {
    text-align: right;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #000;
}

.sm_form_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.sm_input_group {
    display: flex;
    flex-direction: column;
}

.sm_input_group label {
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 16px;
}

.sm_input_wrapper {
    position: relative;
}

input,
select {
    width: 100%;
    padding: 12px 15px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px;
    font-family: 'Tajawal', sans-serif !important;
    font-size: 14px !important;
    outline: none;
    transition: border-color 0.3s;
    background-color: white;
    color: #555;
    appearance: none;
}

input:focus,
select:focus {
    border-color: var(--primary-color) !important;
}

::placeholder {
    color: #aaa;
}

.sm_phone_input_wrapper input {
    padding-left: 40px;
    text-align: right;
}

.sm_flag_icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 16px;
    background-image: url('https://flagcdn.com/w40/sa.png');
    background-size: cover;
    border-radius: 2px;
}

.sm_select_wrapper::after {
    content: '\f0d7';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

.sm_btn_submit {
    grid-column: span 2;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.sm_btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
    min-width: 150px;
    justify-content: center;
}

.sm_btn:hover {
    background-color: #7a2a68;
}

.sm_btn i {
    font-size: 14px;
    transform: scaleX(-1);
}

.sm_date_time_picker {
    display: flex;
    gap: 20px;
    direction: rtl;
}

.sm_calendar_container {
    flex: 1.5;
}

.sm_time_slots_container {
    flex: 1;
    max-height: 350px;
    overflow-y: auto;

    /* Add padding so the first/last text isn't fully faded when scrolled to the very top/bottom */
    padding: 15px 5px;

    /* THE FADE EFFECT */
    /* Transparent at 0%, Solid Black (visible) at 15%, Solid Black at 85%, Transparent at 100% */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);

    /* Firefox */
    scrollbar-width: none;
    /* IE & Edge */
    -ms-overflow-style: none;
}

/* Chrome, Safari, Edge (Chromium) */
.sm_time_slots_container::-webkit-scrollbar {
    display: none;
}




.sm_form_actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    direction: rtl;
}

.sm_btn_secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.sm_btn_secondary:hover {
    background-color: #e0e0e0;
}

/* Calendar Styles */
.sm_calendar {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    background: var(--bg-color);
}

.sm_calendar_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #333;

}

.sm_calendar_header h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.sm_calendar_nav button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

.sm_calendar_grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.sm_calendar_day {
    padding: 5px;
    font-weight: 500;
    color: #999;
    font-size: 14px;
}

.sm_calendar_date {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
    color: #000;
    max-width: 36px;
}

.sm_calendar_date:hover {
    background-color: #f0f0f0;
}

.sm_calendar_date.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.sm_calendar_date.selected {
    background-color: var(--primary-color);
    color: white;
}

/* Time Slot Styles */
.sm_time_slot {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.3s, color 0.3s;
    color: #000;
}

.sm_time_slot:hover {
    border-color: var(--primary-color);
}

.sm_time_slot.selected {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

/* User Details in Branding Section */
.sm_user_details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
    direction: rtl;
}

.sm_user_detail_item {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 20px;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color);
        justify-content: flex-end;
}

.sm_user_detail_item i {
    font-size: 22px;
    color: var(--primary-color);
    width: 25px;
    text-align: center;
}

@media (max-width: 992px) {
    .sm_container {
        flex-direction: column;
    }

    .sm_date_time_picker {
        flex-direction: column;
    }

    .sm_time_slots_container {
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    .sm_form_grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sm_btn_submit {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .sm_card {
        padding: 20px;
    }

    .sm_calendar {
        padding: 10px;
    }

    .sm_calendar_grid {
        gap: 5px;
    }

    .sm_calendar_day,
    .sm_calendar_date {
        font-size: 12px;
    }

    .sm_calendar_day {
        padding: 5px;
    }

    .sm_calendar_header h3 {
        font-size: 16px;
    }

    .sm_calendar_nav button {
        font-size: 16px;
    }

    .sm_form_title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .sm_time_slot {
        padding: 10px 15px;
    }
}

.contact-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.contact-section {
    padding: 120px 0;
    background: #f8fafc;
    min-height: fit-content;
}

.navbar {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(30px);
}

@media (max-width: 768px) {
    .navbar {
        background: transparent !important;
        color: #000;
    }
}


.book-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 8px;
    color: #000;
    font-family: 'Lama Sans', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    font-style: bold;

}

.book-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.sm_branding_section {
    position: relative;
    overflow: hidden;
}

.sm_branding_section::before {
    content: "";
    position: absolute;
    inset: 0;

    background: url("/assets/images/book-background.jpg") no-repeat center;
    background-size: cover;

    opacity: 0.06;
    /* 6% شفافية */
    transform: scaleX(-1);
    /* قلب أفقي */

    z-index: 0;
}

/* المحتوى يظل فوق الخلفية */
.sm_branding_section>* {
    position: relative;
    z-index: 1;
}

.sm_partners_title {
    background-color: #1D152F;
    padding: 10px 15px;
    border-radius: 50px;
    font-family: 'Lama Sans';
    font-size: 21px;
}

.sm_partners_logos_column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.sm_partner_logo {
    display: flex;
    gap: 20px;
}


.sm_form_section {
    position: relative;
    overflow: hidden;
}

.sm_form_section::before {
    content: "";
    position: absolute;
    inset: 0;

    background: url("/assets/images/book-background.jpg") no-repeat;
    background-size: contain;

    opacity: 0.06;
    /* 6% شفافية */
    transform: scaleX(-1);
    transform: rotate(-90deg);
    z-index: 0;
}

/* المحتوى يظل فوق الخلفية */
.sm_form_section>* {
    position: relative;
    z-index: 1;
}



