/* Unified Premium Booking Form Styles */
@font-face {
    font-family: 'asmaa';
    src: url('https://www.fontstatic.com/fonts/asmaa/asmaa.eot?#iefix');
    src: url('https://www.fontstatic.com/fonts/asmaa/asmaa.eot?#iefix') format('eot'),
        url('https://www.fontstatic.com/fonts/asmaa/asmaa.woff') format('woff'),
        url('https://www.fontstatic.com/fonts/asmaa/asmaa.ttf') format('truetype'),
        url('https://www.fontstatic.com/fonts/asmaa/asmaa.svg#asmaa') format('svg');
}

:root {
    --primary-gold: #093b7d;
    --secondary-gold: #062855;
    --dark-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(9, 59, 125, 0.1);
    --input-bg: #ffffff;
    --text-primary: #093b7d;
    --text-secondary: rgba(9, 59, 125, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) rgba(20, 20, 20, 0.5);
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    padding-top: 80px;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(9, 59, 125, 0.01) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(6, 40, 85, 0.01) 0%, transparent 20%);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-gold), var(--secondary-gold));
    border-radius: 4px;
}

/* Navbar Styles - Glassmorphism */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 40px;
    max-width: 100%;
    margin: 0 auto;
}

/* Section Styles */
.section {
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.section-title i {
    color: var(--primary-gold);
    filter: drop-shadow(0 0 10px rgba(9, 59, 125, 0.3));
}

/* Premium Card Container */
.booking-wrapper,
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.booking-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.booking-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(9, 59, 125, 0.3), transparent);
}

/* Booking Header */
.booking-header {
    text-align: center;
    margin-bottom: 50px;
}

.booking-header i {
    font-size: 3.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(9, 59, 125, 0.2));
}

.booking-header h1 {
    color: var(--primary-gold);
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-family: 'asmaa', 'Tajawal', sans-serif;
}

.booking-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Modern Form Inputs */
.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    min-height: 30px;
    white-space: nowrap;
}

.form-group label i {
    color: var(--primary-gold);
    width: 20px;
    text-align: center;
}

.form-control,
.custom-dropdown-input,
.form-select {
    width: 100%;
    height: 55px;
    padding: 12px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.form-control:focus,
.custom-dropdown-input.active,
.form-select:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(9, 59, 125, 0.1);
    transform: translateY(-2px);
}

.form-control::placeholder,
.custom-dropdown-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Textarea specific */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Custom Dropdown Premium Styling */
.custom-dropdown {
    position: relative;
    cursor: pointer;
}

.custom-dropdown-arrow {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.custom-dropdown.active .custom-dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary-gold);
}

.custom-dropdown-list {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--primary-gold);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-dropdown.active .custom-dropdown-list {
    display: block;
}

.custom-dropdown-search {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: #f8f9fa;
}

.custom-dropdown-search input {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 8px;
    color: #000000;
}

.custom-dropdown-options {
    max-height: 250px;
    overflow-y: auto;
}

.custom-dropdown-option {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease;
}

.custom-dropdown-option:hover,
.custom-dropdown-option.highlighted {
    background: rgba(9, 59, 125, 0.1);
    color: var(--primary-gold);
    padding-right: 25px;
}

/* Helper Text */
.form-group small {
    margin-top: 8px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.8rem;
    background: transparent;
    border: none;
    padding: 0;
}

/* Checkbox Styling (Kaaba view) */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.02);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-wrapper:hover {
    background: rgba(9, 59, 125, 0.05);
    border-color: rgba(9, 59, 125, 0.2);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-gold);
    cursor: pointer;
}

/* Tabs Styling (Hajj/Umrah) */
.tabs-container {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
    padding: 5px;
    border-radius: 50px;
    margin-bottom: 30px;
    position: relative;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    border-radius: 40px;
    color: rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
    font-weight: bold;
    font-size: 1.1rem;
}

.tab.active {
    background: var(--primary-gold);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(9, 59, 125, 0.3);
}

.tab:hover:not(.active) {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Price Box */
.price-display {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid var(--primary-gold);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.price-display::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(9, 59, 125, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.price-label {
    color: rgba(0, 0, 0, 0.6);
    font-size: 1rem;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.price-value {
    color: var(--primary-gold);
    font-size: 2.5rem;
    font-weight: bold;
    font-family: 'asmaa', sans-serif;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(9, 59, 125, 0.4);
}

/* Responsive Grid for Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .form-row-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .booking-wrapper,
    .container {
        padding: 0 15px;
    }

    .booking-container {
        padding: 30px 15px;
        border-radius: 15px;
    }

    .booking-header h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .price-value {
        font-size: 2rem;
    }
}

/* Global Segmented Toggle System */
.segmented-toggle {
    display: flex;
    background: rgba(9, 59, 125, 0.05);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(9, 59, 125, 0.1);
    margin-bottom: 20px;
    gap: 5px;
}

.segmented-btn {
    flex: 1;
    padding: 14px 20px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: #093b7d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.segmented-btn.active {
    background: #093b7d;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(9, 59, 125, 0.2);
}

.segmented-btn:hover:not(.active) {
    background: rgba(9, 59, 125, 0.1);
}

@media (max-width: 576px) {
    .segmented-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
}