/* =========================================================
   HANPUNCH CONTACT PAGE
   ========================================================= */

.hp-contact-hero,
.hp-contact-main,
.hp-contact-guidance,
.hp-contact-resources {
    --hp-contact-blue: #164f86;
    --hp-contact-dark-blue: #0f3154;
    --hp-contact-ink: #17191c;
    --hp-contact-copy: #5c6269;
    --hp-contact-line: #dddeda;
    --hp-contact-warm: #f6f5f1;
    --hp-contact-white: #ffffff;

    box-sizing: border-box;
}

.hp-contact-hero *,
.hp-contact-main *,
.hp-contact-guidance *,
.hp-contact-resources * {
    box-sizing: border-box;
}

.hp-contact-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.hp-contact-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--hp-contact-blue);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hp-contact-eyebrow--light {
    color: rgba(255, 255, 255, 0.72);
}


/* =========================================================
   HERO
   ========================================================= */

.hp-contact-hero {
    position: relative;
    padding: 105px 0 90px;
    overflow: hidden;
    background:
        linear-gradient(
            115deg,
            #f7f6f2 0%,
            #f7f6f2 72%,
            #eef2f5 72%,
            #eef2f5 100%
        );
}

.hp-contact-hero::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--hp-contact-blue);
    content: "";
}

.hp-contact-hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--hp-contact-ink);
    font-size: clamp(54px, 8vw, 96px);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.hp-contact-hero h1 span {
    display: block;
    color: var(--hp-contact-blue);
}

.hp-contact-hero p {
    max-width: 720px;
    margin: 28px 0 0;
    color: var(--hp-contact-copy);
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.7;
}


/* =========================================================
   MAIN CONTACT AREA
   ========================================================= */

.hp-contact-main {
    max-width: none !important;
    margin: 0 !important;
    padding: 88px max(20px, calc((100vw - 1180px) / 2)) !important;
    background: var(--hp-contact-warm);
}

.hp-contact-main > .wp-block-columns {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    gap: clamp(40px, 7vw, 90px);
    align-items: flex-start;
}

.hp-contact-intro h2 {
    margin: 0;
    color: var(--hp-contact-ink);
    font-size: clamp(36px, 4.5vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.hp-contact-lead {
    max-width: 570px;
    margin: 22px 0 34px;
    color: var(--hp-contact-copy);
    font-size: 17px;
    line-height: 1.75;
}

.hp-contact-topics {
    border-top: 1px solid var(--hp-contact-line);
}

.hp-contact-topic {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--hp-contact-line);
}

.hp-contact-topic > span {
    padding-top: 4px;
    color: var(--hp-contact-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.hp-contact-topic h3 {
    margin: 0 0 7px;
    color: var(--hp-contact-ink);
    font-size: 19px;
    line-height: 1.25;
}

.hp-contact-topic p {
    margin: 0;
    color: var(--hp-contact-copy);
    font-size: 14px;
    line-height: 1.7;
}

.hp-contact-response-note {
    margin-top: 30px;
    padding: 22px 24px;
    border-left: 4px solid var(--hp-contact-blue);
    background: var(--hp-contact-white);
}

.hp-contact-response-note strong {
    display: block;
    margin-bottom: 7px;
    color: var(--hp-contact-ink);
    font-size: 14px;
}

.hp-contact-response-note p {
    margin: 0;
    color: var(--hp-contact-copy);
    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   FORM PANEL
   ========================================================= */

.hp-contact-form-panel {
    padding: clamp(28px, 4vw, 44px) !important;
    border: 1px solid var(--hp-contact-line);
    background: var(--hp-contact-white);
    box-shadow: 0 18px 45px rgba(20, 25, 30, 0.06);
}

.hp-contact-form-panel h2,
.hp-contact-form-panel h3 {
    margin-top: 0;
    color: var(--hp-contact-ink);
    letter-spacing: -0.025em;
}

.hp-contact-form-panel label {
    display: block;
    margin-bottom: 8px;
    color: var(--hp-contact-ink);
    font-size: 13px;
    font-weight: 750;
}

.hp-contact-form-panel input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.hp-contact-form-panel select,
.hp-contact-form-panel textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #cfd2d3;
    border-radius: 3px;
    background: var(--hp-contact-white);
    color: var(--hp-contact-ink);
    font: inherit;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hp-contact-form-panel textarea {
    min-height: 170px;
    resize: vertical;
}

.hp-contact-form-panel input:focus,
.hp-contact-form-panel select:focus,
.hp-contact-form-panel textarea:focus {
    border-color: var(--hp-contact-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 79, 134, 0.12);
}

.hp-contact-form-panel input[type="submit"],
.hp-contact-form-panel button[type="submit"],
.hp-contact-form-panel .wp-block-button__link {
    width: 100%;
    min-height: 52px;
    padding: 13px 22px;
    border: 0;
    border-radius: 3px;
    background: var(--hp-contact-blue);
    color: #ffffff;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.hp-contact-form-panel input[type="submit"]:hover,
.hp-contact-form-panel button[type="submit"]:hover,
.hp-contact-form-panel .wp-block-button__link:hover {
    background: var(--hp-contact-dark-blue);
    transform: translateY(-1px);
}


/* =========================================================
   EDITORIAL GUIDANCE
   ========================================================= */

.hp-contact-guidance {
    padding: 66px 0;
    background: var(--hp-contact-dark-blue);
    color: #ffffff;
}

.hp-contact-guidance .hp-contact-container {
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: space-between;
}

.hp-contact-guidance__content {
    max-width: 790px;
}

.hp-contact-guidance h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(34px, 4.5vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.hp-contact-guidance p {
    max-width: 700px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 16px;
    line-height: 1.75;
}

.hp-contact-button {
    display: inline-flex;
    min-height: 50px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none !important;
}

.hp-contact-button--white {
    background: #ffffff;
    color: var(--hp-contact-dark-blue) !important;
}


/* =========================================================
   HELPFUL LINKS
   ========================================================= */

.hp-contact-resources {
    padding: 86px 0;
    background: #ffffff;
}

.hp-contact-section-heading {
    margin-bottom: 34px;
}

.hp-contact-section-heading h2 {
    margin: 0;
    color: var(--hp-contact-ink);
    font-size: clamp(34px, 4.5vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.hp-contact-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--hp-contact-line);
    border-left: 1px solid var(--hp-contact-line);
}

.hp-contact-link-grid a {
    display: flex;
    min-height: 130px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border-right: 1px solid var(--hp-contact-line);
    border-bottom: 1px solid var(--hp-contact-line);
    color: var(--hp-contact-ink) !important;
    font-size: 15px;
    font-weight: 750;
    text-decoration: none !important;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.hp-contact-link-grid a:hover {
    background: var(--hp-contact-blue);
    color: #ffffff !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
    .hp-contact-main > .wp-block-columns {
        flex-direction: column;
    }

    .hp-contact-main > .wp-block-columns > .wp-block-column {
        flex-basis: 100% !important;
        width: 100%;
    }

    .hp-contact-guidance .hp-contact-container {
        align-items: flex-start;
        flex-direction: column;
    }

    .hp-contact-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {
    .hp-contact-container {
        width: min(100% - 28px, 1180px);
    }

    .hp-contact-hero {
        padding: 78px 0 66px;
        background: var(--hp-contact-warm);
    }

    .hp-contact-hero h1 {
        font-size: clamp(46px, 14vw, 66px);
    }

    .hp-contact-hero p {
        font-size: 17px;
    }

    .hp-contact-main {
        padding: 60px 14px !important;
    }

    .hp-contact-form-panel {
        padding: 25px 20px !important;
    }

    .hp-contact-guidance {
        padding: 54px 0;
    }

    .hp-contact-button {
        width: 100%;
    }

    .hp-contact-resources {
        padding: 60px 0;
    }

    .hp-contact-link-grid {
        grid-template-columns: 1fr;
    }

    .hp-contact-link-grid a {
        min-height: 92px;
    }
}

/* =========================================================
   CONTACT PAGE — CONTRAST AND READABILITY
   ========================================================= */

body.page-id-664 {
    background: #f5f3ec;
    color: #171714;
}

/* Main contact area */

body.page-id-664 .hp-contact-main {
    color: #171714;
}

body.page-id-664 .hp-contact-grid {
    align-items: stretch;
}

/* Left editorial column */

body.page-id-664 .hp-contact-info,
body.page-id-664 .hp-contact-copy {
    color: #171714;
}

body.page-id-664 .hp-contact-eyebrow,
body.page-id-664 .hp-contact-kicker {
    color: #173c68;
}

body.page-id-664 .hp-contact-info h2,
body.page-id-664 .hp-contact-copy h2,
body.page-id-664 .hp-contact-info h3,
body.page-id-664 .hp-contact-copy h3 {
    color: #111111;
}

body.page-id-664 .hp-contact-info p,
body.page-id-664 .hp-contact-copy p,
body.page-id-664 .hp-contact-topic p {
    color: #4f4e48;
}

/* Topic numbers and dividers */

body.page-id-664 .hp-contact-topic {
    border-color: #d3d0c7;
}

body.page-id-664 .hp-contact-topic-number,
body.page-id-664 .hp-contact-topic__number {
    color: #173c68;
}

/* Form card */

body.page-id-664 .hp-contact-form,
body.page-id-664 .hp-contact-form-wrap,
body.page-id-664 .hp-contact-form-card {
    border: 1px solid #d2cfc6;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(20, 24, 28, 0.08);
}

/* Form labels */

body.page-id-664 .hp-contact-form label,
body.page-id-664 .wp-block-jetpack-contact-form label,
body.page-id-664 .contact-form label {
    color: #171714 !important;
    font-weight: 750;
}

/* Required text */

body.page-id-664 .hp-contact-form .required,
body.page-id-664 .wp-block-jetpack-contact-form .required,
body.page-id-664 .contact-form .required {
    color: #6a675f !important;
}

/* Inputs and textarea */

body.page-id-664 .hp-contact-form input,
body.page-id-664 .hp-contact-form textarea,
body.page-id-664 .hp-contact-form select,
body.page-id-664 .wp-block-jetpack-contact-form input,
body.page-id-664 .wp-block-jetpack-contact-form textarea,
body.page-id-664 .wp-block-jetpack-contact-form select,
body.page-id-664 .contact-form input,
body.page-id-664 .contact-form textarea,
body.page-id-664 .contact-form select {
    border: 1px solid #aaa79f !important;
    background: #ffffff !important;
    color: #171714 !important;
    box-shadow: none !important;
}

/* Input focus */

body.page-id-664 .hp-contact-form input:focus,
body.page-id-664 .hp-contact-form textarea:focus,
body.page-id-664 .hp-contact-form select:focus,
body.page-id-664 .wp-block-jetpack-contact-form input:focus,
body.page-id-664 .wp-block-jetpack-contact-form textarea:focus,
body.page-id-664 .wp-block-jetpack-contact-form select:focus,
body.page-id-664 .contact-form input:focus,
body.page-id-664 .contact-form textarea:focus,
body.page-id-664 .contact-form select:focus {
    border-color: #173c68 !important;
    outline: 3px solid rgba(23, 60, 104, 0.12) !important;
    outline-offset: 0;
}

/* Placeholder text */

body.page-id-664 .hp-contact-form ::placeholder,
body.page-id-664 .wp-block-jetpack-contact-form ::placeholder,
body.page-id-664 .contact-form ::placeholder {
    color: #77746d !important;
    opacity: 1;
}

/* Submit button */

body.page-id-664 .hp-contact-form button,
body.page-id-664 .hp-contact-form input[type="submit"],
body.page-id-664 .wp-block-jetpack-contact-form button,
body.page-id-664 .wp-block-jetpack-contact-form input[type="submit"],
body.page-id-664 .contact-form button,
body.page-id-664 .contact-form input[type="submit"],
body.page-id-664 .wp-block-button__link {
    min-height: 46px;
    border: 1px solid #173c68 !important;
    background: #173c68 !important;
    color: #ffffff !important;
    font-weight: 800;
    opacity: 1 !important;
}

body.page-id-664 .hp-contact-form button:hover,
body.page-id-664 .hp-contact-form input[type="submit"]:hover,
body.page-id-664 .wp-block-jetpack-contact-form button:hover,
body.page-id-664 .wp-block-jetpack-contact-form input[type="submit"]:hover,
body.page-id-664 .contact-form button:hover,
body.page-id-664 .contact-form input[type="submit"]:hover,
body.page-id-664 .wp-block-button__link:hover {
    border-color: #102c4e !important;
    background: #102c4e !important;
    color: #ffffff !important;
}

/* Please-note area */

body.page-id-664 .hp-contact-note {
    border-top: 1px solid #cbc8bf;
    color: #4f4e48;
}

body.page-id-664 .hp-contact-note strong {
    color: #171714;
}

/* Editorial policy section */

body.page-id-664 .hp-contact-editorial {
    border-top: 1px solid #cbc8bf;
    border-bottom: 1px solid #cbc8bf;
    background: #ebe8df;
}

body.page-id-664 .hp-contact-editorial h2 {
    color: #111111;
}

body.page-id-664 .hp-contact-editorial p {
    color: #4c4a45;
}

body.page-id-664 .hp-contact-editorial a {
    border-color: #171714;
    background: #171714;
    color: #ffffff !important;
}

body.page-id-664 .hp-contact-editorial a:hover {
    border-color: #173c68;
    background: #173c68;
}

/* Resource links */

body.page-id-664 .hp-contact-resources {
    border-color: #cbc8bf;
    background: #ffffff;
}

body.page-id-664 .hp-contact-resources h2,
body.page-id-664 .hp-contact-resources h3 {
    color: #171714;
}

body.page-id-664 .hp-contact-resources a {
    color: #173c68 !important;
}
