* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Helvetica, Arial, sans-serif;
    color: rgb(10, 13, 49);
    background-color: white;
}

a {
    color: inherit;
}

.site-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    background-color: white;
}

.site-header::after {
    content: '';
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 12px;
    height: 1px;
    background-color: black;
}

.logo img {
    display: block;
    width: 150px;
    height: 90px;
}

.main-nav {
    position: absolute;
    left: 50%;
    display: flex;
    gap: 30px;
    transform: translateX(-50%);
}

.main-nav a {
    color: black;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.main-nav a:hover {
    color: rgb(40, 120, 247);
}

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 40px;
    border-radius: 4px;
    background-color: rgb(40, 120, 247);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.header-button:hover {
    background-color: rgb(36, 38, 39);
}

.page-label {
    max-width: 800px;
    margin: 0 auto;
    padding: 54px 24px 0;
    text-align: center;
}

.page-label span {
    display: inline-flex;
    padding: 7px 9px 6px;
    border-radius: 4px;
    background-color: rgb(245, 245, 245);
    color: rgb(95, 101, 103);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.contact-hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 28px 24px 10px;
    text-align: center;
}

.contact-hero h1 {
    margin: 0;
    color: rgb(10, 13, 49);
    font-size: 60px;
    font-weight: 600;
    line-height: 1;
}

.email-strip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 30px 0;
    padding: 0 24px;
}

.email-strip p,
.email-strip a {
    margin: 0;
    color: rgb(36, 38, 39);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.email-strip a:hover {
    color: rgb(40, 120, 247);
}

.consultation {
    text-align: center;
    padding: 4px 24px 28px;
}

.consultation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    height: 44px;
    padding: 0 18px;
    border-radius: 4px;
    background-color: rgb(1, 14, 208);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.consultation a:hover {
    background-color: rgb(36, 38, 39);
}

.contact-image {
    width: calc(100% - 60px);
    min-height: 36vh;
    margin: 0 auto 0;
    border-radius: 4px;
    background-image: url("../images/bh-contact1.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.form-section {
    padding: 70px 30px;
    background: linear-gradient(180deg, rgb(246, 247, 255) 0%, rgb(244, 244, 255) 100%);
}

.form-panel {
    position: relative;
    display: grid;
    grid-template-columns: 42% 58%;
    gap: 24px;
    width: 100%;
    padding: 56px 90px;
    overflow: hidden;
    border-radius: 40px;
    background-color: rgb(40, 120, 247);
}

.form-panel::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 0;
    width: 420px;
    height: 100%;
    background-image: url("../images/Shape-dots-arrow-right.svg");
    background-position: center left;
    background-repeat: no-repeat;
    background-size: auto 92%;
    opacity: 0.16;
    pointer-events: none;
}

.form-copy,
.contact-form {
    position: relative;
    z-index: 1;
}

.form-copy {
    padding-left: 18px;
}

.contact-form {
    max-width: 680px;
    justify-self: end;
    width: 100%;
}

.form-copy h2 {
    margin: 0;
    color: white;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
}

.form-copy h2:nth-child(2) {
    margin-bottom: 30px;
}

.form-copy a {
    display: inline-flex;
    color: white;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 3px solid rgba(255, 255, 255, 0.75);
    padding-bottom: 4px;
}

.form-copy a:hover {
    border-bottom-color: white;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form span {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 0;
    border-radius: 4px;
    background-color: white;
    color: rgb(36, 38, 39);
    font: inherit;
    outline: none;
}

.contact-form input {
    height: 48px;
    padding: 0 16px;
}

.contact-form textarea {
    min-height: 130px;
    padding: 14px 16px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(222, 224, 255, 0.8);
}

.contact-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background-color: rgb(222, 224, 255);
    color: rgb(1, 14, 208);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-form button:hover {
    background-color: white;
    color: rgb(36, 38, 39);
}

@media (max-width: 1024px) {
    .contact-hero h1 {
        font-size: 35px;
    }

    .contact-image {
        min-height: 30vh;
    }

    .form-panel {
        grid-template-columns: 45% 55%;
        padding: 38px 42px;
    }

    .form-panel::before {
        width: 330px;
        background-size: auto 88%;
    }

    .form-copy {
        padding-left: 0;
    }

    .form-copy h2 {
        font-size: 36px;
    }
}

@media (max-width: 767px) {
    .site-header {
        padding: 14px 20px;
        align-items: center;
    }

    .site-header::after {
        left: 20px;
        right: 20px;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.14);
    }

    .main-nav {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 0;
        transform: none;
    }

    .main-nav .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        position: relative;
        z-index: 1000;
    }

    .main-nav .hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 3px;
        background-color: rgb(20, 28, 58);
    }

    .main-nav > a {
        position: absolute;
        top: calc(100% + 12px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 999;
        font-size: 14px;
        white-space: nowrap;
    }

    .main-nav.open > a {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 42px;
        background-color: white;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-14px);
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        z-index: 998;
    }

    .main-nav.open::after {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav > a:nth-of-type(1) {
        left: calc(50% - 116px);
    }

    .main-nav > a:nth-of-type(2) {
        left: calc(50% - 48px);
    }

    .main-nav > a:nth-of-type(3) {
        left: calc(50% + 22px);
    }

    .main-nav > a:nth-of-type(4) {
        left: calc(50% + 78px);
    }

    .header-button {
        display: inline-flex;
        width: 96px;
        height: 36px;
        font-size: 12px;
        border-radius: 8px;
    }

    .logo img {
        width: 108px;
        height: auto;
    }

    .page-label {
        padding-top: 44px;
    }

    .contact-hero {
        padding-top: 22px;
    }

    .contact-hero h1 {
        font-size: 30px;
    }

    .email-strip {
        flex-direction: column;
        gap: 6px;
        margin: 24px auto;
    }

    .email-strip p,
    .email-strip a {
        font-size: 16px;
    }

    .contact-image {
        width: calc(100% - 40px);
        min-height: 25vh;
    }

    .form-section {
        padding: 40px 20px;
    }

    .form-panel {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 30px 20px;
        border-radius: 24px;
    }

    .form-panel::before {
        left: 18px;
        top: 24px;
        width: 170px;
        height: 110px;
        background-size: contain;
    }

    .form-copy h2 {
        font-size: 32px;
    }

    .form-copy a {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
