@font-face {
    font-family: 'Cairo';
    src: url('./Cairo/Cairo-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap 
}

@font-face {
    font-family: 'Cairo';
    src: url('./Cairo/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    cross-origin: anonymous;
}

@font-face {
    font-family: 'Cairo';
    src: url('./Cairo/Cairo-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    cross-origin: anonymous;
}
@font-face {
    font-family: 'Cairo';
    src: url('./Cairo/Cairo-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    cross-origin: anonymous;
}
@font-face {
    font-family: 'Cairo';
    src: url('./Cairo/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
    cross-origin: anonymous;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo';
}
:root {
    --primary-color: #31006F;
    --header-bg-color: #D4D9E4;
    --secondary-color: #6b7075;
}
/* step dialog font */

.step-dialog-font{
    font-weight: 700;
    font-style: bold;
    color: #000 ;
}
/* loader  */
/* From Uiverse.io by mobinkakei */ 
.wrapper {
    width: 110px;
    height: 60px;
    position: relative;
    z-index: 1;
  }
  .circle {
    width: 20px;
    height: 20px;
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary-color) !important;
    left: 25%;
    transform-origin: 50%;
    animation: circle7124 .5s alternate infinite ease;
  }
  
  @keyframes circle7124 {
    0% {
      top: 60px;
      height: 5px;
      border-radius: 50px 50px 25px 25px;
      transform: scaleX(1.7);
    }
  
    40% {
      height: 20px;
      border-radius: 50%;
      transform: scaleX(1);
    }
  
    100% {
      top: 0%;
    }
  }
  
  .circle:nth-child(2) {
    left: 45%;
    animation-delay: .2s;
  }
  
  .circle:nth-child(3) {
    left: auto;
    right: 15%;
    animation-delay: .3s;
  }
  
  .shadow {
    width: 20px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.9);
    position: absolute;
    top: 62px;
    transform-origin: 50%;
    z-index: -1;
    left: 15%;
    filter: blur(1px);
    animation: shadow046 .5s alternate infinite ease;
  }
  
  @keyframes shadow046 {
    0% {
      transform: scaleX(1.5);
    }
  
    40% {
      transform: scaleX(1);
      opacity: .7;
    }
  
    100% {
      transform: scaleX(.2);
      opacity: .4;
    }
  }
  
  .shadow:nth-child(4) {
    left: 45%;
    animation-delay: .2s
  }
  
  .shadow:nth-child(5) {
    left: auto;
    right: 15%;
    animation-delay: .3s;
  }

  /* end loader */
.items-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.flex-column {
    flex-direction: column;
}
.w-100 {
    width: 100%;
}
.mb-5 {
    margin-bottom: 25px;
}
.mb-1{
    margin-block: 10px;
}
.d-none {
    display: none !important;
}
.bg-white {
    background-color: #fff !important;
}
.w-50 {
    width: 50%;
}
.mt-5 {
    margin-top: 25px;
}
.mt-1{
    margin-top: 10px;
}
header {
    & .logo {
        height: 50px;
        background-color: var(--header-bg-color);
    }
}
.main-container{
    margin-inline: 18px;
    align-items: start;
    gap: 10px;
    & .main-title{
        font-size: 24px;
        font-weight: 700;
    }

    & .client-details {
        width: 100%;
        border: 1px solid var(--header-bg-color);
        padding: 5px;
        border-radius: 10px;
        & tbody {
            & tr {
                & td {
                    padding:2px 8px;
                    font-weight: 600;
                    font-size: 14px;
    
                    &:first-child {
                        color: var(--secondary-color);
                    }
    
                    &:last-child {
                        width: 70%;
                        color: #000;
                    }
                }
            }
        }
    }
    & order-details + h2.main-title{
        font-size:20px;
    }
}
   
.choose-date{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, auto);
    row-gap: 20px;
    column-gap: 10px;
    & label{
        cursor: pointer;
    }
    & input[type="radio"]:checked + label > *{
        background-color: var(--primary-color) !important;
        color: #fff;
    }

    &:has(input[type="radio"]:checked) ~ button{
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        color: #fff;
        cursor: pointer;
        pointer-events: all;
    }

    &:has(input[type="radio"]) ~ button{
        pointer-events: none;
        cursor: not-allowed;
        background-color: var(--secondary-color) !important;
        border-color: var(--secondary-color) !important;
        color: #fff;
    }

    & .card-date{
        border: 1px solid var(--header-bg-color);
        align-items: center;
        max-width: 100%;
        min-height: 61px;
        border-radius: 8px;;
        & p{
            font-size: 14px;
            font-weight: 500;
        }
    }
}

.cancel-order{
    font-size: 13px;
    font-weight: 600;
    color: #F54D4D;
    text-decoration: underline;
    cursor: pointer;
}

.next-btn{
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 100px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    /* max-width: 400px; */
    position: relative;
}

dialog{
    border: 0;
    min-width: 96%;
    max-width: 500px;
    padding: 20px;
    right: 50%;
    top: 50%;
    translate: 50% -50%;
    border-radius: 15px;

    & .dialog-title{
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        margin-bottom: 15px;
    }


    & .items-center{
        gap: 10px;
        & :nth-child(2){
            color: #9E9E9E;
            background-color: #fff;
            border-color: #9E9E9E;
        }
    }
}
button{
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    text-align: center;
    border: 1px solid var(--primary-color);
}

textarea{
    all: unset;
    box-sizing: border-box;
    border: 1px solid var(--header-bg-color);
    border-radius: 8px;
    width: 100%;
    padding: 10px;
}
#cancel-order-reason + span {
    color: red;
    font-size: 12px;
    font-weight: 700;
    display: none;
    margin-bottom: 15px;;
}


/* swithc page animatin */
@keyframes switch-current-page {
    from{
        transform: translateY(0);
        opacity: 1;
    }
    to{
        transform: translateY(10px);
        opacity: 0;
    }
}

.current-page{
    animation: switch-current-page 0.3s ease-in-out forwards;
}
.next-page{
    animation: switch-current-page 0.3s .3s ease-in-out reverse;
}

/* time-page */

.time-container{
    & .choose-date{
        grid-template-columns: repeat(1, auto);
        & .card-date{
            border-radius: 100px;
        }
    }
    & .back-btn{
        font-size: 14px;
        font-weight: 600;
        color: var(--primary-color);
        gap: 5px;
        align-items: center;
        display: flex;
        width: fit-content;
        cursor: pointer;
    }
}

/* confirm form */

.form{
    & .back-to-timer-btn{
        display: block;
        width: fit-content;
    }   
    & input{
        direction: rtl;
        border: 1px solid var(--header-bg-color);
        border-radius: 8px;
        padding:10px;
        font-size: 14px;
        font-weight: 600;
        background-color: var(--header-bg-color);
        outline: none;
        & + span{
            color: #F54D4D;
            font-size: 12px;
            margin-top: 5px;
            display: none;
        }

        &:invalid:not(:placeholder-shown){ 
            border-color: #F54D4D;
            & + span{
                display: block;
            }
        }

        &:valid:not(:placeholder-shown){
            border-color: green;
            & + span{
                display: none;
            }
        }
    }
    & input[type="tel"]{
        direction: ltr;
        text-indent: 30px;
    }
    & .add-another-number{
        font-size: 14px;
        font-weight: 600;
        color: var(--primary-color);
        gap: 5px;
        align-items: center;
        display: flex;
        text-decoration: underline;
        cursor: pointer;
    }
    & .delete-second-number{
        font-size: 14px;
        font-weight: 600;
        color: #Fff;
        border: none;
        background-color: #F54D4D;
        width: 70px;;
        padding: 10px 10px;
        border-radius: 5px;
    }

    & .items-center{
        gap: 10px;
    }
    & .google-map-button{
        width: 100%;
        background-color: #E1EAFE;
        border: 1px solid red;
        height: 61px;
        border-radius: 8px;
        font-size: 14px;
        padding-inline: 15px;
        & span{
            text-align: start;
        }
    }
    & .location-text{
        color: #F54D4D;
        font-size: 12px;
        font-weight: 700;
        margin-bottom: 5px;;
    }


    &:has(input:invalid)  button[type="button"].send-data{
        background-color: var(--secondary-color) !important;
        border-color: var(--secondary-color) !important;
        pointer-events: none;
        cursor: not-allowed;
    }
    .invalid{
        background-color: var(--secondary-color) !important;
        border-color: var(--secondary-color) !important;
        pointer-events: none;
        cursor: not-allowed;
    }
}

/* map container */

.map-container{
    position: relative;
    width: 100%;
    overflow: hidden;
    & #map{
        width: 100%;
        height: calc(100dvh - 94px);
    }
    & .map-location-text{
        position: absolute;
        bottom: 0%;
        text-align: start;
        height: 151px;
        z-index: 1234;
        padding-inline: 15px;
        & p.items-center{
            font-size: 14px;
            font-weight: 600;
            margin-top: 10px;
            gap: 10px;
            justify-content: flex-start;
            margin-bottom: 25px;
        }
    }

}

.please-choose-time{
    font-size: 15px;
    font-weight: 700;
}
.tel{
    position: relative;
    & input{
        text-indent: 30px;
    }
    & svg{
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
}

.error-msg{
    color: #F54D4D;
    font-size: 12px;
    font-weight: 700;
    display: block;
}

#location , .datalist{
    all: unset;
    width: 100%;
    background-color: #fff;
    padding: 7px 12px;
    border-radius: 8px;
}
.datalist{
    display: none;
    max-height: 300px;
    overflow-y: scroll;
    padding: 10px;
}

dialog#thank-you{
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    gap: 20px;
    
    & .dialog-thank-title{
        font-size: 17px;
        font-weight: 700;
        color: #000;;
    }
    & .dialog-thank-contsent{
        font-size: 20px;
        font-weight: 500;
    }
}

.notify-dialog{
    border: none;
    outline: none;   
    &::backdrop{
        background-color: #fff;
    }
    & button{
        border-radius: 8px;
        padding: 10px 20px;
    }
    & button:first-child{
        background-color: var(--primary-color);
        border: 1px solid var(--primary-color);
        color: #fff;
    }
    & button:last-child{
        background-color: var(--secondary-color);
        border: 1px solid var(--secondary-color);
        color: #fff;
    }
}
.container{
    position: relative;
    z-index: 12345;
}

.pac-container.pac-logo.hdpi{
    max-width: 95%;
    padding-inline: 10px;
    margin-inline: 10px;
    left: unset !important;
    box-shadow: unset !important;
    border: 1px solid var(--header-bg-color);
    padding-block: 10px;
    border-radius: 5px;;
    & .pac-item:first-of-type{
        border-top: none;
    }
}
.gmnoprint{
    top: 0 !important;
}