/* Public contact page: shared InsightHack forest, mint and paper palette. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter/Inter-Variable.woff2") format("woff2"); /* SIL OFL 1.1: ../fonts/inter/OFL.txt */
}

.workreap-main:has(> .ih-contact-page) {
    padding: 0;
}

.ih-contact-page {
    --ih-contact-ink: #082219;
    --ih-contact-forest: #08754a;
    --ih-contact-mint: #8ee6b5;
    --ih-contact-paper: #f6f8f4;
    --ih-contact-text: #12271f;
    --ih-contact-muted: #60736a;
    --ih-contact-line: #dce5dc;
    background: var(--ih-contact-paper);
    color: var(--ih-contact-text);
    font: 400 15px/1.8 "Inter", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.ih-contact-page *,
.ih-contact-page *::before,
.ih-contact-page *::after {
    box-sizing: border-box;
}

.ih-contact-page :is(h1, h2, h3, p, ul) {
    margin: 0;
    font-family: inherit;
}

.ih-contact-page :is(h1, h2, h3) {
    color: inherit;
    font-weight: 650;
}

.ih-contact-shell {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.ih-contact-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 0 104px;
    background: radial-gradient(ellipse at 90% 50%, #174333 0, transparent 62%), #082219;
    color: #f5fcf8;
    isolation: isolate;
}

.ih-contact-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(#baf6d207 1px, transparent 1px), linear-gradient(90deg, #baf6d207 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    pointer-events: none;
}

.ih-contact-hero::after {
    position: absolute;
    z-index: -1;
    top: -270px;
    right: -40px;
    width: 660px;
    height: 660px;
    border: 1px solid #8ee6b51a;
    border-radius: 50%;
    box-shadow: 0 0 0 72px #8ee6b508, 0 0 0 144px #8ee6b505;
    content: "";
    pointer-events: none;
}

.ih-contact-breadcrumb {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 45px;
    font-size: 12px;
    color: #b4c9bd;
}

.ih-contact-breadcrumb a {
    color: #b4c9bd;
    text-decoration: none;
}

.ih-contact-breadcrumb a:hover {
    color: var(--ih-contact-mint);
}

.ih-contact-hero__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.ih-contact-page .ih-contact-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--ih-contact-forest);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .16em;
}

.ih-contact-hero .ih-contact-eyebrow {
    color: var(--ih-contact-mint);
}

.ih-contact-eyebrow > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px #8ee6b512;
}

.ih-contact-hero h1 {
    margin-bottom: 22px;
    font-size: clamp(32px, 3.5vw, 46px);
    line-height: 1.3;
    letter-spacing: .02em;
}

.ih-contact-page .ih-contact-hero__lead {
    color: #c6d9cf;
    font-size: 15px;
    line-height: 2;
}

.ih-contact-hero__mark {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding-inline: 72px;
    color: var(--ih-contact-mint);
}

.ih-contact-hero__mark svg {
    width: 64px;
    height: 64px;
    stroke: currentColor;
    stroke-width: 1.2;
}

.ih-contact-hero__mark > span {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: .12em;
}

.ih-contact-hero__mark small {
    color: #a9c7b7;
    font-size: 9px;
    letter-spacing: .12em;
}

.ih-contact-layout {
    position: relative;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 64px;
    margin-top: -48px;
    padding-bottom: 100px;
}

.ih-contact-guide {
    grid-column: 1;
    grid-row: 1;
    padding-top: 100px;
}

.ih-contact-guide h2 {
    font-size: 26px;
    line-height: 1.6;
    letter-spacing: -.03em;
}

.ih-contact-page .ih-contact-guide__lead {
    margin-top: 18px;
    color: var(--ih-contact-muted);
    font-size: 14px;
    line-height: 2;
}

.ih-contact-page .ih-contact-topics {
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.ih-contact-topics li {
    display: flex;
    gap: 16px;
    padding: 23px 0;
    border-top: 1px solid var(--ih-contact-line);
    list-style: none;
}

.ih-contact-topics li > span {
    padding-top: 2px;
    color: var(--ih-contact-forest);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
}

.ih-contact-topics h3 {
    font-size: 15px;
    line-height: 1.7;
}

.ih-contact-topics p {
    margin-top: 6px;
    color: var(--ih-contact-muted);
    font-size: 13px;
    line-height: 1.8;
}

.ih-contact-card {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 40px;
    border: 1px solid var(--ih-contact-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 60px #0822190a;
}

.ih-contact-card__header {
    margin-bottom: 28px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--ih-contact-line);
}

.ih-contact-card__header h2 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.5;
    letter-spacing: -.03em;
}

.ih-contact-card__header > p:last-child {
    color: var(--ih-contact-muted);
    font-size: 13px;
    line-height: 1.9;
}

.ih-contact-required-note {
    font-size: 12px;
}

.ih-contact-form .wpcf7-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.ih-contact-form .wpcf7-form > * {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
}

.ih-contact-form .wpcf7-form > p:has([name="your-name"], [name="your-email"], [name="tel-212"], [name="inquiry-purpose"]) {
    grid-column: auto;
}

.ih-contact-form .wpcf7-form label {
    display: block;
    width: 100%;
    margin: 0;
    color: var(--ih-contact-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
}

.ih-contact-form .wpcf7-form label > br {
    display: none;
}

.ih-contact-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 9px;
}

.ih-contact-form .wpcf7-form :is(input:not([type="submit"]):not([type="hidden"]), select, textarea) {
    display: block;
    width: 100%;
    min-width: 0;
    height: 50px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #d7e1d9;
    border-radius: 8px;
    background-color: #fbfcfa;
    color: var(--ih-contact-text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ih-contact-form .wpcf7-form select {
    appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23075238' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.ih-contact-form .wpcf7-form textarea {
    min-height: 164px;
    height: 164px;
    resize: vertical;
}

.ih-contact-form .wpcf7-form :is(input, select, textarea):focus-visible {
    border-color: var(--ih-contact-forest);
    outline: 2px solid var(--ih-contact-forest);
    outline-offset: 2px;
    background-color: #fff;
    box-shadow: 0 0 0 5px #08754a0d;
}

.ih-contact-form .wpcf7-form .wpcf7-form-control.wpcf7-not-valid[aria-invalid="true"] {
    border-color: #dc2626;
    background-color: #fff7f7;
}

.ih-contact-form .wpcf7-not-valid-tip {
    margin-top: 7px;
    color: #b91c1c;
    font-size: 12px;
}

.ih-contact-form .wpcf7-form p:has(> .wpcf7-submit) {
    padding-top: 24px;
    border-top: 1px solid var(--ih-contact-line);
}

/* Override the legacy Customizer button rule only on this public page. */
.ih-contact-page .wpcf7 form input.wpcf7-form-control.wpcf7-submit {
    min-width: 168px;
    min-height: 52px;
    padding: 14px 32px;
    border: 1px solid var(--ih-contact-mint) !important;
    border-radius: 8px;
    background: var(--ih-contact-mint) !important;
    color: var(--ih-contact-ink) !important;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: none;
}

.ih-contact-page .wpcf7 form input.wpcf7-form-control.wpcf7-submit:hover {
    border-color: #baf6d2 !important;
    background: #baf6d2 !important;
    box-shadow: 0 8px 20px #08754a14;
}

.ih-contact-page .wpcf7 form input.wpcf7-form-control.wpcf7-submit:focus-visible {
    outline: 2px solid var(--ih-contact-forest);
    outline-offset: 4px;
}

.ih-contact-page .wpcf7 form input.wpcf7-form-control.wpcf7-submit:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.ih-contact-form .wpcf7-form .wpcf7-response-output {
    margin: 0;
    padding: 16px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
}

.ih-contact-page .ih-contact-form > p {
    margin-top: 22px;
    color: var(--ih-contact-muted);
    font-size: 12px;
    line-height: 1.9;
}

.ih-contact-form > p a {
    color: #075238;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ih-contact-page a:focus-visible {
    outline: 2px solid var(--ih-contact-forest);
    outline-offset: 4px;
}

.ih-contact-hero a:focus-visible {
    outline-color: var(--ih-contact-mint);
}

@media (max-width: 1100px) {
    .ih-contact-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 32px;
    }

    .ih-contact-card {
        padding: 30px;
    }

    .ih-contact-form .wpcf7-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .ih-contact-desktop-break {
        display: none;
    }
}

@media (max-width: 767px) {
    .ih-contact-shell {
        width: calc(100% - 40px);
    }

    .ih-contact-hero {
        padding: 24px 0 72px;
    }

    .ih-contact-breadcrumb {
        margin-bottom: 32px;
    }

    .ih-contact-hero__mark {
        display: none;
    }

    .ih-contact-page .ih-contact-hero__lead {
        font-size: 13px;
    }

    .ih-contact-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        margin-top: -32px;
        padding-bottom: 56px;
    }

    .ih-contact-card {
        grid-column: 1;
        grid-row: 1;
        padding: 28px 24px;
        border-radius: 16px;
    }

    .ih-contact-card__header h2 {
        font-size: 21px;
    }

    .ih-contact-guide {
        grid-row: 2;
        padding: 0 4px;
    }

    .ih-contact-guide h2 {
        font-size: 24px;
    }
}

@media (max-width: 374px) {
    .ih-contact-shell {
        width: calc(100% - 28px);
    }

    .ih-contact-card {
        padding: 24px 18px;
    }

    .ih-contact-card__header h2 {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ih-contact-page *,
    .ih-contact-page *::before,
    .ih-contact-page *::after {
        transition: none !important;
        animation: none !important;
    }

    .ih-contact-page .wpcf7 form input.wpcf7-form-control.wpcf7-submit:hover {
        transform: none;
    }
}
