.hrmg-contact,
.hrmg-contact * {
    box-sizing: border-box;
}

.hrmg-contact {
    --hrmg-orange: #ff672f;
    --hrmg-orange-dark: #d94a17;
    --hrmg-ink: #171a20;
    --hrmg-text: #344054;
    --hrmg-muted: #667085;
    --hrmg-line: #d9dfe7;
    --hrmg-soft: #f6f8fa;
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
    width: 100%;
    overflow: hidden;
    border: 1px solid #dfe4ea;
    border-radius: 20px;
    background: #fff;
    color: var(--hrmg-ink);
    font-family: inherit;
    box-shadow: 0 24px 60px rgba(21, 28, 39, .12);
}

.hrmg-contact__panel {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 4vw, 52px);
    background:
        radial-gradient(circle at 115% -10%, rgba(255, 103, 47, .3), transparent 36%),
        linear-gradient(145deg, #17191f 0%, #211b25 62%, #292035 100%);
    color: #fff;
}

.hrmg-contact__panel::after {
    content: "";
    position: absolute;
    right: -135px;
    bottom: -150px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 147, 106, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(255, 147, 106, .035), 0 0 0 110px rgba(255, 147, 106, .025);
    pointer-events: none;
}

.hrmg-contact__panel-grid {
    position: absolute;
    inset: 0;
    opacity: .28;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
    pointer-events: none;
}

.hrmg-contact__panel-content {
    position: relative;
    z-index: 1;
}

.hrmg-contact__panel .hrmg-contact__eyebrow {
    color: #ff9d78;
}

.hrmg-contact__panel h2 {
    margin: 11px 0 18px;
    color: #fff;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.03;
    letter-spacing: -.035em;
}

.hrmg-contact__panel-lede {
    margin: 0;
    color: #c7c9d0;
    font-size: 16px;
    line-height: 1.7;
}

.hrmg-contact__project-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 0 30px;
    padding: 16px 18px;
    border-radius: 8px;
    background: var(--hrmg-orange);
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: 0 12px 28px rgba(255, 103, 47, .22);
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.hrmg-contact__project-button:hover,
.hrmg-contact__project-button:focus-visible {
    transform: translateY(-2px);
    background: #f0521a;
    box-shadow: 0 16px 34px rgba(255, 103, 47, .3);
}

.hrmg-contact__project-button i {
    font-style: normal;
    font-size: 21px;
}

.hrmg-contact__direct {
    display: grid;
    gap: 2px;
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
}

.hrmg-contact__direct > a,
.hrmg-contact__hours {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 14px 15px;
    background: rgba(255, 255, 255, .035);
    color: #fff !important;
    text-decoration: none !important;
}

.hrmg-contact__direct > a {
    transition: background-color .18s ease;
}

.hrmg-contact__direct > a:hover,
.hrmg-contact__direct > a:focus-visible {
    background: rgba(255, 255, 255, .1);
}

.hrmg-contact__direct-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 103, 47, .16);
    color: #ff9d78;
}

.hrmg-contact__direct-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.hrmg-contact__direct small,
.hrmg-contact__hours small {
    display: block;
    margin-bottom: 2px;
    color: #aeb3bd;
    font-size: 11px;
    line-height: 1.4;
}

.hrmg-contact__direct strong,
.hrmg-contact__hours strong {
    display: block;
    overflow-wrap: anywhere;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
}

.hrmg-contact__hours {
    grid-template-columns: 13px minmax(0, 1fr);
    padding-left: 26px;
}

.hrmg-contact__hours-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a6abb5;
    box-shadow: 0 0 0 5px rgba(166, 171, 181, .12);
}

.hrmg-contact__hours.is-open .hrmg-contact__hours-dot {
    background: #42d27d;
    box-shadow: 0 0 0 5px rgba(66, 210, 125, .13), 0 0 18px rgba(66, 210, 125, .38);
}

.hrmg-contact__hours.is-closing .hrmg-contact__hours-dot,
.hrmg-contact__hours.is-opening .hrmg-contact__hours-dot {
    background: #ffbf4b;
    box-shadow: 0 0 0 5px rgba(255, 191, 75, .13);
}

.hrmg-contact__nonprofit {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(255, 157, 120, .25);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 103, 47, .13), rgba(255, 255, 255, .05));
}

.hrmg-contact__nonprofit > span {
    display: block;
    margin-bottom: 7px;
    color: #ff9d78;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hrmg-contact__nonprofit h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 23px;
    line-height: 1.2;
}

.hrmg-contact__nonprofit p {
    margin: 0;
    color: #c7c9d0;
    font-size: 13px;
    line-height: 1.65;
}

.hrmg-contact__nonprofit button {
    margin: 17px 0 8px;
    padding: 0 0 3px;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: #ff9d78;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.hrmg-contact__nonprofit button i {
    margin-left: 5px;
    font-style: normal;
}

.hrmg-contact__nonprofit > small {
    display: block;
    color: #949aa5;
    font-size: 10px;
    line-height: 1.5;
}

.hrmg-contact__socials {
    display: flex;
    gap: 9px;
    margin-top: 24px;
}

.hrmg-contact__socials a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.hrmg-contact__socials a:hover,
.hrmg-contact__socials a:focus-visible {
    transform: translateY(-2px);
    border-color: var(--hrmg-orange);
    background: var(--hrmg-orange);
}

.hrmg-contact__main {
    min-width: 0;
    padding: clamp(34px, 4vw, 52px);
    background: #fff;
}

.hrmg-contact__intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 30px;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--hrmg-line);
}

.hrmg-contact__eyebrow {
    display: block;
    color: var(--hrmg-orange-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hrmg-contact__intro p {
    max-width: 480px;
    margin: 0;
    color: var(--hrmg-muted);
    font-size: 16px;
    line-height: 1.6;
    text-align: right;
}

.hrmg-contact__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.hrmg-contact__field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    color: var(--hrmg-ink);
}

.hrmg-contact__field > span {
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.hrmg-contact__field b {
    color: var(--hrmg-orange-dark);
}

.hrmg-contact__field input,
.hrmg-contact__field select,
.hrmg-contact__field textarea {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 15px 16px;
    border: 1px solid #cfd6df;
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: var(--hrmg-ink);
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.hrmg-contact__field select {
    min-height: 53px;
}

.hrmg-contact__field textarea {
    min-height: 180px;
    resize: vertical;
}

.hrmg-contact__field input:hover,
.hrmg-contact__field select:hover,
.hrmg-contact__field textarea:hover {
    border-color: #adb7c4;
}

.hrmg-contact__field input:focus,
.hrmg-contact__field select:focus,
.hrmg-contact__field textarea:focus {
    border-color: var(--hrmg-orange);
    box-shadow: 0 0 0 4px rgba(255, 103, 47, .13);
}

.hrmg-contact__field input[aria-invalid="true"],
.hrmg-contact__field select[aria-invalid="true"],
.hrmg-contact__field textarea[aria-invalid="true"] {
    border-color: #d92d20;
    background: #fffafa;
}

.hrmg-contact__field small {
    align-self: flex-end;
    margin-top: -2px;
    color: #8993a0;
    font-size: 12px;
}

.hrmg-contact__wide {
    grid-column: 1 / -1;
}

.hrmg-contact__disclaimer {
    margin: 24px 0 20px;
    padding: 0 0 0 13px;
    border-left: 3px solid #f0b6a1;
    color: #7a8491;
    font-size: 12px;
    line-height: 1.6;
}

.hrmg-contact__turnstile {
    min-height: 65px;
    margin: 0 0 20px;
}

.hrmg-contact__warning {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-left: 4px solid #d97706;
    border-radius: 7px;
    background: #fff7e6;
    color: #7a4a00;
    font-size: 14px;
    line-height: 1.55;
}

.hrmg-contact__status {
    display: none;
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
}

.hrmg-contact__status.is-visible {
    display: block;
}

.hrmg-contact__status.is-error {
    border: 1px solid #f5b9b5;
    background: #fff1f0;
    color: #9f1d16;
}

.hrmg-contact__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--hrmg-line);
}

.hrmg-contact__footer p {
    max-width: 470px;
    margin: 0;
    color: var(--hrmg-muted);
    font-size: 12px;
    line-height: 1.6;
}

.hrmg-contact__footer a {
    color: var(--hrmg-orange-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hrmg-contact__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 178px;
    min-height: 54px;
    margin: 0;
    padding: 14px 22px;
    border: 0;
    border-radius: 7px;
    background: var(--hrmg-orange);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(217, 74, 23, .2);
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.hrmg-contact__submit:hover,
.hrmg-contact__submit:focus-visible {
    transform: translateY(-1px);
    background: var(--hrmg-orange-dark);
    color: #fff;
    box-shadow: 0 12px 25px rgba(217, 74, 23, .26);
}

.hrmg-contact__submit:disabled {
    transform: none;
    background: #c7cdd4;
    cursor: not-allowed;
    box-shadow: none;
}

.hrmg-contact__submit i {
    font-style: normal;
    font-size: 20px;
    line-height: 1;
}

.hrmg-contact__submit[aria-busy="true"] i {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    font-size: 0;
    animation: hrmg-contact-spin .75s linear infinite;
}

.hrmg-contact__success {
    padding: 50px 34px;
    border: 1px solid #d8e8dd;
    border-radius: 14px;
    background: linear-gradient(145deg, #f8fffa, #f5f8fa);
    text-align: center;
    box-shadow: 0 15px 45px rgba(21, 31, 27, .08);
}

.hrmg-contact__legacy-column,
.hrmg-contact__legacy-heading {
    display: none !important;
}

.hrmg-contact__host-column {
    width: 100% !important;
    float: none !important;
}

.hrmg-contact__host-row {
    display: block !important;
}

.hrmg-contact__success-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #1f9d55;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(31, 157, 85, .22);
}

.hrmg-contact__success h3 {
    margin: 9px 0 12px;
    color: var(--hrmg-ink);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
}

.hrmg-contact__success p {
    max-width: 560px;
    margin: 0 auto;
    color: var(--hrmg-muted);
    font-size: 16px;
    line-height: 1.65;
}

.hrmg-contact__success button {
    margin: 24px 0 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--hrmg-orange-dark);
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}

.hrmg-contact__trap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@keyframes hrmg-contact-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
    .hrmg-contact__intro,
    .hrmg-contact__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hrmg-contact__intro p {
        text-align: left;
    }

    .hrmg-contact__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hrmg-contact__wide {
        grid-column: auto;
    }

    .hrmg-contact__submit {
        width: 100%;
    }

    .hrmg-contact__success {
        padding: 38px 22px;
    }
}

@media (max-width: 980px) {
    .hrmg-contact {
        grid-template-columns: 1fr;
    }

    .hrmg-contact__panel,
    .hrmg-contact__main {
        padding: 34px;
    }

    .hrmg-contact__panel h2 {
        max-width: 620px;
    }

    .hrmg-contact__panel-lede {
        max-width: 720px;
    }
}

@media (max-width: 520px) {
    .hrmg-contact {
        border-radius: 14px;
    }

    .hrmg-contact__panel,
    .hrmg-contact__main {
        padding: 28px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hrmg-contact__submit,
    .hrmg-contact__field input,
    .hrmg-contact__field select,
    .hrmg-contact__field textarea {
        transition: none;
    }
}
