/* fonts */
@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-Thin.woff2);
    font-weight: 100;
}

@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-Light.woff2);
    font-weight: 200;
}

@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-Regular.woff2);
    font-weight: 300;
}

@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-Medium.woff2);
    font-weight: 400;
}

@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-Bold.woff2);
    font-weight: 500;
}

@font-face {
    font-family: iransans;
    src: url(../fonts/IRANSansX-ExtraBold.woff2);
    font-weight: 600;
}

/* general styles */
* {
    font-family: iransans;
    box-sizing: border-box;
}

body,
html {
    padding: 0;
    margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin: 0;
    color: #363131;
}

h1 {
    font-size: 34px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
}

ul,
ol {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.container {
    width: 1350px; 
    margin: auto;
}

.theme-color {
    color: #DE474D;
}

.white-color {
    color: #ffffff;
}

/* loading */
.loading-state {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .5s;
}

.loading {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid #ddd;
    border-top-color: #DE474D;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    to {
        transform: rotate(360deg);
    }
}

/* header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: white;
    box-shadow: 0px 0px 10px 5px #d6d6d6;
}

.mobile-header {
    display: none;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-logo {
    width: 60px;
}

.main-menu ul {
    display: flex;
    gap: 2rem;
}

.main-menu ul li a {
    font-weight: 500;
    color: black;
    transition: .3s;
}

.main-menu ul li a:hover {
    color: gray !important;
}

.sign-container a {
    background-color: #DE474D;
    border: 1px solid white;
    color: white;
    border-radius: .8rem;
    padding: .6rem 1.5rem;
    font-size: 14px;
    transition: .3s;
}

.sign-container a:hover {
    background-color: white !important;
    border: 1px solid #DE474D !important;
    color: #DE474D !important;
}

/* main */
main {
    margin-top: 10rem;
}

.steps-container {
    position: relative;
    width: 90%;
    margin: auto;
}

.gray-line {
    position: relative;
    display: block;
    height: 5px;
    background-color: #E7E7E7;
}

.red-line {
    position: absolute;
    right: 0;
    height: 5px;
    background-color: #DE474D;
}

.steps.active span:nth-child(1) {
    background-color: #DE474D;
}

.steps.active span:nth-child(1)::before {
    transform: translate(7px, -8px);
    content: "";
    display: block;
    width: 35px;
    height: 35px;
    background-color: rgb(222, 71, 77, .2);
    border-radius: 50%;
}

.steps.active span:nth-child(2) {
    font-size: 14px;
    font-weight: 500;
}

.step-1 span:nth-child(1),
.step-2 span:nth-child(1),
.step-3 span:nth-child(1),
.step-4 span:nth-child(1),
.step-5 span:nth-child(1),
.step-6 span:nth-child(1) {
    position: absolute;
    top: -8px;
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background-color: #E7E7E7;
}

.step-1 span:nth-child(2),
.step-3 span:nth-child(2),
.step-5 span:nth-child(2),
.step-2 span:nth-child(2),
.step-4 span:nth-child(2),
.step-6 span:nth-child(2) {
    position: absolute;
    top: 35px;
    font-size: 12px;
    color: #666666;
}

.step-1 span:nth-child(1) {
    right: 0;
}

.step-2 span:nth-child(1) {
    right: 19%;
}

.step-3 span:nth-child(1) {
    right: 38%;
}

.step-4 span:nth-child(1) {
    right: 56%;
}

.step-5 span:nth-child(1) {
    right: 75%;
}

.step-6 span:nth-child(1) {
    left: 0%;
}

.step-1 span:nth-child(2) {
    right: calc(0% - 20px);
}

.step-2 span:nth-child(2) {
    right: calc(19% - 20px);
}

.step-3 span:nth-child(2) {
    right: calc(38% - 20px);
}

.step-4 span:nth-child(2) {
    right: calc(56% - 20px);
}

.step-5 span:nth-child(2) {
    right: calc(75% - 20px);
}

.step-6 span:nth-child(2) {
    left: calc(0% - 20px);
}

.form-container {
    margin-top: 8rem;
    border: 1px solid #ececec;
    border-radius: 1rem;
}

.form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .8rem;
    border-bottom: 1px solid #ececec;
}

.form-header span {
    display: contents;
}

.form-div {
    margin-top: 1rem;
    padding: 0 1rem 1.5rem 1rem;
}

.inputs {
    display: flex;
    flex-wrap: wrap;
}

.input-group {
    margin-top: 2rem;
    position: relative;
    width: 33.333333%;
    padding: 0 .6rem;
}

.input-group label {
    position: absolute;
    top: -12px;
    right: 30px;
    color: #666666;
    background-color: white;
    padding: 2px 10px;
    font-size: 14px;
}

.input-group input {
    border: 1px solid #BBBBBB;
    border-radius: .8rem;
    padding: .8rem;
    width: 100%;
    outline: none;
}

.input-group-submit {
    display: flex;
    justify-content: end;
    width: 100%;
    padding: 0 .6rem;
    margin-top: 3rem;
}

.input-group-submit.step1 {
    margin-top: 8rem !important;
}

.back-button {
    position: relative;
    background-color: white;
    color: #DE474D;
    border: none;
    outline: none;
    border-radius: .8rem;
    padding: .9rem .6rem .9rem 1.2rem;
    width: 150px;
    text-align: left;
    cursor: pointer;
    border: 1px solid #DE474D;
    font-weight: 500;
}

.forward-button {
    position: relative;
    background-color: #DE474D;
    color: white;
    border: none;
    outline: none;
    border-radius: .8rem;
    padding: .9rem .6rem;
    width: calc(33.333333% - .6rem);
    text-align: center;
    cursor: pointer;
    font-weight: 500;
}

.forward-button span {
    position: absolute !important;
    left: 20px !important;
    top: calc(50% + 3px) !important;
    right: auto !important;
    background: none !important;
    transform: translateY(-50%) !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
}

.back-button span {
    position: absolute !important;
    top: calc(50% + 3px) !important;
    right: auto !important;
    background: none !important;
    transform: translateY(-50%) !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
}

.datepicker-container {
    position: relative;
}

.datepicker-container input {
    padding-left: 2.8rem;
}

.datepicker-container .date-icon {
    position: absolute;
    left: 20px;
    top: calc(50% + 4px);
    transform: translateY(-50%);
}

.informations-container {
    display: flex;
    gap: 3rem;
    background-color: #f2f2f2;
    padding: 1.5rem 1rem;
    border-radius: .8rem;
}

.field-name {
    font-weight: 300;
}

.field-value {
    font-weight: 500;
}

.birthdate {
    margin: 3rem 0 2rem 0;
}

.editable-info {
    padding: 0 1.5rem;
}

.visa {
    margin-bottom: 2rem;
}

.visa-status {
    background-color: rgb(25, 140, 255, 10%);
    color: #198CFF;
    padding: .4rem 1.2rem;
    border-radius: .6rem;
    font-weight: 500;
    margin-right: 2rem;
}

.passport {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.passport-status {
    background-color: rgb(232, 71, 71, 10%);
    color: #e84747;
    padding: .4rem 1.2rem;
    border-radius: .6rem;
    font-weight: 500;
    margin-right: .5rem;
}

.edit-button {
    display: contents;
}

.input-group-submit.step2 {
    display: flex;
    gap: 1.2rem;
}

.upload-container {
    width: 700px;
    background-color: rgb(221, 73, 79, 4%);
    border: 2px dashed rgb(205, 205, 205, 70%);
    border-radius: 1.5rem;
    text-align: center;
    padding: 3rem;
    margin: auto;
    margin-top: 2rem;
}

.upload-header {
    color: #607A7C;
    font-weight: 400;
}

.upload-desc-1 {
    color: #607A7C;
    font-weight: 300;
    font-size: 13px;
    margin: .5rem 0;
}

.upload-desc-2 {
    color: #AAAAAA;
    font-weight: 300;
    font-size: 11px;
    direction: ltr;
}

.upload-area {
    position: relative;
}

.upload-area input[type=file] {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    cursor: pointer;
}

.rules {
    color: #3F3F3F;
    font-size: 13px;
    margin-top: 2rem;
    padding: 0 2rem;
}

.rules p {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.rules p span {
    display: contents;
}

.rules label {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 2rem;
}

.end-of-steps {
    text-align: center;
    margin: 4rem 0 7rem 0;
}

.end-of-steps p {
    margin-top: 2rem;
}

.input-group-submit.step7 .back-button {
    text-align: center;
    width: 250px;
    padding: .9rem .6rem;
}

/* responsive */
@media only screen and (max-width: 1450px) {
    .container {
        width: 900px;
    }
}

@media only screen and (max-width: 1330px) {
    .container {
       width: 900px; 
    }
}

@media only screen and (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 1rem;
    }

    .forward-button {
        width: 100%;
    }

    .desktop-header {
        display: none !important;
    }

    .mobile-header {
        display: block;
    }

    .left-side-login {
        display: none;
    }

    .content-container {
        width: 450px;
    }

    .content-inner-container {
        padding: 1.5rem;
        width: auto;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: white;
        display: flex !important;
        justify-content: space-between;
        z-index: 999;
        box-shadow: none;
    }

    header a {
        display: flex;
        align-items: center;
    }

    .header-logo,
    .menu-header img {
        width: 63px;
    }

    .header-logo-container img {
        margin-top: .5rem;
    }

    .dropdown-submenu-container {
        max-height: 24px;
        transition: max-height 1s cubic-bezier(0, 1, 0, 1);
        overflow: hidden;
    }

    .dropdown-submenu {
        display: block;
    }

    .dropdown-submenu-container.open {
        max-height: 1500px;
        transition: max-height 1s ease-in-out;
    }

    .dropdown {
        margin: 1.5rem 0 .5rem 0 !important;
    }

    .dropdown li {
        margin: .5rem 0 !important;
    }

    .dropdown-content {
        display: flex;
        justify-content: space-between;
    }

    .menu ul li {
        margin: 1.2rem 0;
    }

    .menu ul li a {
        color: #808184;
        font-size: 14px;
    }

    .profile-button-container {
        padding: .5rem .5rem 0 .5rem;
    }

    .menu-container {
        position: relative;
    }

    .menu-container nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        padding: 0 1rem;
        border-radius: 20px 0 0 20px;
        box-shadow: 0px 0px 5px 1px #c0c0c0;
        width: 0;
        opacity: 0;
        visibility: hidden;
        transition: 1s;
        overflow: auto;
    }

    .header-nav {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        opacity: 0;
        visibility: hidden;
        transition: .3s;
    }

    .menu-item-text {
        display: flex;
        align-items: center;
        gap: .5rem;
    }

    .contact-number {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        color: #3F3F3F;
        padding: 1.5rem 0;
        border-top: 1px solid #CBCBCB;
    }

    .contact-number a {
        color: #3F3F3F;
    }

    .menu-header {
        position: relative;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid #CBCBCB;
    }

    .lang-switch {
        position: absolute;
        left: 10px;
        top: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: black;
        background-color: #F4F1F1;
        border-radius: .5rem;
        width: 44px;
        height: 44px;
        font-weight: 500;
    }

    .close-menu {
        position: absolute;
        right: 10px;
        top: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: black;
        background-color: #F4F1F1;
        border-radius: .5rem;
        width: 44px;
        height: 44px;
        font-weight: 500;
    }

    .close-menu svg {
        width: 25px;
        height: 25px;
    }

    .form-container {
        border: 0px;
        margin-top: 5rem;
    }

    .form-header {
        border-bottom: 0px;
    }

    main {
        margin-top: 8rem;
    }

    .inputs {
        border: 1px solid #ececec;
        border-radius: 1rem;
        padding: 0rem .5rem 2rem .5rem;
    }

    .input-group {
        width: 100%;
    }

    .step-1 span:nth-child(2),
    .step-3 span:nth-child(2),
    .step-5 span:nth-child(2),
    .step-2 span:nth-child(2),
    .step-4 span:nth-child(2),
    .step-6 span:nth-child(2) {
        font-size: 10px;
    }

    .steps.active span:nth-child(2) {
        font-size: 12px;
    }

    .input-group-submit.step1,
    .input-group-submit {
        margin-top: 2rem !important;
    }

    .informations-container {
        flex-wrap: wrap;
        border: 1px solid #E7E7E7;
    }

    .information-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .input-group-submit.step2 {
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }

    .back-button,
    .input-group-submit.step7 .back-button {
        width: 100%;
        text-align: center;
    }

    .back-button span {
        right: 20px !important;
    }

    .editable-info {
        border: 1px solid #E7E7E7;
        padding: 1rem 1rem 2rem 1rem;
        border-radius: 0.8rem;
        margin-top: 1rem;
        position: relative;
    }

    .edit-button {
        display: block;
        position: absolute;
        top: 15px;
        left: 15px;
    }

    .upload-area {
        border: 1px solid #E7E7E7;
        padding: 0rem 2rem 2rem 2rem;
        border-radius: 0.8rem;
    }

    .upload-container {
        width: 100%;
        padding: 3rem 1rem;
    }

    .upload-header {
        font-size: 14px;
        margin-top: 1rem;
    }

    .upload-desc-1 {
        margin: 1.5rem 0;
    }

    .rules {
        border: 1px solid #E7E7E7;
        padding: 1.5rem;
        border-radius: 0.8rem;
    }

    .rules svg {
        width: 16px !important;
        height: 16px !important;
    }

    .rules p {
        align-items: start;
    }

    .rules p span {
        display: block;
    }

    .step-2 span:nth-child(2),
    .step-4 span:nth-child(2),
    .step-6 span:nth-child(2) {
        top: -45px;
    }

    .end-of-steps {
        border: 1px solid #E7E7E7;
        padding: 2rem 1.5rem 4rem 1.5rem;
        border-radius: 0.8rem;
        margin: 0;
    }
}

@media only screen and (max-width: 530px) {
    .content-container {
        width: auto;
    }
}