/* Contact page follows the warm paper and teal reference design. */
body.tg-contact { color: #092932; background: #fdfdfb; font-family: 'DM Sans', Arial, sans-serif; font-size: 14px; line-height: 1.5; }
.tg-contact main { overflow: clip; }
.tg-contact h1, .tg-contact h2, .tg-contact h3, .tg-contact p { margin: 0; }
.tg-contact h1, .tg-contact h2, .tg-contact h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 500; }
.tg-contact h2 { font-size: 31px; line-height: 1.16; letter-spacing: -.5px; }
.tg-contact .tg-icon { width: 18px; height: 18px; flex: none; }
.tg-contact a:focus-visible, .tg-contact button:focus-visible { outline: 3px solid #278d94; outline-offset: 4px; }
.contact-shell { width: min(1200px, calc(100% - 100px)); margin-inline: auto; }
.contact-eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 9px !important; color: #305c64; font-size: 10px; font-weight: 600; line-height: 1.4; letter-spacing: 2px; text-transform: uppercase; }
.contact-rule::after { content: ''; width: 52px; height: 1px; background: #638b91; }
.contact-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; width: fit-content; min-height: 40px; padding: 11px 27px; border: 1px solid #064851; border-radius: 6px; background: linear-gradient(110deg, #075c66, #003d46); box-shadow: inset 0 0 0 3px #ffffff09; color: #fff; font: 600 13px/1.3 'DM Sans', Arial, sans-serif; cursor: pointer; transition: background .2s, transform .2s; }
.contact-button:hover { background: #08727b; transform: translateY(-1px); }
.contact-button:disabled { opacity: .7; cursor: wait; transform: none; }
.tg-contact #contact-form { scroll-margin-top: 20px; }
.contact-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Hero and organic image mask. */
.contact-hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(105deg, #f0f7f7 0%, #f7f3eb 70%); }
.contact-hero::before { content: ''; position: absolute; z-index: -1; width: 200px; height: 220px; left: -130px; bottom: -120px; border-radius: 50%; background: #d6e9e8; transform: rotate(-35deg); }
.contact-hero-inner { position: relative; min-height: 260px; display: flex; align-items: center; }
.contact-hero-copy { width: 49%; padding: 28px 0; position: relative; z-index: 2; }
.tg-contact .contact-hero h1 { font-family: 'Times New Roman', Georgia, serif; font-size: 47px; font-weight: 700; line-height: 1.03; letter-spacing: -.9px; margin-bottom: 14px; }
.contact-hero-copy > p:last-child { max-width: 535px; font-size: 16px; line-height: 1.5; color: #445d63; }
.contact-hero-image { position: absolute; inset: 0 -120px 0 48%; border-radius: 24% 0 0 0 / 95% 0 0 0; overflow: hidden; }
.contact-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }

/* The form and contact details sit on the same baseline. */
.contact-message-section { padding: 28px 0 27px; background: linear-gradient(110deg, #fff, #fcfcfa); }
.contact-message-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 30px; align-items: stretch; width: min(1260px, calc(100% - 100px)); }
.contact-form-panel { padding: 6px 14px 0 25px; }
.contact-form-panel .contact-eyebrow { margin-bottom: 4px !important; }
.contact-form-intro { margin-top: 6px !important; font-size: 13px; color: #50656c; }
.contact-form { display: grid; gap: 10px; margin-top: 18px; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.contact-field { min-width: 0; position: relative; }
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; min-width: 0; border: 1px solid #dfe5e4; border-radius: 5px; outline: none; background: #fbfcfb; color: #163b44; font: 12px/1.4 'DM Sans', Arial, sans-serif; transition: border-color .18s, box-shadow .18s; }
.contact-form input { height: 38px; padding: 10px 14px; }
.contact-form textarea { min-height: 76px; padding: 12px 14px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #687b80; opacity: 1; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: #198591; box-shadow: 0 0 0 3px #16859015; }
.contact-select-field label { position: absolute; z-index: 1; top: 8px; left: 14px; font-size: 11px; color: #526b73; pointer-events: none; }
.contact-form select { min-height: 54px; padding: 23px 30px 7px 14px; color: #526b73; cursor: pointer; }
.contact-form .contact-button { min-width: 180px; margin-top: 0; }
.field-error { display: block; margin-top: 5px; color: #b33535; font-size: 12px; line-height: 1.4; }
.field-error:empty, .form-status:empty { display: none; }
.contact-form [aria-invalid='true'] { border-color: #bd4444; background: #fffafa; }
.form-status { color: #a02e2e; font-size: 13px; line-height: 1.45; }
.contact-saved { padding: 12px; background: #e8f4ef; color: #086455; border-radius: 6px; }
.contact-reach-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr); gap: 20px; padding: 12px 10px 7px 18px; border-radius: 14px; background: #f5f2eb; }
.contact-reach-copy { padding: 3px 0 10px; }
.contact-reach-copy .contact-eyebrow { margin-bottom: 4px !important; font-size: 9px; letter-spacing: 1.8px; }
.contact-reach-copy .contact-rule::after { width: 40px; }
.contact-reach-copy h2 { font-size: 29px; margin-bottom: 7px; }
.contact-reach-copy > p { font-size: 12px; line-height: 1.5; color: #52666b; }
.contact-detail { display: flex; gap: 16px; padding: 17px 3px 14px; border-bottom: 1px solid #e2e3dd; }
.contact-detail:last-child { border: 0; padding-bottom: 0; }
.contact-detail > i { color: #07818a; font-size: 18px; flex: none; }
.contact-detail h3 { font-size: 16px; line-height: 1.2; margin-bottom: 6px; }
.contact-detail address, .contact-detail p, .contact-detail a { color: #52656a; font-size: 12px; font-style: normal; line-height: 1.45; margin: 0; }
.contact-detail a:hover { color: #007a84; text-decoration: underline; }
.contact-building { display: block; width: 100%; height: 100%; min-height: 410px; max-height: 480px; object-fit: cover; border-radius: 12px; }

/* Conversation strip and location card. */
.contact-conversation { position: relative; isolation: isolate; display: grid; grid-template-columns: 58% 42%; min-height: 237px; background: linear-gradient(105deg, #e8e0d3, #f5eee3); overflow: hidden; }
.contact-conversation::after { content: ''; position: absolute; z-index: -1; width: 230px; height: 280px; right: -150px; top: -90px; border-radius: 50%; background: #e9dfcf; transform: rotate(-30deg); }
.contact-conversation > img { width: 100%; height: 237px; object-fit: cover; object-position: center 25%; mask-image: linear-gradient(90deg, #000 90%, transparent); }
.contact-conversation-copy { padding: 29px 80px 25px 36px; align-self: center; }
.contact-conversation-copy .contact-eyebrow { margin-bottom: 5px !important; }
.contact-conversation-copy h2 { margin-bottom: 9px; }
.contact-conversation-copy > p:not(.contact-eyebrow) { color: #51656b; font-size: 13px; line-height: 1.45; max-width: 490px; margin-bottom: 13px; }
.contact-conversation .contact-button { min-height: 43px; }
.contact-location { padding: 24px 0 17px; }
.contact-location-card { display: grid; grid-template-columns: 31% 69%; width: min(1335px, calc(100% - 100px)); min-height: 155px; margin-inline: auto; border-radius: 17px; overflow: hidden; background: #e9f3f3; border: 1px solid #e2ebeb; }
.contact-location-copy { padding: 20px 26px; }
.contact-location-copy .contact-eyebrow { margin-bottom: 5px !important; }
.contact-location-copy h2 { margin-bottom: 8px; }
.contact-location-copy p:not(.contact-eyebrow) { font-size: 13px; color: #49646b; line-height: 1.5; }
.contact-map { position: relative; display: block; min-height: 155px; overflow: hidden; background: #edf0ed; }
.contact-map > svg { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.contact-map-marker { display: flex; align-items: center; gap: 8px; position: absolute; top: 36%; left: 47%; transform: translate(-50%, -50%); font-size: 13px; white-space: nowrap; }
.contact-map-marker > i { color: #00818c; font-size: 36px; filter: drop-shadow(0 2px 2px #fff); }
.contact-map-marker > span { padding: 4px 6px; border-radius: 4px; background: #fffffff0; }
.contact-map-link { position: absolute; right: 10px; bottom: 8px; background: #ffffffed; padding: 4px 9px; border-radius: 4px; font-size: 11px; color: #225a63; }
.contact-map:hover .contact-map-link { text-decoration: underline; }

/* Accessible native confirmation dialog. */
.contact-modal { width: min(460px, calc(100% - 40px)); max-height: calc(100vh - 40px); padding: 40px 34px 32px; border: 1px solid #d3e4df; border-radius: 18px; background: #fdfcf8; color: #0a343d; box-shadow: 0 24px 90px #002e4160; text-align: center; }
.contact-modal::backdrop { background: #002f3bcc; backdrop-filter: blur(4px); }
.contact-modal-open { overflow: hidden; }
.contact-modal-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eaf2ef; color: #22535b; font-size: 25px; cursor: pointer; }
.contact-modal-icon { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 22px; border-radius: 50%; background: #dcefed; color: #007e82; font-size: 34px; }
.contact-modal .contact-eyebrow { justify-content: center; }
.contact-modal h2 { font-size: 31px; margin-bottom: 15px; }
.contact-modal > p:not(.contact-eyebrow) { color: #536b71; font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.contact-modal .contact-button { min-width: 130px; }

/* Shared header and footer, with the compact proportions of this reference. */
.tg-contact .tg-header { height: 58px; background: #fdfefe; }
.tg-contact .tg-chrome-container { width: min(1200px, calc(100% - 100px)); }
.tg-contact .tg-logo { font-size: 27px; }
.tg-contact .tg-desktop-nav { font-size: 11px; gap: 27px; margin-left: 85px; }
.tg-contact .tg-header-cta { min-height: 35px; font-size: 11px; padding-block: 9px; }
.tg-contact .tg-desktop-nav a[aria-current='page']::after { bottom: 9px; }
.tg-contact .company-footer { color: #f1f7f6; background: radial-gradient(ellipse at 10% 10%, #054650, #00343d 75%); padding: 18px 0 24px; }
.tg-contact .company-footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1.35fr 1.15fr; gap: 42px; width: min(1200px, calc(100% - 100px)); margin-inline: auto; }
.tg-contact .company-footer .tg-logo { font-size: 25px; margin-bottom: 10px; }
.tg-contact .company-footer .tg-logo-mark { width: 25px; height: 29px; }
.tg-contact .company-footer-brand p { max-width: 260px; font-size: 12px; line-height: 1.5; }
.tg-contact .company-socials { display: flex; gap: 18px; margin-top: 16px; font-size: 17px; }
.tg-contact .company-footer h2 { font: 500 13px/1.3 'DM Sans', Arial, sans-serif; margin-bottom: 7px; letter-spacing: 0; }
.tg-contact .company-footer nav a { display: block; width: fit-content; color: #e1eded; font-size: 11px; line-height: 1.4; }
.tg-contact .company-footer a:hover { color: #9cddda; }
.tg-contact .company-footer-contact address, .tg-contact .company-footer-contact > a { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; font-size: 12px; line-height: 1.5; font-style: normal; }
.tg-contact .company-footer-contact span { overflow-wrap: anywhere; }

@media (max-width: 1200px) {
    .contact-shell, .contact-message-grid { width: calc(100% - 64px); }
    .tg-contact .contact-hero h1 { font-size: 40px; }
    .contact-hero-image { right: -32px; }
    .contact-hero-copy > p:last-child { font-size: 14px; max-width: 440px; }
    .contact-message-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .contact-form-panel { padding-left: 0; padding-right: 0; }
    .tg-contact h2 { font-size: 27px; }
    .contact-reach-panel { gap: 14px; padding-left: 16px; grid-template-columns: 1.35fr .85fr; }
    .contact-reach-copy h2 { font-size: 24px; }
    .contact-detail { gap: 10px; }
    .contact-detail > i { font-size: 16px; }
    .contact-conversation-copy { padding-inline: 28px 35px; }
    .contact-location-card { width: calc(100% - 64px); grid-template-columns: 35% 65%; }
    .contact-location-copy { padding-inline: 24px; }
    .tg-contact .tg-chrome-container, .tg-contact .company-footer-grid { width: calc(100% - 64px); }
    .tg-contact .tg-desktop-nav { margin-left: 25px; gap: 21px; }
    .tg-contact .company-footer-grid { gap: 30px; }
}
@media (max-width: 940px) {
    .contact-shell, .contact-message-grid, .contact-location-card { width: calc(100% - 48px); }
    .tg-contact .tg-header { height: 68px; }
    .tg-contact .tg-chrome-container { width: calc(100% - 48px); }
    .contact-hero-copy { width: 55%; }
    .tg-contact .contact-hero h1 { font-size: 35px; }
    .contact-hero-image { left: 52%; right: -24px; }
    .contact-message-grid { grid-template-columns: 1fr; gap: 26px; }
    .contact-form-panel { padding: 0; }
    .contact-form input { height: 44px; font-size: 14px; }
    .contact-form textarea { min-height: 100px; font-size: 14px; }
    .contact-form select { font-size: 14px; min-height: 58px; }
    .contact-select-field label { font-size: 12px; }
    .contact-form .contact-button { min-height: 46px; }
    .contact-reach-panel { grid-template-columns: 1.2fr 1fr; padding: 20px; gap: 28px; }
    .contact-reach-copy h2 { font-size: 28px; }
    .contact-reach-copy > p, .contact-detail address, .contact-detail p, .contact-detail a { font-size: 14px; }
    .contact-detail h3 { font-size: 19px; }
    .contact-building { min-height: 350px; max-height: 430px; }
    .contact-conversation { grid-template-columns: 50% 50%; }
    .contact-conversation > img { height: 100%; min-height: 270px; }
    .contact-conversation-copy { padding: 28px 24px; }
    .contact-conversation-copy > p:not(.contact-eyebrow) { font-size: 14px; }
    .contact-location-card { grid-template-columns: 42% 58%; }
    .contact-location-copy { padding: 22px; }
    .tg-contact .company-footer-grid { width: calc(100% - 48px); grid-template-columns: 1fr 1fr; gap: 30px 45px; }
    .tg-contact .company-footer { padding-block: 30px; }
    .tg-contact .company-footer h2 { font-size: 15px; }
    .tg-contact .company-footer nav a { font-size: 13px; padding-block: 3px; }
    .tg-contact .company-footer-brand p, .tg-contact .company-footer-contact address, .tg-contact .company-footer-contact > a { font-size: 14px; }
}
@media (max-width: 600px) {
    .contact-shell, .contact-message-grid, .contact-location-card { width: calc(100% - 40px); }
    .tg-contact .tg-header { height: 64px; }
    .tg-contact .tg-chrome-container { width: calc(100% - 40px); }
    .tg-contact .tg-logo { font-size: 24px; }
    .contact-hero-inner { display: flex; flex-direction: column; width: 100%; }
    .contact-hero-copy { width: calc(100% - 40px); padding-block: 32px 26px; }
    .tg-contact .contact-hero h1 { font-size: clamp(28px, 7.2vw, 42px); }
    .contact-hero-copy > p:last-child { font-size: 15px; }
    .contact-hero-image { position: relative; inset: auto; width: 100%; height: 230px; border-radius: 28% 0 0 0 / 55% 0 0 0; }
    .contact-hero-image img { object-position: center 40%; }
    .contact-message-section { padding-block: 30px; }
    .contact-form-intro { font-size: 14px; }
    .contact-fields { grid-template-columns: 1fr; gap: 12px; }
    .contact-form { gap: 12px; }
    .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; }
    .contact-form input { height: 48px; }
    .contact-form textarea { min-height: 125px; }
    .contact-form .contact-button { width: 100%; }
    .contact-reach-panel { grid-template-columns: 1fr; padding: 22px; gap: 22px; }
    .contact-detail { padding-block: 18px; gap: 15px; }
    .contact-building { min-height: 0; height: 280px; object-position: 50% 55%; }
    .contact-conversation { grid-template-columns: 1fr; }
    .contact-conversation > img { height: 230px; min-height: 0; mask-image: none; object-position: center; }
    .contact-conversation-copy { padding: 27px 24px 30px; }
    .contact-conversation-copy > p:not(.contact-eyebrow) { font-size: 15px; }
    .contact-location-card { grid-template-columns: 1fr; }
    .contact-location-copy { padding: 24px; }
    .contact-location-copy p:not(.contact-eyebrow) { font-size: 14px; }
    .contact-map { min-height: 180px; }
    .tg-contact .company-footer-grid { width: calc(100% - 40px); grid-template-columns: .7fr 1.3fr; gap: 28px 22px; }
    .tg-contact .company-footer-brand, .tg-contact .company-footer-contact { grid-column: 1 / -1; }
    .contact-modal { padding: 36px 22px 26px; }
    .contact-modal h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.tg-contact) { scroll-behavior: auto; }
    .tg-contact * { transition: none !important; }
}
