* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.video img,
.video picture img {
    width: 100%;
    height: auto;
    display: block;
}

/*==== VARIABLES ====*/

:root {
    --brand-color: #509BBB;
    --main-bg-color: #FFF;
    --header-bg-color: #F2F5F7;
    --btn-bg-color: #00BC00;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Tahoma', sans-serif;
    --border-radius: 8px;
}

@font-face {
    font-family: 'Tahoma';
    font-weight: 700;
    src: local('Tahoma'), local('Tahoma Bold'), local('Arial'), local('sans-serif');
}

@font-face {
    font-family: 'Tahoma';
    font-weight: 400;
    src: local('Tahoma'), local('Arial'), local('sans-serif');
}

/*==== PRE-STYLES ====*/

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--main-bg-color);
    font-family: var(--font-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

.flex {
    display: flex;
}

.center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.section-heading {
    font-family: var(--font-secondary);
    text-align: center;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #3C3C3C;
    display: block;
    margin: 0 auto;
}

.btn {
    background-color: var(--btn-bg-color);
    height: 3.5rem;
    padding: 0 4rem;
    max-width: 25rem;
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    color: #FFF;
    border: none;
    cursor: pointer;
    transition: .2s;
}

.btn:hover {
    opacity: .9;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.35);
}

.btn:active {
    opacity: .5;
}

.text-colored {
    color: var(--brand-color);
}

/*ANIMATIONS*/

.animated {
    opacity: 0;
    transition: .6s;
}

.fade-in {
    opacity: 1;
}

@keyframes floatingUp {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes floatingDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(50%);
    }
    100% {
        transform: translateY(0);
    }
}

/*==== HEADER =====================*/

.header {
    background-color: var(--header-bg-color);
    padding: 7px 0;
    text-align: center;
}

.header .logo {
    width: 11rem;
    height: auto;
    cursor: pointer
}

/*==== HERO ======================*/

.hero-section {
    padding: 3.5rem 0 4rem 0;
    background: url('../img/bg.webp') no-repeat center / cover;
    background-attachment: fixed;
}

.hero-section .container {
    gap: 3rem;
}

.video-wrapper {
    width: 58%;
    max-width: 717px;
}

.main-heading {
    font-family: var(--font-secondary);
    font-weight: 800;
    font-size: 2.25rem;
    line-height: 1.44;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #3C3C3C;
    margin-bottom: 3.75rem;
}

.main-heading .flag {
    margin-bottom: -8px;
    margin-left: 10px;
}

.video,
.video video {
    border-radius: var(--border-radius);
}

.form-wrapper {
    width: 36%;
    max-width: 456px;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.24);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.form-heading {
    font-family: var(--font-secondary);
    font-style: normal;
    font-weight: 700;
    font-size: 1.38rem;
    line-height: 1.8;
    margin: 0 0 2rem 0;
    color: #3C3C3C;
    text-align: center;
    text-transform: uppercase;
}

/*==== STEPS ===========================*/

.steps-section {
    padding: 1rem 0;
    background-color: var(--header-bg-color);
}

.steps-item.first {
    width: 25%;
    max-width: 480px;
    cursor: pointer
}

.steps-item.second {
    width: 32%;
    max-width: 612px;
    margin-left: 2.75rem;
    cursor: pointer
}

.step-number-img {
    width: 3rem;
    height: 3rem;
    margin-right: 1.5rem;
}

.steps-item-text {
    font-family: var(--font-secondary);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #7D7D7D;
}

/*==== BENEFITS ====================*/

.benefits-section {
    padding: 5rem 0;
    background-color: var(--main-bg-color);
}

.cards-wrapper {
    margin-top: 2rem;
}

.benefits-card {
    width: 32%;
    max-width: 403px;
    background-color: #F8F8F8;
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: .2s
}

.benefits-card:hover {
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.24);
}

.card-heading {
    font-family: var(--font-secondary);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #3C3C3C;
    margin: 1.5rem 0 1rem 0;
}

.card-text {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: #68645F;
}

/*==== ACTION ====================*/

.action-section {
    padding: 5rem 0;
    background-color: var(--brand-color);
    position: relative;
    overflow: hidden
}

.action-section .container {
    position: relative;
    z-index: 3;
}

.action-section .section-heading {
    color: #fff;
    max-width: 1030px;
    margin-bottom: 3.5rem;
}

.action-img-wrapper {
    position: relative;
}

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

.action-img-wrapper .btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24.5%;
}

.action-decor {
    position: absolute;
    max-width: 517px;
}

.action-decor.left {
    bottom: -30%;
    left: 0;
    animation: floatingUp 30s;
    animation-iteration-count: infinite;
}

.action-decor.right {
    top: -30%;
    right: 0;
    animation: floatingDown 30s;
    animation-iteration-count: infinite;
}

/*==== REVIEWS =====================*/

.reviews-section {
    padding: 5rem 0;
    background-color: var(--main-bg-color);
}

.reviews-section .section-heading {
    max-width: 822px;
    margin-bottom: 2.5rem;
}

.reviews-card {
    width: 32%;
    max-width: 403px;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: .2s
}

.reviews-card:hover {
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.24);
}

.card-header {
    background-color: #F8F8F8;
    padding: 2rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.reviewer-img-wrapper {
    position: relative;
    margin-right: 1.5rem;
    width: 4rem;
    height: 4rem;
}

.reviewer-img {
    width: 4rem;
    height: 4rem;
}

.shield-img {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%)
}

.card-header .card-heading {
    font-family: var(--font-secondary);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #3C3C3C;
    margin: 0 0 0 0;
}

.reviews-card .card-text {
    height: 80%;
    background-color: #EDF2F4;
    padding: 2rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    min-height: 160px
}

/*==== BOTTOM FORM SECTION ===============*/

.form-section {
    padding: 5rem 0;
    background: url('../img/bottom-bg.webp') no-repeat center / cover;
    position: relative;
}

.form-section::before {
    content: '';
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(248, 248, 248, 0.7);
    position: absolute;
    z-index: 2;
}

.form-section .form-wrapper {
    position: relative;
    z-index: 3;
    margin: 0 auto;
}

/*==== FOOTER =================*/

.footer {
    padding: 1.8rem 0;
    background-color: var(--main-bg-color);
}

.footer-copyright {
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: #222222;
}

.footer-policies a {
    margin-left: 1.5rem;
    color: var(--brand-color);
}

@media (max-width: 1600px) {
    .container {
        max-width: 1100px
    }
    .header .logo {
        width: 9rem;
    }
    .main-heading {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .form-heading {
        font-size: 1.15rem;
        margin: 0 0 1.5rem 0;
    }
    .section-heading {
        font-size: 1.6rem;
    }
    .card-heading {
        font-size: 1.1rem;
    }
    .card-header .card-heading {
        font-size: 1rem
    }
    .footer-copyright,
    .footer-policies a {
        font-size: 0.8rem;
    }
}

@media (max-width: 1000px) {
    .form-wrapper {
        width: 40%;
        padding: 2rem 1.5rem;
    }
    .steps-item.first {
        width: 30%;
    }
    .steps-item.second {
        width: 40%;
        margin-left: 2rem;
    }
    .benefits-section,
    .action-section,
    .reviews-section,
    .form-section {
        padding: 3rem 0;
    }
    .action-img-wrapper .btn {
        bottom: 23%;
    }
    .action-decor {
        max-width: 320px;
    }
}

@media (max-width: 780px) {
    .header {
        font-size: 0.9rem;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 33;
        border-bottom: 1px solid #dde2e4;
    }
    .main {
        padding-top: 30px;
    }
    .hero-section .container {
        flex-direction: column;
    }
    .video-wrapper {
        width: 100%;
        max-width: unset;
        margin-bottom: 2rem;
    }
    .main-heading {
        text-align: center;
    }
    .form-wrapper {
        width: 100%;
        margin: 0 auto;
    }
    .steps-section {
        flex-direction: column;
    }
    .steps-item.first,
    .steps-item.second {
        width: 80%;
        margin: 0 auto;
        max-width: unset;
    }
    .steps-item.first {
        margin-bottom: 1rem;
    }
    .cards-wrapper {
        flex-direction: column;
    }
    .benefits-card {
        width: 100%;
        padding: 2rem 1.5rem;
        margin: 0 auto 1rem auto;
    }
    .action-section .section-heading {
        margin-bottom: 2rem;
    }
    .action-decor {
        max-width: 280px;
    }
    .reviews-card {
        width: 100%;
        margin: 0 auto 1rem auto;
    }
    .card-header {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    .reviews-card .card-text {
        padding: 1.5rem 1.5rem 2rem 1.5rem;
        min-height: unset;
    }
    .form-section .form-wrapper {
        width: 90%;
    }
}

@media (max-width: 600px) {
    .header .logo {
        width: 7rem;
    }
    .main {
        padding-top: 40px;
    }
    .hero-section,
    .benefits-section {
        padding: 2rem 0;
    }
    .main-heading {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    .form-wrapper .input-wrap button,
    .btn {
        font-size: 1rem;
    }
    .step-number-img {
        margin-right: 1rem;
    }
    .steps-item-text {
        font-size: .9rem;
    }
    .section-heading {
        font-size: 1.3rem;
    }
    .benefits-card {
        text-align: center
    }
    .action-decor {
        max-width: 160px;
    }
    .btn {
        height: 3rem;
        padding: .5rem 2rem;
        height: auto;
        font-size: 0.9rem;
    }
}

@media only screen and (max-width: 480px) {
    .header {
        font-size: 0.8rem;
    }
    .footer {
        padding: 10px;
        font-size: 12px;
    }
    .footer-copyright {
        font-size: 11px;
        margin-top: 5px;
    }
    .footer-policies a {
        font-size: 12px;
        margin: 5px 0;
    }
}

/*==== FOOTER RISK DISCLAIMER =================*/


/*==== LANGUAGE SWITCHER =====================*/

.header {
    position: relative;
}

.language-switcher {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 1000;
    font-family: var(--font-secondary);
}

/* ── Trigger button ── */
.language-switcher-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1b2f3e;
    color: #fff;
    border: none;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    transition: background 0.2s;
    white-space: nowrap;
}

.language-switcher-btn:hover  { background: #243a4d; }
.language-switcher-btn:active { background: #162635; }

.language-switcher-btn .lang-arrow {
    font-size: 10px;
    margin-left: 2px;
    opacity: 0.8;
    transition: transform 0.2s;
}

.language-switcher-btn[aria-expanded="true"] .lang-arrow {
    transform: rotate(180deg);
}

/* ── Flag image (shared between button and dropdown) ── */
.lang-flag-img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Dropdown panel ── */
.language-switcher-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #4dc4a9;
    border-radius: 10px;
    width: 190px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
    padding: 6px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.language-switcher-dropdown.active {
    display: block;
    animation: lsSlideDown 0.22s ease-out;
}

@keyframes lsSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Dropdown items ── */
.language-switcher-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    transition: background 0.15s;
}

.language-switcher-dropdown a:hover {
    background: rgba(255,255,255,0.18);
}

.language-switcher-dropdown a.active {
    background: rgba(255,255,255,0.22);
    font-weight: 600;
}

.lang-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Scrollbar ── */
.language-switcher-dropdown::-webkit-scrollbar       { width: 5px; }
.language-switcher-dropdown::-webkit-scrollbar-track { background: rgba(0,0,0,0.08); }
.language-switcher-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.35); border-radius: 3px; }
.language-switcher-dropdown::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.55); }

/* ── Responsive ── */
@media (max-width: 780px) {
    .language-switcher { right: 0; }
    .language-switcher-btn { padding: 7px 12px 7px 9px; font-size: 12px; }
    .language-switcher-dropdown { width: 175px; max-height: 360px; }
}

@media (max-width: 480px) {
    .language-switcher { right: 0; }
    .language-switcher-btn { padding: 6px 10px 6px 8px; font-size: 11px; gap: 5px; }
    .language-switcher-btn .lang-btn-name { display: none; }
    .language-switcher-dropdown { width: 165px; right: 0; }
    .language-switcher-dropdown a { font-size: 12px; padding: 6px 10px; }
}

/* ── RTL (Arabic) overrides ── */
[dir="rtl"] .hero-section .container {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer .container {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-switcher {
    left: 1.5rem;
    right: auto;
}

[dir="rtl"] .language-switcher-dropdown {
    left: 0;
    right: auto;
}

[dir="rtl"] .steps-section {
    flex-direction: row-reverse;
}

[dir="rtl"] .cards-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .form-wrapper .form-heading,
[dir="rtl"] .form-wrapper p,
[dir="rtl"] .intgrtn-input {
    text-align: right;
}

[dir="rtl"] .footer-policies {
    flex-direction: row-reverse;
}
