:root {
    --text: #1d1d1f;
    --secondary: #6e6e73;
    --background: #f5f5f7;
    --surface: rgba(255, 255, 255, 0.88);
    --border: #d2d2d7;
    --blue: #0071e3;
    --blue-hover: #0077ed;
    --error: #b42318;
    --error-border: #d92d20;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-width: 320px;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background: var(--background);
    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Helvetica Neue",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


/* =========================
   Header
   ========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;

    width: 100%;
    height: 96px;

    padding: 0 max(28px, 5.5vw);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    border-bottom: 1px solid #e7e7ea;

    background: rgba(255, 255, 255, 0.9);

    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}


/* =========================
   Logo
   ========================= */

.site-header a.logo,
.site-header a.logo:link,
.site-header a.logo:visited,
.site-header a.logo:hover,
.site-header a.logo:active {
    display: flex;
    align-items: center;
    gap: 13px;

    flex-shrink: 0;

    color: var(--text);
    text-decoration: none;
}

.site-header a.logo > span {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 13px;

    background: var(--text);
    color: #ffffff;

    font-size: 25px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;

    text-decoration: none;
}

.site-header a.logo strong {
    color: var(--text);

    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;

    white-space: nowrap;
    text-decoration: none;
}


/* =========================
   Navigation
   ========================= */

.site-header nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-header nav a {
    position: relative;

    padding: 7px 0;

    color: var(--secondary);

    font-size: 15px;
    text-decoration: none;

    transition: color 180ms ease;
}

.site-header nav a:hover {
    color: var(--text);
}

.site-header nav a.active {
    color: var(--text);
    font-weight: 600;
}

.site-header nav a.active::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 2px;

    border-radius: 2px;

    background: var(--text);
}

/* Dropdown menu — kept in sync with the landing page header. */

.menu {
    position: relative;
}

.menu-button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #e2e2e5;
    border-radius: 999px;
    background: white;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

.menu-button:hover {
    background: #f5f5f7;
    transform: none;
}

.menu-icon {
    font-size: 18px;
    line-height: 1;
}

.site-header .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    padding: 8px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: white;
    border: 1px solid #e2e2e5;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

.site-header .dropdown-menu.open {
    display: flex;
}

.dropdown-menu a {
    position: static;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--secondary);
    text-decoration: none;
    font-size: 15px;
}

.dropdown-menu a:hover {
    background: #f5f5f7;
    color: var(--text);
}

.dropdown-menu a.active {
    color: var(--text);
    font-weight: 600;
}

.dropdown-menu a.active::after {
    display: none;
}


/* =========================
   Main
   ========================= */

main {
    width: 100%;
    flex: 1;
}

.contact-section {
    width: min(100%, 1040px);

    margin: 0 auto;

    padding:
        clamp(60px, 8vw, 96px)
        clamp(20px, 6vw, 70px)
        88px;
}


/* =========================
   Contact Heading
   ========================= */

.contact-section h1 {
    margin: 0 0 14px;

    text-align: center;

    font-size: clamp(40px, 6vw, 64px);
    font-weight: 650;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.intro {
    margin: 0 auto 42px;

    color: var(--secondary);

    text-align: center;

    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.45;
    letter-spacing: -0.015em;
}

hr {
    display: none;
}


/* =========================
   Form
   ========================= */

form {
    width: min(82%, 720px);

    margin: 0 auto;

    padding: clamp(28px, 5vw, 48px);

    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 24px;

    background: var(--surface);

    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.form-row {
    width: 100%;

    margin-bottom: 20px;

    display: grid;
    grid-template-columns: 105px 1fr;
    align-items: start;
    gap: 20px;
}

.form-row label {
    padding-top: 14px;

    font-size: 16px;
    font-weight: 600;
}

.form-row label span {
    color: var(--blue);
}

.field-control {
    min-width: 0;
}

.form-row input,
.form-row textarea {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.92);
    color: var(--text);

    font: inherit;
    font-size: 15px;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.form-row input {
    height: 48px;
}

.form-row textarea {
    min-height: 128px;

    line-height: 1.45;

    resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #86868b;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--blue);

    outline: none;

    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.13);
}


/* =========================
   Validation Errors
   ========================= */

.field-error {
    margin: 7px 0 0;

    color: var(--error);

    font-size: 13px;
    line-height: 1.35;
}

.has-error input,
.has-error textarea {
    border-color: var(--error-border);
}

.has-error input:focus,
.has-error textarea:focus {
    border-color: var(--error-border);

    box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.12);
}


/* =========================
   CAPTCHA
   ========================= */

.captcha-container {
    margin: 4px 0 26px 125px;
}

.g-recaptcha {
    min-height: 78px;
}

.captcha-config-error {
    max-width: 360px;

    margin: 0;
    padding: 12px;

    border: 1px solid #f0b4ad;
    border-radius: 10px;

    background: #fff4f2;
    color: #912018;

    font-size: 13px;
    line-height: 1.4;
}


/* Visual CAPTCHA fallback */

.captcha-placeholder {
    width: 290px;
    min-height: 70px;

    margin: 4px 0 26px 125px;
    padding: 10px 12px;

    display: flex;
    align-items: center;
    gap: 10px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #f9f9fb;
}

.captcha-placeholder input {
    width: 24px;
    height: 24px;

    margin: 0;

    flex-shrink: 0;

    accent-color: var(--blue);
}

.captcha-placeholder > label {
    font-size: 13px;
    font-weight: 400;

    cursor: pointer;
}

.captcha-brand {
    margin-left: auto;

    display: flex;
    flex-direction: column;
    align-items: center;

    color: var(--secondary);

    font-size: 8px;
}

.captcha-brand img {
    width: 38px;
    height: 38px;

    object-fit: contain;
}

.captcha-brand span {
    margin-top: 1px;
}


/* =========================
   Submit Button
   ========================= */

button {
    display: block;

    min-width: 148px;
    min-height: 48px;

    margin: 0 auto;
    padding: 11px 24px;

    border: none;
    border-radius: 999px;

    background: var(--blue);
    color: #ffffff;

    font: inherit;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 180ms ease,
        transform 180ms ease,
        opacity 180ms ease;
}

button:hover {
    background: var(--blue-hover);

    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(0, 113, 227, 0.28);
    outline-offset: 3px;
}


/* =========================
   Flash Messages
   ========================= */

.message {
    width: min(92%, 720px);

    margin: 20px auto 0;
    padding: 14px 18px;

    border-radius: 12px;

    font-size: 14px;
    line-height: 1.4;
}

.message.success {
    border: 1px solid #8fd3a8;

    background: #ecfdf3;
    color: #166534;
}

.message.error {
    border: 1px solid #f0b4ad;

    background: #fff4f2;
    color: #912018;
}

.message.info {
    border: 1px solid #84caff;

    background: #eff8ff;
    color: #175cd3;
}


/* =========================
   Footer
   ========================= */

footer {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px 30px;

    border-top: 1px solid #e2e2e5;

    background: transparent;
    color: var(--secondary);

    text-align: center;
    font-size: 12px;
}


/* =========================
   Responsive
   ========================= */

@media (max-width: 750px) {
    .site-header {
        height: 76px;

        padding: 0 18px;
    }

    .site-header a.logo {
        gap: 10px;
    }

    .site-header a.logo > span {
        width: 35px;
        height: 35px;

        border-radius: 11px;

        font-size: 21px;
    }

    .site-header a.logo strong {
        font-size: 13px;
    }

    .site-header nav:not(.dropdown-menu) {
        gap: 12px;
    }

    .site-header nav:not(.dropdown-menu) a {
        font-size: 12px;
    }

    .contact-section {
        padding-top: 52px;
        padding-bottom: 60px;
    }

    form {
        width: 100%;
    }

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

    .form-row label {
        padding-top: 0;
    }

    .captcha-placeholder,
    .captcha-container {
        max-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 580px) {
    .site-header nav:not(.dropdown-menu) a:nth-child(2),
    .site-header nav:not(.dropdown-menu) a:nth-child(3) {
        display: none;
    }
}

@media (max-width: 460px) {
    .site-header a.logo strong {
        display: none;
    }

    .contact-section {
        padding-inline: 16px;
    }

    form {
        padding: 24px 18px;

        border-radius: 18px;
    }

    .site-header nav:not(.dropdown-menu) {
        gap: 10px;
    }

    .site-header nav:not(.dropdown-menu) a {
        font-size: 11px;
    }

    footer {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
