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

body {
    direction: rtl;
    /* text-align: right; */
    font-family: "Tajawal", "Cairo", sans-serif; /* Example Arabic fonts */
}

.header-btn {
    color: inherit;
    text-decoration: inherit;
    cursor: inherit;
    color: #fff;
    display: inline-block;
    text-transform: none;
    background-color: #dc291e;
    font-size: 1em;
    line-height: 1.2;
    padding: 0.6em 1.5em;
    border: 0 none;
    cursor: pointer;
    text-transform: capitalize;
    text-align: center;
    border-radius: 40px;
    transition: all 0.2s linear;
    margin: 0 10px;
    font-weight: 700 !important;
}

.header-btn:hover {
    text-decoration: none;
    background-color: #c01504;
}

.header-btn.nav-hover-btn {
    font-size: 13px !important;
    width: 132px;
    height: 38px;
}

.nav-tabs .nav-link {
    border: none !important;
    color: #c01504 !important;
}

/* main-content */
.hero-content h2 {
    color: #dc291e;
    font-size: 58px;
    line-height: 77px;
    font-weight: 700;
    text-align: right;
    padding-bottom: 35px;
}

a {
    text-decoration: none;
    color: #c01504;
}

.hero-content .input-wrap {
    position: relative;
    max-width: 592px;
}

.latest-home-slider .form-track-group.input-group {
    padding-right: 0;
    padding-bottom: 20px;
}

.hero-content .form-control {
    box-shadow: 0 6px 16px #e8e8e8b5;
    opacity: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 6px;
    height: 73px;
    padding: 12px 70px 12px 172px;
    background-image: url(/Sitefinity/WebsiteTemplates/aramex/App_Themes/aramex/Images/svg/slider-ic-schedule.svg);
    background-repeat: no-repeat;
    background-position: center right 26px;
    border: 0;
    caret-color: #dc291e;
}

.hero-content .btn-primary {
    outline: 0;
    box-shadow: none !important;
    border-radius: 6px;
    color: #fff;
    background-color: #dc291e;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    padding: 16px 34px;
    border: 0;
    position: absolute;
    top: 11px;
    left: 20px;
}

/* Home Options */

#main-content {
    background-color: #e9ecef !important;
}

.home-options .row {
    justify-content: center !important;
    align-items: center !important;
}

.first-card {
    min-height: 160px;
    width: 290px !important;
}

.second-card {
    min-height: 160px;
    width: 290px !important;
}

.third-card {
    min-height: 160px;
    width: 290px !important;
}

/* Prices Section */
.nav-pills .active {
    color: white !important;
    background-color: #c01504 !important;
}

#prices .container {
    background-color: #e9ecef !important;
}

/* Steps Section */

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 2rem;
}
.step {
    text-align: center;
    color: gray;
}
.step.active {
    color: red;
    font-weight: bold;
}
.step-number {
    border: 2px solid #ccc;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.25rem;
}
.step.active .step-number {
    border-color: red;
    background-color: red;
    color: white;
}

.btn-check:checked + .shipment-label {
    background-color: #d32f2f;
    color: #fff;
    border-color: #d32f2f;
}

.btn-check:checked + .shipment-label i {
    color: white;
}

/* select2 css */

/* General container for Select2 */
.select2-container {
    width: 100% !important; /* Ensure it takes the full width of the parent */
}

/* Style for the main selection box (closed state) */
.select2-container--default .select2-selection--single {
    background-color: #f9f9f9; /* Light background */
    border: 2px solid #e0e0e0; /* Subtle border */
    border-radius: 25px; /* Rounded corners */
    height: 45px; /* Increased height for better touch area */
    transition: all 0.3s ease; /* Smooth transition for hover/focus */
}

/* Add a subtle shadow and border change on hover/focus */
.select2-container--default .select2-selection--single:hover,
.select2-container--default .select2-selection--single:focus {
    border-color: #dc3545; /* Red border to match the button */
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.2); /* Red shadow glow */
}

/* Style the text inside the selection box */
.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    color: #333; /* Darker text for better contrast */
    line-height: 45px; /* Center text vertically */
    padding-right: 40px; /* Space for the arrow */
    padding-left: 15px; /* Left padding for text */
    font-weight: 500; /* Slightly bold text */
}

/* Style the arrow (dropdown toggle) */
.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 45px; /* Match the height of the selection box */
    width: 40px; /* Wider area for the arrow */
    background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNOCAxM0w0IDlMOCAxM1oiIGZpbGw9IiM5Nzk3OTciLz48L3N2Zy4=")
        no-repeat center; /* Custom arrow icon */
    border-left: 1px solid #e0e0e0; /* Separator between text and arrow */
}

/* Remove the default arrow background */
.select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    display: none; /* Hide the default arrow */
}

/* Style the dropdown menu (options list) */
.select2-container--default .select2-dropdown {
    border: none; /* Remove default border */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    background-color: #fff; /* White background */
    margin-top: 5px; /* Space between the selection box and dropdown */
}

/* Style each option in the dropdown */
.select2-container--default .select2-results__option {
    padding: 10px 15px; /* More padding for better touch area */
    color: #333; /* Dark text */
    transition: all 0.2s ease; /* Smooth transition for hover */
}

/* Highlighted option (on hover or keyboard navigation) */
.select2-container--default .select2-results__option--highlighted {
    background-color: #dc3545 !important; /* Red background to match the button */
    color: #fff !important; /* White text for contrast */
}

/* Selected option */
.select2-container--default .select2-results__option--selected {
    background-color: #f1f1f1; /* Light gray for selected option */
    color: #333;
}

/* Style the search input inside the dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e0e0e0; /* Subtle border */
    border-radius: 20px; /* Rounded search input */
    padding: 8px 15px; /* Comfortable padding */
    font-size: 14px; /* Slightly smaller font */
    transition: border-color 0.3s ease; /* Smooth transition for focus */
}

/* Focus state for the search input */
.select2-container--default
    .select2-search--dropdown
    .select2-search__field:focus {
    border-color: #dc3545; /* Red border on focus */
    outline: none; /* Remove default outline */
}

/* Ensure RTL support */
.select2-container--default[dir="rtl"]
    .select2-selection--single
    .select2-selection__rendered {
    padding-right: 15px; /* Adjust padding for RTL */
    padding-left: 40px; /* Space for the arrow in RTL */
}

.select2-container--default[dir="rtl"]
    .select2-selection--single
    .select2-selection__arrow {
    border-right: 1px solid #e0e0e0; /* Separator for RTL */
    border-left: none;
    right: auto;
    left: 0;
}

/* Animation for dropdown opening */
.select2-dropdown {
    animation: slideDown 0.3s ease; /* Smooth slide-down animation */
}

/* form-control focus color */

/* Override the focus color for input fields */
.form-control:focus {
    border-color: #dc3545 !important; /* Red border to match Select2 */
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.2) !important; /* Red shadow glow */
    outline: none; /* Remove default outline */
}

/* Specifically target inputs with border-bottom style */
.form-control.border-bottom:focus {
    border-bottom-color: #dc3545 !important; /* Red border-bottom */
    box-shadow: none !important; /* Remove Bootstrap's default shadow */
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sign In */

input::placeholder {
    color: #ccc;
    font-size: 0.9rem;
}

.login-form {
    display: none;
    z-index: 1000;
}
.login-form.show {
    display: block;
}

/* Register Section */

@media (max-width: 576px) {
    #login-form {
        left: 10px !important;
    }
    /* the card after the #login-form */
    #login-form .card {
        min-width: 350px !important;
        max-width: 400px !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        text-align: right;
    }
}

@media (min-width: 1366px) {
    .header-btn.nav-hover-btn {
        font-size: 13px !important;
        width: 132px;
        height: 38px;
    }
}

@media (min-width: 1280px) {
    .header-btn.nav-hover-btn {
        font-size: 12px !important;
        width: 125px;
        height: 38px;
    }
}

@media (min-width: 1025px) {
    .header-btn.nav-hover-btn {
        font-size: 11px !important;
        width: 112px;
        height: 38px;
    }
}
