* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
    transition: background-color 0.4s ease;
}

body {
    display: flex;
    flex-direction: column;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10%;
    z-index: 100;
    display: inline-flex;
    justify-content: space-between;
    transition: top 0.3s ease;
    background-color: transparent;
    gap: 20px;
    border: none;
}

.logo {
    margin-left: 20px;
    font-size: 24px;
    color: #333;
    height: 100px;
    width: 230px;
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-direction: row;
    height: 55px;
    max-width: 1000px;
    width: 100%;
}

.nav-link {
    background-image: url('image/HEADER BOX .png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 10px;
    height: 65px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 5px;
    margin-left: -8px;
    position: relative;
    box-sizing: border-box;
}

.nav-link:nth-child(1) { z-index: 4; }
.nav-link:nth-child(2) { z-index: 3; }
.nav-link:nth-child(4) { z-index: 1; }

.message-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 230px;
    height: 110px;
    margin-right: 20px;
}

.message-btn img {
    width: 175px;
    height: auto;
}

.selected {
    position: relative;
    height: 75px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    z-index: 2;
}


.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    margin-right: 20px;
    justify-content: center;
    align-items: center;
}

.hamburger div {
    width: 30px;
    height: 3px;
    transition: all 0.3s ease;
    background-color: #333;
    border-radius: 2px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: transparent;
    z-index: 200;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    overflow-y: auto;
    gap: 8px;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu .close-btn {
    align-self: flex-end;
    cursor: pointer;
    font-size: 35px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.mobile-menu-link,
.mobile-dropdown button.mobile-menu-link {
    padding: 15px 0;
    text-decoration: none;
    font-weight: 500;
    background-color: #3C5A81;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.mobile-menu-link img {
    max-width: 100px;
    height: auto;
}

.mobile-dropdown {
    margin-top: 10px;
}

.mobile-message-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
}

.mobile-dropdown-content {
    display: none;
    flex-direction: column;
    margin-left: 10px;
    z-index: 101;
    background-color: rgba(241, 248, 255, 0.9);
    border-radius: 5px;
    padding-top: 5px;
    font-family: 'Lato', sans-serif;
}

.mobile-dropdown-content a {
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
}

.mobile-dropdown-content.open {
    display: flex;
}

@media (max-width: 992px) {
    .nav-link,
    .selected,
    .message-btn {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .header {
        height: 10%;
        justify-content: space-between;
        
    }
    .header .logo {
        height: auto;
        width: 50%;
    }
    .snap-container{
        scroll-snap-type: none;
        margin-top: 5%;
    }
    .snap-container .section {
        scroll-snap-align: none;
        display: none;
        flex-direction: column;
        flex-wrap: wrap;
        margin-top: 8% !important;
        height: 100%;
    }
    .section .active{
        display: block;
    }
    .form-title{
        font-size: 1.5rem;
        width:40%;
        margin-bottom:-10%;
    }
    p{
        font-size:0.9rem;
    }
}

.snap-container {
    flex: 1;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    margin: 0;
    transition: height 0.3s ease, margin-top 0.3s ease;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.snap-container::-webkit-scrollbar {
    display: none;
}

.header-visible .snap-container {
    height: calc(100vh - 10%);
    margin-top: 10%;
}

.section {
    scroll-snap-align: start;
    height: 100%;
    width: 100%;
    display: none;
    transition: height 0.5s ease;
}

.section.active {
    display: block;
}

.form {
    width: 95%;
    height: 90%;
    gap: 1%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.form .details {
    width: 90%;
    height: 60%;
    position: relative;
    display: flex;
    gap: 5%;
    flex-direction: column;
    align-items: center;
    background-image: url('career-image/LOW OPACITY LOGO (BG APPLICATION FORMS).png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    margin-top: 2%;
}

.top-input {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 1%;
    width: 75%;
    height: 10%;
}

.top-input .input-pair-top {
    width: 50%;
    height: 100%;
    position: relative;
    display: flex;
    gap: 5%;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-wrap: nowrap;
    font-size: 1.5rem;
}

.input {
    width: 100%;
    height: 60%;
    position: relative;
    border-top: medium solid #336699;
    border-bottom: medium solid #336699;
    border-right: medium solid #336699;
    border-left: medium solid #336699;
    border-radius: 5px;
    bottom: 0;
    font-size: medium;
}

.input-pair {
    width: 100%;
    height: 22%;
    gap: 5%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    font-size: 1.5rem;
}

.input-pair .input {
    width: 100%;
    height: 50%;
    border-top: medium solid #336699;
    border-bottom: medium solid #336699;
    border-right: medium solid #336699;
    border-left: medium solid #336699;
    border-radius: 5px;
    position: relative;
    font-size: medium;
}

.button-pair {
    width: 100%;
    height: 13%;
    gap: 1%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    font-size:1.5rem;
}

.button-pair img {
    width: 100%;
    height: 100%;
}

.submit {
    right: -30%;
    width: 20%;
    height: auto;
    position: relative;
}

.submit img {
    width: 100%;
    height: 100%;
}

.form-title {
    font-size: 1.5rem;
    height: auto;
    width: auto;
    left: -20%;
    color: #336699;
    font-weight: bold;
    display: flex;
    position: relative;
}

.thank-you {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.thank-you .message {
    width: 80%;
    height: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.message .thank-you-message {
    width: auto;
    height: 20%;
    display: flex;
    position: relative;
}

.message .review-message {
    width: auto;
    height: 8%;
    display: flex;
    position: relative;
}

.message .logo-message {
    width: auto;
    height: 45%;
    display: flex;
    position: relative;
}

.thank-you .back-button {
    width: auto;
    height: 11%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    bottom: 10%;
    left: 33%;
}

.back-button img {
    width: auto;
    height: 100%;
}

.bg-form {
    width: auto;
    height: 76%;
    left: -14%;
    top: 7%;
    display: flex;
    position: relative;
}

.bottom-input {
    width: 75%;
    height: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7%;
    justify-content: flex-start;
}
