* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

html,
body {
    overflow-x: hidden;
}

.form-header,
h2 {
    font-family: "Tajawal", sans-serif;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.header {
    background-image: url("https://img-ap-hongkong.mykeeta.net/sailorfebpcassets/join_pc_bg_sa");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    max-width: 100%;
    height: auto;
}

.nav {
    padding: 15px;
    display: flex;
}

.nav img {
    display: block;
    width: 145px;
    margin-left: auto;
}

.form-holder {
    margin-top: 50px;
}

.form-holder .form {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 60px;
    height: auto;
    width: 50%;
    position: relative;
    padding: 80px 30px 30px;
}

@media (max-width: 1200px) {
    .form-holder .form {
        margin: auto;
    }
}

@media (max-width: 768px) {
    .form-holder .form {
        width: 100%;
    }
}

.form-holder .form .form-header {
    background-image: url("https://img-ap-hongkong.mykeeta.net/sailorfebpcassets/joinin_home_tail_3");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 106px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    position: absolute;
    top: -53px;
    left: 50%;
    transform: translateX(-50%);
    width: 358px;
}

.custom-select-wrapper {
    width: 100%;
    font-family: Arial, sans-serif;
}

.custom-select {
    width: 100%;
    position: relative;
    border: 1px solid #ccc;
    border-radius: 30px;
    background: #fff;
}

.selected-option {
    list-style: none;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 8px;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.selected-option span {
    color: gray;
    font-size: 14px;
}

.custom-select[open] .selected-option {
    border-bottom: 1px solid #eee;
    border-radius: 8px 8px 0 0;
}

/* Dropdown box width (smaller than summary) */
.options-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 80%;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding-inline: 20px;
    text-align: right;
    height: 200px;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.options-box::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.option {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.option:hover {
    background: #f1f1f1;
}

summary::-webkit-details-marker {
    display: none;
}

.input {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px 20px;
    margin-block: 20px;
    border-radius: 30px;
    text-align: right;
}

.button {
    border: none;
    outline: none;
    padding: 0 24px;
    width: 100%;
    background-color: #ffea00;
    font-size: 20px;
    border-radius: 40px;
    line-height: 54px;
    font-weight: 500;
}

.privacy {
    color: #fff;
    font-size: 14px;
    font-weight: 200;
    text-align: center;
    display: block;
    margin-block: 20px;
}

.info-card {
    display: flex;
    align-items: center;
    width: 100%;
    height: 360px;
    margin-block: 50px;
}

.info-card .image-holder {
    width: 50%;
    height: 100%;
    border-top-left-radius: 60px;
    border-bottom-left-radius: 60px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.info-card .info {
    width: 50%;
    padding-inline: 40px;
    text-align: right;
    background-color: #f7f7f7;
    height: 100%;
    border-top-right-radius: 60px;
    border-bottom-right-radius: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.info-card .info p {
    font-size: 18px;
    color: #595959;
    line-height: 28px;
    font-weight: 400;
}

.middle {
    direction: rtl;
}

.middle .image-holder {
    border-radius: 0 60px 60px 0;
}

.middle .info {
    border-radius: 60px 0 0 60px;
}

@media (max-width: 768px) {
    .info-card {
        flex-direction: column;
        height: auto;
    }

    .info-card .image-holder {
        width: 100%;
        /* height: auto; */
        border-radius: 60px 60px 0 0;
        min-height: 300px;
    }

    .info-card .info {
        width: 100%;
        border-radius: 0 0 60px 60px;
        padding-block: 20px;
    }
}

.info-card .info h2 {
    font-size: 36px;
}

footer {
    background-color: #f5f5f5;
    padding: 20px 40px;
    font-size: 14px;
    color: #333;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

@media (max-width: 768px) {
    footer {
        flex-direction: column-reverse;
    }
}

footer .icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {
    footer .icons {
        margin-top: 20px;
    }
}

footer .icons .icon {
    font-size: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eaeaea;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

footer .links-holder {
    flex: 1;
}

footer .links {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    footer .links {
        flex-direction: column-reverse;
        gap: 20px;
    }
}

footer .links a {
    color: #333;
    text-decoration: none;
    margin: 0 8px;
}

footer .company {
    display: flex;
    flex-direction: column;
    color: #666;
}

@media (max-width: 768px) {
    footer .company {
        text-align: center;
    }
}


/* Language Switcher in Joins Page */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    min-height: 80px;
}

.nav img {
    width: 200px !important;
    height: auto;
}

.language-switcher-joins {
    margin-left: auto;
}

.language-switcher-joins .btn-language {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
}

.language-switcher-joins .btn-language i {
    font-size: 18px;
}

.language-switcher-joins .btn-language span {
    font-size: 16px;
}

.language-switcher-joins .btn-language.active {
    background-color: #ffea00;
    border-color: #ffea00;
    color: #000;
}

.language-switcher-joins .btn-language:hover {
    background-color: rgba(255, 234, 0, 0.9);
    border-color: #ffea00;
    color: #000;
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav img {
        width: 150px !important;
    }

    .language-switcher-joins {
        margin-left: 0;
    }

    .language-switcher-joins .btn-language {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* RTL Support for Joins Page */
[dir="rtl"] .info-card .info {
    text-align: right;
}

[dir="rtl"] .form-header {
    direction: rtl;
}

[dir="rtl"] .wrapper-radio {
    direction: rtl;
}

[dir="rtl"] .radio-title {
    text-align: right;
}

[dir="ltr"] .info-card .info {
    text-align: left;
}

[dir="ltr"] .form-header {
    direction: ltr;
}

[dir="ltr"] .wrapper-radio {
    direction: ltr;
}

[dir="ltr"] .radio-title {
    text-align: left;
}

/* Info Card Base Styles - Fixed */
.info-card {
    display: flex;
    align-items: center;
    width: 100%;
    margin-block: 50px;
}

.info-card .image-holder {
    width: 50%;
    height: 360px;
}

.info-card .info {
    width: 50%;
    padding: 40px;
    height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    overflow: hidden;
    word-wrap: break-word;
}

.info-card .info h2 {
    font-size: 28px;
    line-height: 1.4;
    margin: 0;
}

.info-card .info p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

/* LTR Support */
html[dir="ltr"] .info-card {
    flex-direction: row;
}

html[dir="ltr"] .info-card .image-holder {
    border-radius: 60px 0 0 60px;
}

html[dir="ltr"] .info-card .info {
    border-radius: 0 60px 60px 0;
    text-align: left;
}

html[dir="ltr"] .info-card.middle {
    flex-direction: row-reverse;
}

html[dir="ltr"] .info-card.middle .image-holder {
    border-radius: 0 60px 60px 0;
}

html[dir="ltr"] .info-card.middle .info {
    border-radius: 60px 0 0 60px;
}

/* RTL Support - Fixed Border Radius */
html[dir="rtl"] .info-card {
    flex-direction: row;
}

html[dir="rtl"] .info-card .image-holder {
    border-radius: 60px 0 0 60px;
    order: 2;
}

html[dir="rtl"] .info-card .info {
    border-radius: 0 60px 60px 0;
    text-align: right;
    order: 1;
}

html[dir="rtl"] .info-card.middle {
    flex-direction: row;
}

html[dir="rtl"] .info-card.middle .image-holder {
    border-radius: 0 60px 60px 0;
    order: 1;
}

html[dir="rtl"] .info-card.middle .info {
    border-radius: 60px 0 0 60px;
    order: 2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .info-card {
        flex-direction: column !important;
        height: auto;
    }

    .info-card .image-holder {
        width: 100%;
        border-radius: 60px 60px 0 0 !important;
        min-height: 300px;
    }

    .info-card .info {
        width: 100%;
        border-radius: 0 0 60px 60px !important;
        padding: 30px 20px;
        height: auto;
    }

    .info-card .info h2 {
        font-size: 24px;
    }

    .info-card .info p {
        font-size: 14px;
    }
}

/* Form Direction */
html[dir="ltr"] .form {
    direction: ltr;
}

html[dir="ltr"] .form-header {
    direction: ltr;
    text-align: center;
}

html[dir="ltr"] .form-content {
    direction: ltr;
}

html[dir="ltr"] .entryarea input {
    text-align: left;
}

html[dir="ltr"] .custom-select-rtl {
    text-align: left;
    direction: ltr;
}

html[dir="ltr"] .wrapper-radio {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .radio-title {
    text-align: left;
}

html[dir="ltr"] .option {
    flex-direction: row;
}

/* RTL Form */
html[dir="rtl"] .form {
    direction: rtl;
}

html[dir="rtl"] .form-header {
    direction: rtl;
    text-align: center;
}

html[dir="rtl"] .form-content {
    direction: rtl;
}

html[dir="rtl"] .entryarea input {
    text-align: right;
}

html[dir="rtl"] .custom-select-rtl {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .wrapper-radio {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .radio-title {
    text-align: right;
}

/* F
orce Logo Size */
.header .nav a img {
    width: 220px !important;
    height: auto !important;
    max-width: none !important;
}

/* Force Language Switcher Size */
.header .language-switcher-joins .btn-group {
    transform: scale(1.2);
    transform-origin: right center;
}

.header .language-switcher-joins .btn-language {
    min-width: 80px !important;
    padding: 12px 24px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
}

.header .language-switcher-joins .btn-language i {
    font-size: 20px !important;
}

.header .language-switcher-joins .btn-language span {
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* RTL Language Switcher */
html[dir="rtl"] .header .language-switcher-joins .btn-group {
    transform-origin: left center;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .header .nav a img {
        width: 160px !important;
    }

    .header .language-switcher-joins .btn-group {
        transform: scale(1);
    }

    .header .language-switcher-joins .btn-language {
        min-width: 60px !important;
        padding: 10px 18px !important;
        font-size: 16px !important;
    }
}

/*
 Joins Page - Logo and Language Switcher Fixes */

/* Keep Logo Large */
.header .nav a img {
    width: 220px !important;
    height: auto !important;
    max-width: none !important;
}

/* Language Switcher - Smaller Size */
.header .language-switcher-joins .btn-language {
    min-width: 70px !important;
    padding: 8px 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.header .language-switcher-joins .btn-language i {
    font-size: 16px !important;
}

.header .language-switcher-joins .btn-language span {
    font-size: 15px !important;
    font-weight: 600 !important;
}

/* Fix spacing between logo and language switcher */
.header .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* RTL: Fix spacing */
html[dir="rtl"] .header .language-switcher-joins {
    margin-left: 0;
    margin-right: auto;
}

html[dir="ltr"] .header .language-switcher-joins {
    margin-right: 0;
    margin-left: auto;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .header .nav a img {
        width: 160px !important;
    }

    .header .language-switcher-joins .btn-language {
        min-width: 60px !important;
        padding: 6px 12px !important;
        font-size: 14px !important;
    }

    .header .nav {
        gap: 15px;
    }
}


/* Enhanced Responsive for Joins Page */

/* Tablets */
@media (max-width: 991px) {
    .form-holder .form {
        width: 70%;
    }

    .info-card {
        height: auto;
    }

    .info-card .image-holder {
        height: 300px;
    }

    .info-card .info {
        height: auto;
        padding: 30px;
    }

    .info-card .info h2 {
        font-size: 24px;
    }

    .info-card .info p {
        font-size: 15px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .header {
        min-height: auto;
    }

    .nav {
        padding: 15px 20px;
    }

    .form-holder {
        margin-top: 30px;
    }

    .form-holder .form {
        width: 100%;
        padding: 60px 20px 20px;
        border-radius: 40px;
    }

    .form-holder .form .form-header {
        width: 280px;
        height: 90px;
        font-size: 28px;
        top: -45px;
    }

    .info-card {
        flex-direction: column !important;
        height: auto;
        margin-block: 30px;
    }

    .info-card .image-holder {
        width: 100% !important;
        height: 280px !important;
        border-radius: 60px 60px 0 0 !important;
        order: 1 !important;
    }

    .info-card .info {
        width: 100% !important;
        height: auto !important;
        border-radius: 0 0 60px 60px !important;
        padding: 25px 20px !important;
        order: 2 !important;
    }

    .info-card .info h2 {
        font-size: 22px;
    }

    .info-card .info p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Override RTL/LTR on mobile */
    html[dir="rtl"] .info-card .image-holder,
    html[dir="rtl"] .info-card.middle .image-holder,
    html[dir="ltr"] .info-card .image-holder,
    html[dir="ltr"] .info-card.middle .image-holder {
        border-radius: 60px 60px 0 0 !important;
        order: 1 !important;
    }

    html[dir="rtl"] .info-card .info,
    html[dir="rtl"] .info-card.middle .info,
    html[dir="ltr"] .info-card .info,
    html[dir="ltr"] .info-card.middle .info {
        border-radius: 0 0 60px 60px !important;
        order: 2 !important;
    }

    footer {
        padding: 20px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .nav {
        padding: 10px 15px;
    }

    .nav img {
        width: 140px !important;
    }

    .form-holder .form {
        padding: 50px 15px 15px;
        border-radius: 30px;
    }

    .form-holder .form .form-header {
        width: 240px;
        height: 80px;
        font-size: 24px;
        top: -40px;
    }

    .input,
    .custom-select-rtl {
        padding: 8px 15px;
        font-size: 14px;
    }

    .button {
        font-size: 18px;
        line-height: 48px;
    }

    .info-card {
        margin-block: 20px;
    }

    .info-card .image-holder {
        height: 220px !important;
    }

    .info-card .info {
        padding: 20px 15px !important;
    }

    .info-card .info h2 {
        font-size: 18px;
    }

    .info-card .info p {
        font-size: 13px;
    }

    footer {
        padding: 15px;
        font-size: 11px;
    }

    footer .icons .icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* LTR Footer Support */
html[dir="ltr"] footer {
    text-align: left;
    direction: ltr;
}

html[dir="ltr"] footer .links {
    justify-content: flex-start;
}

html[dir="ltr"] footer .company {
    align-items: flex-start;
}