/* =========================================================
   GENESIS HOSTELS
   BOOKING PAGE
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        "Inter",
        Arial,
        Helvetica,
        sans-serif;

    background: #f5f7fa;
    color: #172033;

    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-nav {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 78px;

    z-index: 1000;

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;
}

.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.96);

    backdrop-filter: blur(14px);

    box-shadow:
        0 8px 30px rgba(15, 35, 60, 0.08);
}

.nav-content {
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   BRAND
========================================================= */

.brand-link {
    display: flex;

    align-items: center;

    gap: 12px;

    color: white;
}

.main-nav.scrolled .brand-link {
    color: #13213a;
}

.brand-logo {
    width: 44px;
    height: 44px;

    border-radius: 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: white;

    color: #0b3d68;

    font-size: 22px;

    font-weight: 800;

    box-shadow:
        0 7px 22px rgba(0, 0, 0, 0.15);
}

.brand-name {
    display: flex;

    flex-direction: column;

    line-height: 1;
}

.brand-name strong {
    font-size: 16px;

    letter-spacing: 2px;
}

.brand-name span {
    margin-top: 4px;

    font-size: 9px;

    letter-spacing: 3px;

    opacity: 0.65;
}


/* =========================================================
   NAV LINKS
========================================================= */

.nav-links {
    display: flex;

    align-items: center;

    gap: 34px;
}

.nav-link {
    position: relative;

    color:
        rgba(255, 255, 255, 0.82);

    font-size: 13px;

    font-weight: 600;

    transition:
        color 0.2s ease;
}

.main-nav.scrolled .nav-link {
    color: #5e697a;
}

.nav-link:hover,
.main-nav.scrolled .nav-link:hover {
    color: #0b5d91;
}

.nav-book {
    padding: 11px 19px;

    border-radius: 9px;

    background: white;

    color: #0a3c66;

    font-size: 12px;

    font-weight: 750;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.13);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.nav-book:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.18);
}

.main-nav.scrolled .nav-book {
    background:
        linear-gradient(
            135deg,
            #0b4f82,
            #1769aa
        );

    color: white;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.menu-toggle {
    display: none;

    width: 43px;
    height: 43px;

    border: none;

    border-radius: 10px;

    background: white;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.12);
}

.menu-toggle span {
    width: 19px;
    height: 2px;

    background: #15304c;

    border-radius: 5px;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   HERO
========================================================= */

.booking-hero {
    min-height: 530px;

    position: relative;

    display: flex;

    align-items: center;

    overflow: hidden;

    color: white;

    background:
        linear-gradient(
            135deg,
            #071d35,
            #0c3c64
        );
}

.booking-hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -180px;
    top: -200px;

    border-radius: 50%;

    background:
        rgba(124, 201, 255, 0.08);
}

.booking-hero::after {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    left: -220px;
    bottom: -240px;

    border-radius: 50%;

    background:
        rgba(23, 105, 170, 0.15);
}

.booking-hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 24, 45, 0.25),
            rgba(6, 34, 61, 0.08)
        );
}

.booking-hero-container {
    position: relative;

    z-index: 3;

    padding-top: 110px;
    padding-bottom: 80px;
}

.booking-hero-content {
    max-width: 760px;
}

.hero-label {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 23px;

    color:
        rgba(255, 255, 255, 0.82);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2.5px;
}

.hero-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #7cc9ff;

    box-shadow:
        0 0 0 5px
        rgba(124, 201, 255, 0.13);
}

.booking-hero h1 {
    font-size:
        clamp(45px, 6vw, 72px);

    line-height: 1.03;

    letter-spacing: -3px;

    font-weight: 800;

    margin-bottom: 25px;
}

.booking-hero h1 span {
    display: block;

    color: #b8dcf4;
}

.booking-hero p {
    max-width: 610px;

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 15px;

    line-height: 1.85;
}


/* =========================================================
   BOOKING SECTION
========================================================= */

.booking-section {
    padding: 90px 0 110px;

    background: #f5f7fa;
}

.booking-heading {
    max-width: 700px;

    margin-bottom: 42px;
}

.section-label {
    display: inline-block;

    color: #1769aa;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2.2px;

    margin-bottom: 13px;
}

.booking-heading h2 {
    color: #14213d;

    font-size:
        clamp(36px, 5vw, 54px);

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 14px;
}

.booking-heading p {
    color: #737d8d;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   ALERTS
========================================================= */

.alert {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    padding: 18px 20px;

    margin-bottom: 25px;

    border-radius: 12px;

    background: white;

    box-shadow:
        0 10px 30px rgba(21, 43, 66, 0.07);
}

.alert-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: 800;
}

.alert strong {
    display: block;

    margin-bottom: 4px;

    font-size: 13px;
}

.alert p {
    color: #697386;

    font-size: 12px;

    line-height: 1.6;
}

.alert-success {
    border-left: 4px solid #1769aa;
}

.alert-success .alert-icon {
    background: #e7f3fb;

    color: #1769aa;
}

.alert-error {
    border-left: 4px solid #9b4050;
}

.alert-error .alert-icon {
    background: #faeaed;

    color: #9b4050;
}


/* =========================================================
   FORM
========================================================= */

.booking-form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.form-card {
    padding: 34px;

    background: white;

    border-radius: 17px;

    border:
        1px solid
        rgba(20, 48, 76, 0.06);

    box-shadow:
        0 12px 35px
        rgba(21, 43, 66, 0.06);
}

.form-card-header {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 30px;
}

.form-number {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    border-radius: 11px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #eaf3f9;

    color: #1769aa;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;
}

.form-card-header span {
    display: block;

    color: #1769aa;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.8px;

    margin-bottom: 4px;
}

.form-card-header h3 {
    color: #14213d;

    font-size: 19px;

    font-weight: 750;
}


/* =========================================================
   FORM GRID
========================================================= */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 24px 22px;
}

.form-group {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.form-group label {
    color: #29364b;

    font-size: 12px;

    font-weight: 700;
}

.form-group label span {
    color: #1769aa;

    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    border:
        1px solid
        #dce3ea;

    border-radius: 9px;

    background: #fbfcfd;

    color: #172033;

    outline: none;

    font-size: 13px;

    transition:
        border 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input,
.form-group select {
    height: 49px;

    padding: 0 14px;
}

.form-group textarea {
    min-height: 145px;

    resize: vertical;

    padding: 14px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0a8b5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1769aa;

    background: white;

    box-shadow:
        0 0 0 4px
        rgba(23, 105, 170, 0.09);
}

.form-group select {
    cursor: pointer;
}


/* =========================================================
   SUBMIT AREA
========================================================= */

.form-submit {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding: 25px 28px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #071d35,
            #0c3c64
        );

    box-shadow:
        0 15px 40px
        rgba(8, 36, 61, 0.15);
}

.submit-note {
    display: flex;

    align-items: center;

    gap: 12px;

    color: white;
}

.secure-icon {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(255, 255, 255, 0.12);

    color: #9fd5f3;

    font-weight: 800;
}

.submit-note strong {
    display: block;

    font-size: 12px;

    margin-bottom: 3px;
}

.submit-note span:last-child {
    display: block;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 10px;

    line-height: 1.5;
}

.submit-button {
    min-height: 50px;

    padding: 0 22px;

    border: none;

    border-radius: 9px;

    background: white;

    color: #0a3d65;

    font-size: 12px;

    font-weight: 750;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 11px;

    white-space: nowrap;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.submit-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.2);
}

.submit-button span {
    font-size: 17px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    padding: 55px 0 25px;

    background: #06182b;

    color: white;
}

.footer-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom: 35px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.09);
}

.footer-links {
    display: flex;

    align-items: center;

    gap: 25px;
}

.footer-links a {
    color:
        rgba(255, 255, 255, 0.57);

    font-size: 11px;

    font-weight: 600;

    transition:
        color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 22px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color:
        rgba(255, 255, 255, 0.38);

    font-size: 10px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .nav-links {
        gap: 20px;
    }

    .form-submit {
        align-items: flex-start;

        flex-direction: column;
    }

    .submit-button {
        width: 100%;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .container {
        width:
            min(
                100% - 34px,
                600px
            );
    }


    /* NAV */

    .main-nav {
        height: 70px;
    }

    .nav-links {
        position: absolute;

        top: 70px;

        left: 17px;
        right: 17px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 10px;

        background: white;

        border-radius: 13px;

        box-shadow:
            0 20px 50px
            rgba(0, 0, 0, 0.15);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        color: #4d596a !important;

        padding: 14px 13px;

        border-radius: 8px;
    }

    .nav-link:hover {
        background: #f1f6fa;

        color: #0d5b8c !important;
    }

    .nav-book {
        margin-top: 5px;

        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }


    /* HERO */

    .booking-hero {
        min-height: 600px;
    }

    .booking-hero-container {
        padding-top: 110px;

        padding-bottom: 90px;
    }

    .booking-hero h1 {
        font-size: 46px;

        letter-spacing: -2.5px;
    }

    .booking-hero p {
        font-size: 14px;
    }


    /* BOOKING */

    .booking-section {
        padding:
            70px 0 80px;
    }

    .booking-heading h2 {
        font-size: 40px;
    }


    /* FORM */

    .form-card {
        padding: 25px 20px;

        border-radius: 14px;
    }

    .form-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .form-card-header {
        margin-bottom: 25px;
    }

    .form-card-header h3 {
        font-size: 17px;
    }

    .form-submit {
        padding: 22px 20px;
    }

    .submit-note {
        align-items: flex-start;
    }


    /* FOOTER */

    .footer-top {
        flex-direction: column;

        align-items: flex-start;

        gap: 28px;
    }

    .footer-links {
        flex-wrap: wrap;

        gap: 15px 20px;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 8px;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 400px) {

    .booking-hero h1 {
        font-size: 40px;
    }

    .booking-heading h2 {
        font-size: 36px;
    }

    .form-card {
        padding: 22px 17px;
    }

    .form-card-header {
        align-items: flex-start;
    }

}