:root {
    scroll-padding-top: 60px;
}

html {
    scroll-behavior: smooth;
}

/* commons  */
.desktop {
    display: inline-flex;
}

.mobile {
    display: none !important;
}

@media (max-width: 600px) {
    .desktop {
        display: none !important;
    }

    .mobile {
        display: inline-flex !important;
    }
}

/* Hero section - section 1  */
.rsa-hero-container {
    width: 100%;
    max-height: 500px;
    height: 100%;
    position: relative;
    background: var(--bg-black-primary);
    display: flex;
    justify-content: end;
    align-items: center;
    overflow: hidden;

    .hero-content {
        max-width: 560px;
        width: 100%;
        height: auto;
        color: var(--text-white);

        .arcon-logo {
            margin-bottom: 8px;
        }

        ul {
            margin-top: 20px;
            display: flex;
            flex-direction: column;
            gap: 32px;
            margin-top: 64px;

            li {
                text-decoration: none;
                list-style: none;
                display: flex;
                gap: 12px;
            }
        }
    }

    .hero-image {
        width: 40%;
        height: 100%;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    @media screen and (min-width: 601px) and (max-width: 1024px) {
        & {
            padding: 30px 0px;

            .hero-content {
                width: 50%;

                ul {
                    margin-top: 20px;
                }
            }
        }
    }

    @media screen and (max-width: 600px) {
        & {
            flex-direction: column-reverse;
            max-height: 100%;

            .hero-content {
                max-width: 100%;
                width: auto;
                margin-top: 30px;

                ul {
                    margin-top: 40px;

                    li {
                        align-items: center;

                        img {
                            width: 28px;
                            height: 28px;
                        }
                    }
                }

                .cta-secondary-container {
                    margin-block: 40px;
                }
            }

            .hero-image {
                width: 100%;
            }
        }
    }
}

/* Converged Section - Section 2   */
.converged-container {
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: var(--spacer-60);
    margin-bottom: var(--spacer-120);

    .content {
        max-width: 590px;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;

        .content-list {
            width: 100%;
            height: auto;
            display: flex;
            flex-direction: column;
            gap: 16px;

            ul {
                display: flex;
                flex-direction: column;
                gap: 12px;
                margin-left: 20px;

                li {
                    list-style-type: square;
                }
            }
        }
    }

    .form {
        max-width: 625px;
        width: 100%;
        height: auto;
        padding: 40px;
        border: var(--border-light-blue);
        background: var(--section-gradient);
        border-radius: 16px;

        h4 {
            font-size: 18px;
            font-weight: 400;
            line-height: 26px;
        }

        @media screen and (max-width: 1024px) {
            & {
                padding: 20px;
            }
        }
    }

    @media screen and (max-width: 1025px) {
        & {
            flex-direction: column;
            gap: 40px;
            margin-bottom: var(--spacer-60);

            .content {
                gap: 12px;

                .content-list {
                    gap: 12px;

                    ul {
                        gap: 8px;
                    }
                }
            }
        }
    }

    @media screen and (min-width: 601px) and (max-width: 1024px) {
        & {
            flex-direction: row;
        }
    }
}

/* Why Meet - Section 3  */
.why_meet-container {
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .graphic-container {
        max-width: 560px;
        width: 100%;
        height: auto;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .content {
        max-width: 515px;
        width: 100%;
        height: auto;

        ul {
            margin-left: 20px;
            margin-top: 16px;
            display: flex;
            flex-direction: column;
            gap: 24px;

            li {
                list-style-type: square;
            }
        }

        .cta-primary-container {
            margin-top: 32px;
        }
    }

    .demo-form-container {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        background: rgba(0, 0, 0, 0.2);
        z-index: 1;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;

        .demo-form {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            height: auto;
            max-width: 625px;
            width: 100%;
            background: var(--section-gradient);
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
            border-radius: 16px;
            padding: 40px;

            .form-header {
                width: 100%;
                height: auto;
                display: flex;
                justify-content: space-between;
                align-items: center;

                h4 {
                    font-size: 18px;
                    font-weight: 400;
                    line-height: 26px;
                }

                .close_popup {
                    width: 28px;
                    height: 28px;
                    cursor: pointer;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
            }
        }

        .demo-form {
            width: 100%;
            height: auto;
            padding: 40px;
            border: var(--border-light-blue);
            background: var(--section-gradient);
            border-radius: 16px;
            max-height: 585px;
            overflow: auto;

            .screen-reader-response {
                display: none;
            }

            .form-row {
                width: 100%;
                display: flex;
                gap: 24px;
                justify-content: start;
                align-items: start;
                margin-top: 20px;

                p {
                    width: 50%;
                }

                &.company-job {
                    p {

                        width: 100%;
                        display: flex;
                        gap: 24px;
                        justify-content: start;
                        align-items: start;
                    }
                }

            }

            .form-row-inner {
                width: 100%;

                p {
                    width: 100%;
                    display: flex;
                    justify-content: start;
                    align-items: start;

                    .wpcf7-form-control-wrap {
                        width: 100%;

                        .country-code {
                            width: 62px;
                            display: inline-flex;
                        }
                    }
                }
            }

            input,
            select {
                padding: 15px;
                border-radius: 8px;
                border: 1px solid #D8E5F4;
                background: #FFF;
                width: 100%;
                font-family: "Sora", sans-serif;
                color: var(--text-black-primary);
                font-size: 14px;
                font-weight: 400;
                line-height: normal;
            }

            select:focus-visible,
            input:focus-visible {
                outline: 0;
            }

            input::placeholder,
            select::placeholder {
                color: var(--text-grey2);
                font-size: 14px;
                font-weight: 400;
                line-height: normal;
            }

            input[type='submit'] {
                border-radius: 8px;
                background: #E6323A;
                padding: 16px 32px;
                border: none;
                color: #fff;
                margin-top: 40px;
                width: fit-content;
                color: var(--text-white);
                font-size: 16px;
                font-weight: 400;
                line-height: 22px;
                letter-spacing: 0;
            }

            select[name="country-code"] {
                width: fit-content;
                padding-right: 0;
                border-right: 0;
                border-top-right-radius: 0;
                border-bottom-right-radius: 0;
                font-family: "Sora", sans-serif;
                color: var(--text-black-primary);
                font-size: 14px;
                font-weight: 400;
                line-height: normal;
                padding: 14px;
                padding-right: 0;
            }

            input[type='tel'] {
                width: 100%;
                padding-left: 15px;
                border-left: 0;
                border-top-left-radius: 0;
                border-bottom-left-radius: 0;
            }

            .wpcf7-not-valid-tip {
                font-size: 14px;
            }

            .wpcf7-response-output {
                margin-top: 20px;
                font-size: 14px;
            }

            &:last-child {
                .form-row {
                    p {
                        width: 100%;
                    }

                }
            }

            @media screen and (max-width: 1024px) {
                & {
                    padding: 20px;
                    padding-block: 40px;
                    padding-inline: 20px;

                    .form-row {
                        flex-direction: column;

                        &.company-job {
                            p {
                                flex-direction: column;
                            }
                        }
                    }

                    input[type='tel'] {
                        width: 100%;
                    }

                    input[type='submit'] {
                        width: 100%;
                        font-size: 14px;
                        line-height: 20px;
                        margin-top: 32px;
                    }
                }
            }

            @media screen and (max-width: 1024px) {
                & {
                    width: 95%;
                }
            }
        }

        &.active {
            display: block;
            opacity: 1;
            transition: opacity 0.3s ease;
        }
    }

    @media screen and (max-width: 1025px) {
        & {
            flex-direction: column-reverse;

            .content {
                ul {
                    margin-top: 8px;
                }
            }

            .close_popup {
                width: 20px;
                height: 20px;

                img {
                    width: 20px;
                    height: 20px;
                }
            }
        }
    }

    @media screen and (min-width: 601px) and (max-width: 1024px) {
        & {
            flex-direction: row;
        }
    }
}

/* Map - Section 4  */

.gradient-background {
    background: linear-gradient(180deg, #FFF 0%, #F4F9FF 54.5%, #FFF 100%);
}

.map-container {
    height: auto;
    margin-top: var(--spacer-120);
    margin-bottom: 90px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    z-index: 99;

    .appointment {
        max-width: 520px;
        width: 100%;
        height: auto;
        padding: 40px;
        border: var(--border-light-blue);
        border-radius: 12px;
        background: var(--bg-white);

        .para-primary {
            color: var(--text-grey5);
        }

        ul {
            margin-top: 20px;
            display: flex;
            flex-direction: column;
            gap: 32px;

            li {
                text-decoration: none;
                list-style: none;
                display: flex;
                gap: 12px;
            }
        }

        .cta-secondary-container {
            margin-top: 40px;

            .cta-secondary__text {
                color: var(--text-black-primary);
            }
        }
    }

    .map-embed {
        width: auto;
        height: auto;
        border-radius: 12px;
        overflow: hidden;
    }

    @media screen and (min-width: 601px) and (max-width: 1025px) {
        & {
            flex-direction: row;
            margin-top: var(--spacer-60);

            .appointment {
                padding-inline: 24px;

                ul {
                    li {
                        align-items: start;

                        img {
                            width: 28px;
                            height: 28px;
                        }

                        p {
                            font-size: 14px;
                            line-height: 22px;
                        }
                    }
                }
            }

            .map-embed {
                width: auto;
            }
        }
    }

    @media screen and (max-width: 600px) {
        & {
            flex-direction: column;
            margin-top: var(--spacer-60);

            .appointment {
                padding-inline: 24px;

                ul {
                    li {
                        align-items: start;

                        img {
                            width: 28px;
                            height: 28px;
                        }

                        p {
                            font-size: 14px;
                            line-height: 22px;
                        }
                    }
                }
            }

            .map-embed {
                width: 100%;
            }
        }
    }
}

/* Form CSS */

/* .wpcf7-form{
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.wpcf7-form-control{
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #D8E5F4;
    background: #FFF;  
}

.wpcf7-form-control input[type="text" i],.wpcf7-form-control input[type="tel" i],.wpcf7-form-control input[type="email" i] {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #D8E5F4;
    background: #FFF; 
}
input[type="text" i],input[type="tel" i],input[type="email" i] {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #D8E5F4;
    background: #FFF; 
}

input[type="submit" i]{
    border-radius: 8px;
    background: #E6323A;
    padding: 16px 32px;
    border: none;
    color: #fff;
} */

.form {
    width: 100%;
    height: auto;
    padding: 40px;
    border: var(--border-light-blue);
    background: var(--section-gradient);
    border-radius: 16px;
    max-height: 585px;
    overflow: auto;

    .screen-reader-response {
        display: none;
    }

    .form-row {
        width: 100%;
        display: flex;
        gap: 24px;
        justify-content: start;
        align-items: start;
        margin-top: 20px;

        p {
            width: 50%;

            .wpcf7-form-control-wrap {
                width: 100%;
            }
        }

        &.company-job {
            p {

                width: 100%;
                display: flex;
                gap: 24px;
                justify-content: start;
                align-items: start;
            }
        }

    }

    .form-row-inner {
        width: 100%;

        .country-code {
            width: 62px;
            display: inline-flex;

            p {
                width: 100%;
                display: flex;
                justify-content: start;
                align-items: start;
            }
        }
    }

    input,
    select {
        padding: 15px;
        border-radius: 8px;
        border: 1px solid #D8E5F4;
        background: #FFF;
        width: 100%;
        font-family: "Sora", sans-serif;
        color: var(--text-black-primary);
        font-size: 14px;
        font-weight: 400;
        line-height: normal;
    }

    select:focus-visible,
    input:focus-visible {
        outline: 0;
    }

    input::placeholder,
    select::placeholder {
        color: var(--text-grey2);
        font-size: 14px;
        font-weight: 400;
        line-height: normal;
    }

    input[type='submit'] {
        border-radius: 8px;
        background: #E6323A;
        padding: 16px 32px;
        border: none;
        color: #fff;
        margin-top: 40px;
        width: fit-content;
        color: var(--text-white);
        font-size: 16px;
        font-weight: 400;
        line-height: 22px;
        letter-spacing: 0;
    }

    select[name="country-code"] {
        width: fit-content;
        padding-right: 0;
        border-right: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        font-family: "Sora", sans-serif;
        color: var(--text-black-primary);
        font-size: 14px;
        font-weight: 400;
        line-height: normal;
        padding: 14px;
        padding-right: 0;
    }

    input[type='tel'] {
        width: 100%;
        padding-left: 15px;
        border-left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .wpcf7-not-valid-tip {
        font-size: 14px;
    }

    .wpcf7-response-output {
        margin-top: 20px;
        font-size: 14px;
    }

    &:last-child {
        .form-row {
            p {
                width: 100%;
                display: flex;
                justify-content: start;
                align-items: start;
            }

        }
    }

    @media screen and (max-width: 1024px) {
        & {
            padding: 20px;
            padding-block: 40px;
            padding-inline: 20px;

            .form-row {
                flex-direction: column;

                &.company-job {
                    p {
                        flex-direction: column;
                    }
                }
            }

            input[type='tel'] {
                width: 100%;
            }

            input[type='submit'] {
                width: 100%;
                font-size: 14px;
                line-height: 20px;
                margin-top: 32px;
            }
        }
    }
}