:root {
    --dark-color: #683b1a;
    --bg:#ce9410;
}
section {
    width: 1040px !important;
    min-height: calc(80vh - 90px);
    margin-top: calc(60px + 30px) !important;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    & div.start {
        width: 556px;
    }
    & div.end {
        flex: 1;
    }
    & div.faqs {
        margin: 0 !important;
    }
    & div.faqs p.title {
        font-size: 16px;
        text-align: left;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        & svg {
            height: 18px;
            width: 18px;
            display: flex;
            overflow: auto;
            fill: #454545;
            margin-right: 7px;
        }
    }
    & div.faq p.question {
        font-size: 17px;
        font-weight: 500;
        & svg {
            height: 16px;
            width: 16px;
        }
    }
    & div.faqs p.answer {
        color: #232323;
        line-height: 1.4;
    }
    & div.faqs div.child {
        display: block;
        width: 100%;
        gap: 0;
        margin-top: 20px !important;
    }
}

div.banner {
    width: 100%;
    background-color: #f7f7f7;
    height: auto;
    display: flex;
    border-radius: 11px;
    overflow: hidden;
    & img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

div.forms {
    margin: 20px 0;
}

div.form-area {
    display: none;
    background-color: #fff;
    box-shadow: 0 2px 5px -1px rgba(50, 50, 93, .25), 0 1px 3px -1px rgba(0, 0, 0, .3);
    border-radius: 11px;
    padding: 20px;
    &.active {
        display: block;
    }
    & p.title {
        font-size: 20px;
        line-height: 1.4;
        color: #212121;
    }
    & p {
        
        margin-bottom: 1rem;
    }
    & a {
        color: #00baf2;
        text-decoration: underline;
    }
    & div.sub-title-area {
        display: flex;
        align-items: center;
        margin-top: 10px;
        & p {
            color: #212529;
        }
    }

    & div.sub-title-area div.dot {
        height: 10px;
        width: 10px;
        background-color: var(--dark-color);
        border-radius: 50px;
        margin-right: 5px;
    }
    & button {
        font-size: 16px;
    }
    & button.action {
        color: white;
        border: 0;
        padding: 8px 20px;
        width: 250px;
        margin-top: 20px;
        border-radius: 7px;
        cursor: pointer;
        &.disabled {
            opacity: 0.5;
            cursor: default;
        }
        &.processing {
            opacity: 0.5;
            cursor: progress;
        }
    }
    & button.add-family-member:not(.active) {
        display: none;
    }

    & button.add-family-member,
    & button.back {
        background-color: #454545;
        margin-right: 20px;
        max-width: 170px;
    }
    & button.next,
    & button.save,
    & button.save-family-member {
        background-color: var(--dark-color)
    }
}

div.input-area {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 20px;
    margin: 10px 0;
    & img.loader {
        height: 40px;
        width: 40px;
        position: absolute;
        right: 0;
        bottom: 0px;
        mix-blend-mode: multiply;
    }
    & img.loader.hidde {
        display: none !important;
    }
}

div.input-area select {
    margin-left: 20px;
    padding: 10px 0 5px 0;
    border: 0;
    outline: none;
    border-bottom: 2px solid #000046;
    background-color: transparent;
}

input {
    font-size: 18px;
    padding: 10px 0 5px 0;
    bottom: 0px;
    direction: ltr;
    flex: 1;
    border: 0;
    outline: none;
    border-bottom: 2px solid #959595;
    /* border-bottom: 2px solid #000046; */
}
input.error {
    border-color: #ff0000;
}
input:disabled {
    background-color: #f4f4f4;
    border-color: #f4f4f4;
    padding: 10px;
    border-radius: 3px;
}
input:hover:not(:disabled){
    border-color: #636363;
}

input:focus,
select:focus {
    border-color: #000046 !important
}

select {
    border-color: #959595 !important;
}

div.pincode-error {
    background-color: #ff00002d;
    padding: 10px;
    border-radius: 7px;
    font-size: 14px;
    color: #8A0000;
    margin-bottom: 20px;
}

div.members {
    display: none;
    background: #efefef;
    margin: 14px 0 5px;
    border-radius: 7px;
    padding: 7px 10px 10px;
    gap: 7px;
    & div.heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 3px;
        & p {
            margin: 0;
        }
        & p:nth-child(2) {
            font-weight: 600;
        }
    }
    & p.title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 7px;
    }
    & div.member {
        background: #fff;
        border-radius: 7px;
        margin: 0;
        padding: 7px 7px 7px 10px;
        display: flex;
        align-items: center;
        & p {
            margin: 0;
            font-size: 15px;
            flex: 1;
        }
        & p:not(span) {
            color: #777777;
        }
        & div.buttons {
            gap: 7px;
            display: flex;
            align-items: center;
        }
        & button {
            border: 0;
            border-radius: 7px;
            padding: 7px;
            aspect-ratio: 1;
            background-color: #f6f6f6;
            cursor: pointer;
            & svg {
                height: 20px;
                width: 20px;
                display: flex;
                overflow: visible;
            }
            &:hover {
                opacity: 0.7;
            }
        }
        & button.delete svg {
            fill: #ff0000;
        }
    }
    &.active {
        display: grid;
    }
}

div.member-confirmation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000050;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    & div.child {
        max-width: 450px;
        width: 100%;
        background-color: #fff;
        border-radius: 11px;
        padding: 20px;
        & p.title {
            font-size: 26px;
            font-weight: 600;
            margin: 0;
        }
        & p.desc {
            font-size: 18px;
            margin: 0;
            line-height: 28px;
            margin-top: 10px;
        }
        & div.buttons {
            display: flex;
            align-items: center;
            gap: 14px;
            & button {
                flex: 1;
                border: 0;
                padding: 8px 0;
                border: 1px solid #000046;
                margin-top: 14px;
                border-radius: 11px;
                font-size: 15px;
                font-weight: 500;
                cursor: pointer;
            }
            & button:first-child {
                border-color: var(--bg);
                background-color: transparent;
                color: var(--bg);
                &:hover {
                    background-color: var(--bg);
                    color: #FFF;
                }
            }
            & button:last-child {
                background-color: var(--dark-color);
                color: #fff;
                border-color: var(--dark-color);
                &:hover {
                    background-color: var(--dark-color);
                    border-color: #fff;
                }
            }
        }
    }
}

div.mobile-number-verification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000050;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    & div.child {
        width: calc(340px - 40px);
        padding: 20px;
        background-color: #fff;
        border-radius: 11px;
    }
    & p.title {
        font-size: 22px;
    }
    & p.subtitle {
        font-size: 16px;
        margin: 10px 0 25px 0;
        color: #353535;        
    }
    & div.receiver {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid #e8e8e8;
        padding: 0 3px;
        border-radius: 7px 13px 13px 7px;
        height: 42px;
        & img.flag {
            height: 20px;
            width: auto;
            border-radius: 2px;
            object-fit: cover;
            margin-right: 10px;
            margin-left: 5px;
        }
        & p {
            display: flex;
            flex: 1;
            font-size: 18px;
            font-weight: 600;
        }
        & p span {
            padding-left: 5px;
        
        }

    }
    & button.edit {
        display: flex;
        padding: 10px;
        margin: 0 0 0 10px;
        border-radius: 11px;
        background-color: #e8e8e8;
        outline: none;
        border: 0;
        cursor: pointer;
        & svg {
            height: 16px;
            width: 16px;
            overflow: visible;
        }
        &:hover {
            background-color: #d3d3d3;
        }
    }
    & button.submit {
        display: flex;
        align-items: center;
        background: #E8FFEB;
        color: #28B53E;
        border: 1px solid #28B53E;
        padding: 9px 12px;
        font-size: 16px;
        margin-top: 10px;
        outline: none;
        border-radius: 9px;
        font-weight: 500;
        width: 100%;
        justify-content: center;
        opacity: 0.5;
        cursor: default;
        gap: 7px;
        & svg {
            height: 20px;
            width: 20px;
            margin-right: 5px;
            overflow: visible;
            fill: #28B53E;
        }
        & span {
            font-size: 15px;
            color: #28B53E;
            text-transform: uppercase;
        }
        &.active {
            opacity: 1;
            cursor: pointer;
        }
    }
    div.resend {
        display: flex;
        align-items: center;
        margin-top: 20px;
        justify-content: center;            
        & p {
            margin-bottom: 0;
        }
        & button {
            border: 0;
            outline: none;
            background-color: transparent;
            color: #002970;
            padding: 0;
            cursor: pointer;
            padding: 0 7px;
            margin-top: 0;
            font-size: 15px;
            font-weight: 600;
        }
        & button:hover {
            text-decoration: underline;
        }
    }
}

div.mobile-number-verification[data-state="initial"] {
    & p.subtitle::after {
        content: "We will send your a verification code on your phone number";
    }
    & button.submit {
        opacity: 1;
        cursor: pointer;
        & span::after {
            content: "Get OTP on WhatsApp";
        }
    }
    & button.submit.processing {
        opacity: 0.5;
        cursor: progress;
        & span::after {
            content: "Generating...";
        }
    }
    & div.resend {
        display: none;
    }
    & div.input-area {
        display: none;
    }

}
div.mobile-number-verification[data-state="verification"] {
    & p.subtitle::after {
        content: "A verification code has been sent to your whatsapp";
    }
    & button.edit {
        display: none;
    }
    & button.submit:not(.processing) span::after {
        content: "Verify OTP";
    }
    & button.submit.processing {
        opacity: 0.5;
        cursor: progress;
        & span::after {
            content: "Verifying...";
        }
    }
    & div.input-area {
        display: flex;
        & input {
            border: 1px solid #959595;
            font-size: 16px;
            border-radius: 11px;
            padding: 12px 10px;
            margin-top: 10px;
        }
        & input:disabled {
            background-color: #f4f4f4;
            border-color: #f4f4f4;
        }
    }

}


div.terms {
    margin-top: 20px;
    cursor: pointer;
    border: 1px solid #ededed;
    border-radius: 7px;
    padding: 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    & svg {
        fill: #d3d3d3;
    }
    &:hover {
        background-color: #ededed;
    }
    &.accepted svg {
        fill: #002970;
    }
}

div.promotions {
    height: auto;
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 14px;
    & a {
        flex: 1;
        display: flex;
        border-radius: 11px;
        overflow: hidden;
    }
    & a img {
        width: 100%;
        height: auto;
        display: flex;
    }
}

div.tutorials {
    height: auto;
    flex: 1;
    display: flex;
    background-color: transparent;
    border-radius: 11px;
    overflow: hidden;
    & img {
        width: 100%;
        height: auto;
        display: flex;
    }
    &:hover {
        box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
        opacity: 0.8; 
    }
}

div.delivery-charges {
    margin-bottom: 20px;    
    & div {
        display: inline-flex;
        align-items: center;
        padding: 10px;
        font-size: 14px;
        border-radius: 7px;
        background-color: #f7f7f7;
        
        gap: 10px;
    }
    & p {
        color: #454545;
        margin: 0;
    }
    &.hidden {
        display: none;
    }
    & svg {
        fill: #454545;
        display: flex;
        height: 16px;
        width: 16px;
        overflow: visible;
    }
}

@media screen and (max-width: calc(1240px + 60px)) {
    section {
      width: 1040px !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }
}

@media screen and (max-width: calc(1040px + 60px)) {
    section {
      width: auto !important;
      margin-left: 30px !important;
      margin-right: 30px !important;
      & div.start {
        width: 60% !important; 
      }
    }
}

@media screen and (max-width: 922px) {
    section {
      display: grid;
      min-height: auto !important;
      & div.start {
        width: 100% !important;
      }
    }
}