/* ===============================
   Root Variables (Colors & Fonts)
   =============================== */
:root {
    --main-color: #061456;
    --yellow-color: #ffbd59;
    --lighter-gray: #f1f1f1;
    --light-gray: #f5f5f5;
    --light-gray-bg: #a8aecb;
    --lighter-gray: #e0e0e0;
    --background-color: #fff;
    --contrast-color-2: #ccc;
    --dot-inactive: #ccc;
    --dot-active: var(--main-color);
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 32px;
}

/* ===============================
     Base Styles
     =============================== */
body {
    margin: 0;
    font-family: "Tajawal", sans-serif;
    background-color: var(--background-color);
    color: var(--main-color);
    direction: rtl;
    font-size: 17px;
    font-weight: 500;
}
.project-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

input,
textarea,
select {
    background-color: var(--light-gray);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-family: inherit;
    font-size: 16px;
    color: var(--main-color);
    width: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}
.btn.btn-primary:hover {
    background-color: rgb(25, 45, 104) !important;
}

.form-control:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(10, 28, 120, 0.4);
}

::placeholder {
    color: #999;
    font-size: 14px;
}

.section-spacing {
    margin-bottom: 24px;
}

.element-spacing {
    margin-bottom: 16px;
}
.btn-spacing {
    margin-top: 20px;
}

.spacing-sm {
    margin-bottom: var(--space-sm);
}

.spacing-md {
    margin-bottom: var(--space-md);
}

.spacing-lg {
    margin-bottom: var(--space-lg);
}

.bottom-box-shadow {
    box-shadow: 0px 6px 6px -4px rgba(0, 0, 0, 0.12);
}

/* ===============================
      Buttons
     =============================== */
.button-highlight,
.skip {
    background-color: var(--contrast-color-2);
    color: var(--main-color);
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 5555555;
}

.skip {
    position: absolute;
    bottom: 100px;
    right: 20px;
    background-color: var(--lighter-gray);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.skip:hover {
    background-color: #cecece;
}

/* =======================================================
                         1.Start page
     ======================================================= */
/* ===============================
    Swiper Container
     =============================== */
.swiper {
    width: 100% !important;
    height: 100vh;
    text-align: center;
    background: var(--background-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===============================
    Swiper Slide Content
     =============================== */
.swiper-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    height: 100%;
}

.swiper-slide:first-of-type img.logo-img {
    width: 220px;
}

.swiper-slide:not(:first-of-type) img {
    max-width: 160px;
}

.swiper-slide p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 90%;
    font-weight: 500;
}

/* ===============================
     Swiper Pagination
     =============================== */
.swiper-pagination-bullet {
    background-color: var(--dot-inactive);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--dot-active);
}

/* =======================================================
                         2.login page
     ======================================================= */
.logo-text {
    font-size: 48px;
    font-weight: bold;
    color: var(--contrast-color-2);
}

/* .container {
    padding: 20px;
    direction: rtl;
  } */

input.form-control {
    background-color: var(--light-gray);
    border: none;
    border-radius: 12px;
    padding: 12px;
}

button.btn-primary {
    background-color: var(--main-color);
    border: none;
    font-weight: 600;
}

/* =======================================================
                         3.login page
     ======================================================= */
.stylish-card {
    max-width: 340px;
    padding: 20px;
    position: relative;
}
.home-wrapper {
    max-width: 400px;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}
.form-wrapper {
    max-width: 400px;
    width: 100%;
    padding: 20px;
}

.stylish-card::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--main-color);
    border-radius: 20px;
    transform: rotate(-2deg);
    z-index: 0;
}

.stylish-card .card-body {
    position: relative;
    z-index: 1;
    border: 1px solid var(--contrast-color-2);
    border-radius: 16px;
}

.pin-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    z-index: 2;
}

.home-heading {
    font-size: 18px;
    font-weight: 500;
    color: var(--main-color);
}

/* recorde  */
.voice-message {
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 12px;
    margin-top: 25px;
    border: 1px solid var(--lighter-gray);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

#waveform {
    flex-grow: 1;
    height: 36px;
    min-height: 36px;
    max-width: 85%;
}

.play-btn {
    background-color: var(--contrast-color-2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

/* prdouct-card  */
.order-img-group {
    border-radius: 16px;
    background: var(--lighter-gray);
}
.product-card {
    background-color: #f8f8f8;
    border-radius: 12px;

    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    margin-bottom: 10px;
}

.product-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.order-details-box {
    background-color: var(--lighter-gray);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--main-color);
    margin-top: 10px;
    line-height: 1.7;
}

/* =======================================================
                        4.order page
     ======================================================= */

textarea.form-control {
    resize: none;
    height: 100px;
}
.with-icon::placeholder {
    text-indent: 15px;
}

.logo-img {
    width: 150px;
}

input[type="file"]::file-selector-button {
    font-family: inherit;
    background-color: var(--lighter-gray);
    border: none;
    border-radius: 8px;
    padding: 5px 10px;
    cursor: pointer;
}

.custom-file-upload {
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 12px;
    position: relative;
    cursor: pointer;
    text-align: right;
}

.custom-file-upload input[type="file"] {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
}

.upload-placeholder {
    color: #999;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    pointer-events: none;
}

.with-icon {
    padding-right: 40px;
    resize: none;
    height: 100px;
}

.textarea-icon {
    position: absolute;
    top: 34px;
    right: 5px;
    pointer-events: none;
}

.img-wrapper {
    box-shadow: 0px 6px 6px -4px rgba(0, 0, 0, 0.12);
}

/* =======================================================
                    ******  Dlivery ********
     ======================================================= */
/* =======================================================
                        1-login
     ======================================================= */
.phone-icon {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: var(--light-gray-bg);
    font-size: 16px;
}

.form-control.with-icon-phone {
    padding-right: 40px;
}

/* =======================================================
                        2-home
     ======================================================= */
.btn-group .btn.tab-btn {
    font-weight: 600;
    font-size: 12px;
    margin-top: 20px;
    padding: 10px;
}

.btn-group {
    gap: 10px;
}
.btn-group .btn.active {
    background-color: var(--main-color);
    color: white;
}
/* order-details-box  */
.order-details {
    max-width: 340px;
    background: var(--light-gray);
    border-radius: 12px;

    padding: 20px;
    margin-inline: auto;
}

.order-details .card-content {
    border-bottom: 1px solid var(--lighter-gray);
}
.order-details i {
    color: var(--yellow-color);
}
.divider {
    color: var(--lighter-gray);
    font-size: 18px;
    font-weight: 300;
}

.order-details .btn-primary {
    border-radius: 25px;
}

/* costoum -card  */

.custom-card {
    max-width: 340px;
    background: var(--light-gray);
    border-radius: 12px;
    padding: 15px;
    margin-inline: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.card-content {
    position: relative;
    text-align: right;
    direction: rtl;
}

.top-text {
    color: var(--light-gray-bg);
}

.icon {
    font-size: 14px;
    color: var(--light-gray-bg);
}

.divider {
    border: 0;
    height: 1px;
    background: var(--light-gray-bg);
    margin: 10px 0;
}

.bottom-text {
    font-size: 16px;
    color: var(--main-color);
    font-weight: 500;
}

#received-orders .btn {
    background-color: var(--light-gray-bg);
    color: var(--main-color);
    font-weight: 400;
}
#received-orders .btn:hover {
    background-color: var(--light-gray-bg) !important;
}

#finished-orders .btn {
    background-color: #ffff;
    color: var(--light-gray-bg);
    font-weight: 400;
}

#finished-orders .btn:hover {
    background-color: #ffff !important;
}

.order-header i.fa-phone,
.order-header .fa-globe {
    color: var(--yellow-color);
}
/* =======================================================
                        3-order
     ======================================================= */

/* //NEW CODE  Order */
.upload-img {
    background: #fff;
    text-align: center;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border: 2px dashed #a8aecb;
    border-radius: 20px;
    padding: 30px 20px;
    margin-bottom: 25px;
    color: var(--main-color);
    font-weight: 500;
    font-size: 17px;
    cursor: pointer;
}

.upload-icon img {
    width: 60px;
    height: auto;
}

.disabled-btn {
    background-color: #a8aecb !important;
    color: #fff !important;
}

.disabled-btn:hover {
    background-color: #a8aecb !important;
    color: #fff !important;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: auto;
}
/* ===============================
     Swiper media for tablet & Desktop
     =============================== */
@media (min-width: 600px) {
    .project-wrapper {
        max-width: 540px;
        padding: 30px 20px;
    }
}
@media (min-width: 900px) {
    .project-wrapper {
        max-width: 700px;
        padding: 40px;
    }
}

@media (min-width: 600px) {
    .swiper-slide:not(:first-of-type) img {
        max-width: 200px;
    }

    .swiper-slide .logo-img {
        width: 240px !important;
    }
    .swiper-slide p {
        font-size: 20px;
    }

    .swiper {
        width: 70%;
    }

    .skip {
        bottom: 50px;
        right: 40px;
        padding: 12px 35px;
    }
}

@media (min-width: 900px) {
    .swiper-slide:not(:first-of-type) img {
        max-width: 260px;
    }

    .swiper-slide .logo-img {
        width: 300px !important;
    }

    .swiper-slide p {
        font-size: 22px;
        max-width: 70%;
    }

    .swiper {
        width: 50%;
    }
}

/* ================================
     Media Queries for Login Page
     ================================ */

@media (min-width: 600px) {
    .logo-img {
        width: 180px;
    }

    .form-control {
        font-size: 18px;
        padding: 14px;
    }

    .btn {
        font-size: 18px;
        padding: 12px 0;
    }
}

@media (min-width: 900px) {
    .logo-img {
        width: 200px;
    }

    .form-control {
        font-size: 20px;
    }

    .btn {
        font-size: 18px;
    }
}
/* ================================
     Media Queries - Order Request Page
     ================================ */

@media (min-width: 600px) {
    .logo-img {
        width: 180px;
        margin-bottom: 20px;
    }

    textarea.form-control,
    input.form-control {
        font-size: 18px;
        padding: 14px;
    }

    .upload-placeholder {
        font-size: 16px;
    }

    .play-btn {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .btn {
        font-size: 18px;
        padding: 12px 0;
    }
}

@media (min-width: 900px) {
    .logo-img {
        width: 200px;
    }

    .form-control {
        font-size: 20px;
        padding: 16px;
    }

    .upload-placeholder {
        font-size: 18px;
    }

    .play-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .btn {
        font-size: 20px;
    }
}
/* ================================
     Media Queries - home
     ================================ */

@media (min-width: 600px) {
    .stylish-card .card-body {
        padding: 24px;
    }

    .pin-icon {
        width: 36px;
        top: 15px;
        right: 15px;
    }

    .product-card img {
        max-height: 200px;
        object-fit: cover;
    }

    .order-details-box {
        font-size: 18px;
        padding: 16px;
    }
}

@media (min-width: 900px) {
    .home-heading {
        font-size: 24px;
    }

    .stylish-card {
        max-width: 500px;
    }

    .product-card img {
        max-height: 220px;
    }

    .order-details-box {
        font-size: 20px;
    }

    .play-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* =======================================================
                    ******  stores ********
     ======================================================= */
/* =======================================================
                        1-home
     ======================================================= */
.wave-header {
    background-color: var(--main-color);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.wave-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.wave-shape {
    width: 100%;
    height: 60px;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-shape svg {
    display: block;
    width: 100%;
    height: 100%;
}

.phone-icon {
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: var(--light-gray-bg);
    font-size: 16px;
    pointer-events: none;
}

.form-control.with-icon-phone {
    padding-right: 40px;
}

/* Responsive */
@media (min-width: 768px) {
    .wave-header h2 {
        font-size: 26px;
    }

    .wave-shape {
        height: 80px;
    }
}

@media (min-width: 1024px) {
    .wave-header h2 {
        font-size: 30px;
    }

    .wave-shape {
        height: 100px;
    }
}

/* ===== adress details ===== */
.custom-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-radio-item {
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--main-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.custom-radio-item:hover {
    background-color: var(--lighter-gray);
}

.custom-radio-item input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--main-color);
    border-radius: 50%;
    margin-left: 12px;
    position: relative;
    flex-shrink: 0;
}

.radio-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: var(--main-color);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

.custom-radio-item input[type="radio"]:checked + .radio-mark::after {
    transform: translate(-50%, -50%) scale(1);
}

@media (min-width: 600px) {
    .custom-radio-item {
        padding: 16px;
        font-size: 18px;
    }

    .radio-mark {
        width: 24px;
        height: 24px;
        margin-left: 16px;
    }

    .radio-mark::after {
        width: 12px;
        height: 12px;
    }
}

@media (min-width: 900px) {
    .custom-radio-group {
        gap: 16px;
    }

    .custom-radio-item {
        padding: 20px;
    }

    .radio-mark {
        width: 28px;
        height: 28px;
    }

    .radio-mark::after {
        width: 14px;
        height: 14px;
    }
}

/* ===== add new  adress  ===== */

.form-subtitle {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #a8aecb;
}

.with-icon-store {
    padding-right: 40px !important;
    background-color: var(--light-gray);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    color: var(--main-color);
}

.textarea-icon {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    color: var(--light-gray-bg);
    pointer-events: none;
    font-size: 16px;
}

textarea.with-icon-s {
    height: 100px;
    resize: none;
    padding-top: 16px;
}

/* Tablet */
@media (min-width: 600px) {
    .form-subtitle {
        font-size: 18px;
    }

    .with-icon {
        font-size: 18px;
        padding-right: 48px;
    }

    .textarea-icon {
        font-size: 18px;
    }

    textarea.with-icon {
        height: 120px;
    }
}

/* Desktop */
@media (min-width: 900px) {
    .form-subtitle {
        font-size: 20px;
    }

    .with-icon {
        font-size: 20px;
    }

    .textarea-icon {
        font-size: 20px;
    }

    textarea.with-icon {
        height: 140px;
    }
}
/* ======  icon  ====== */
.fab-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.fab-button {
    background-color: #ffd942;
    color: var(--main-color);
    border: none;
    border-radius: 50px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    white-space: nowrap;
}

.fab-button .fab-text {
    opacity: 0;
    max-width: 0;
    transition: max-width 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.fab-button.expanded .fab-text {
    opacity: 1;
    max-width: 200px;
}

.fab-icon-img {
    width: 24px;
    height: 24px;
}

/*  Hover effect */
.fab-button:hover {
    transform: scale(1.05);
}

.section-toggle {
    transition: opacity 0.3s ease;
}

.section-toggle.hidden {
    display: none;
    opacity: 0;
}

.section-toggle.visible {
    display: block;
    opacity: 1;
}

/* =======================================================
                        flatePiker
     ======================================================= */
.input-icon {
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: #a8aecb;

    font-size: 16px;
    pointer-events: none;
}

.transition-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.transition-collapse.open {
    max-height: 500px;
}

.flatpickr-calendar {
    direction: rtl;
    text-align: right;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
    right: 16px !important;

    left: auto !important;
}

/* Start Sewidan updates */

.card-content {
    padding-bottom: 12px;
}

.order-details {
    max-width: 450px;
}

.order-details-box {
    line-height: 1.5;
}

.product-card img {
    width: 100%;
    height: auto;
}

.phone-number {
    min-width: 125px;
}

.custom-card {
    max-width: 100%;
    background: var(--light-gray);
    border-radius: 12px;
    padding: 15px;
    margin-inline: auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.card-content {
    position: relative;
    text-align: right;
    direction: rtl;
    padding-bottom: 12px;
}

.btn-primary {
    background-color: var(--main-color);
    border: none;
    font-weight: 600;
}

a {
    color: var(--main-color);
    text-decoration: none;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.loader-inner {
    position: relative;
    width: 200px;
    height: 150px;
    overflow: visible;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-inner img {
    position: absolute;
    width: 200px;
    height: 150px;
    top: 0;
    opacity: 0;
    left: -200px;
    transition: none;
}

@keyframes slideThrough {
    0% {
        left: -200px;
        opacity: 1;
        transform: translateX(0);
    }
    50% {
        left: 50%;
        opacity: 1;
        transform: translateX(-50%);
    }
    100% {
        left: 400px;
        opacity: 0;
        transform: translateX(0);
    }
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border: 1px solid #e7e7e7;
    box-shadow: 0px 0px 6px #c7c7c76b;
    padding: 1px;
    border-radius: 11px;
}

.gallery-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* Ensure responsiveness for smaller screens */
@media (max-width: 576px) {
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .gallery-image {
        height: 120px;
    }
}

.btn:disabled{
    background-color: #565e85;
    opacity: 0.6s;
    pointer-events: none;
    color: #fff;
}

.form-wrapper {
    max-width: 100%;
}

/* End Sewidan updates */
