.tetra-contact {
    --tetra-contact-orange: #f37b1f;
    --tetra-contact-red: #b02c14;
    --tetra-contact-ink: #421713;
    --tetra-contact-muted: #745c56;
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    overflow: hidden;
    width: 100%;
    max-width: 1320px;
    margin: 40px auto;
    border: 1px solid rgba(176, 44, 20, .14);
    border-radius: 8px;
    background: #fffdfa;
    box-shadow: 0 24px 64px rgba(74, 24, 17, .12);
    color: var(--tetra-contact-ink);
    font-family: "Inter", sans-serif;
}

.tetra-contact *,
.tetra-contact *::before,
.tetra-contact *::after {
    box-sizing: border-box;
}

.tetra-contact__intro {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    min-height: 620px;
    overflow: hidden;
    padding: clamp(36px, 5vw, 72px);
    color: #fff8f3;
    background:
        linear-gradient(rgba(255, 184, 133, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 184, 133, .06) 1px, transparent 1px),
        linear-gradient(145deg, #241012, #5a1a12 68%, #9f2916);
    background-size: 56px 56px, 56px 56px, auto;
}

.tetra-contact__intro::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(243, 123, 31, .28);
    border-radius: 50%;
    box-shadow: 0 0 0 45px rgba(243, 123, 31, .05), 0 0 0 90px rgba(243, 123, 31, .035);
}

.tetra-contact__eyebrow {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    color: #ffb784;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tetra-contact__intro h2 {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0 0 24px;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.05rem, 3.4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.tetra-contact__intro > p {
    position: relative;
    z-index: 1;
    max-width: 48ch;
    margin: 0;
    color: rgba(255, 239, 230, .76);
    font-size: .94rem;
    line-height: 1.75;
}

.tetra-contact__response {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 5px;
    margin-top: 38px;
    padding: 18px 0 18px 20px;
    border-left: 3px solid var(--tetra-contact-orange);
}

.tetra-contact__response strong {
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: .88rem;
}

.tetra-contact__response span {
    max-width: 40ch;
    color: rgba(255, 239, 230, .68);
    font-size: .76rem;
    line-height: 1.6;
}

.tetra-contact__form-panel {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: clamp(32px, 5vw, 68px);
    background: linear-gradient(135deg, rgba(243, 123, 31, .04), transparent 44%), #fffdfa;
}

.tetra-contact__form {
    display: grid;
    gap: 22px;
}

.tetra-contact__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.tetra-contact__field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.tetra-contact__field label {
    margin: 0;
    color: #51221d;
    font-family: "Poppins", sans-serif;
    font-size: .76rem;
    font-weight: 600;
}

.tetra-contact__field label > span {
    color: var(--tetra-contact-red);
}

.tetra-contact__field label small {
    margin-left: 5px;
    color: #957c75;
    font-family: "Inter", sans-serif;
    font-size: .69rem;
    font-weight: 400;
}

.tetra-contact__field input,
.tetra-contact__field select,
.tetra-contact__comments-editor {
    width: 100%;
    margin: 0;
    border: 1px solid #dfccc4;
    border-radius: 6px;
    outline: 0;
    background: #fff;
    color: #351411;
    font: inherit;
    font-size: .88rem;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.tetra-contact__field input,
.tetra-contact__field select {
    min-height: 50px;
    padding: 0 14px;
}

.tetra-contact__field select {
    cursor: pointer;
}

.tetra-contact__comments-editor {
    min-height: 126px;
    padding: 13px 14px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    cursor: text;
}

.tetra-contact__field input:focus,
.tetra-contact__field select:focus,
.tetra-contact__comments-editor:focus {
    border-color: var(--tetra-contact-orange);
    background: #fffdfb;
    box-shadow: 0 0 0 4px rgba(243, 123, 31, .12);
}

.tetra-contact__comments-editor:empty::before {
    content: attr(data-placeholder);
    color: #aa948e;
    pointer-events: none;
}

.tetra-contact__submit {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 52px;
    width: fit-content;
    min-width: 210px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(120deg, var(--tetra-contact-orange), var(--tetra-contact-red));
    box-shadow: 0 12px 26px rgba(176, 44, 20, .2);
    font-family: "Poppins", sans-serif;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tetra-contact__submit:hover,
.tetra-contact__submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(176, 44, 20, .26);
}

.tetra-contact__submit span:last-child {
    font-size: 1.15rem;
}

.tetra-contact__required {
    margin: -12px 0 0;
    color: #907872;
    font-size: .68rem;
}

.tetra-contact__notice {
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 6px;
    font-size: .82rem;
    line-height: 1.55;
}

.tetra-contact__notice--success {
    border-color: #9dc8aa;
    background: #eef8f1;
    color: #225e34;
}

.tetra-contact__notice--error {
    border-color: #dfa99f;
    background: #fff1ee;
    color: #852e20;
}

.tetra-contact__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 991.98px) {
    .tetra-contact {
        grid-template-columns: 1fr;
        margin: 24px auto;
    }

    .tetra-contact__intro {
        min-height: 0;
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .tetra-contact__intro h2 {
        max-width: 16ch;
    }
}

@media (max-width: 575.98px) {
    .tetra-contact {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .tetra-contact__intro,
    .tetra-contact__form-panel {
        padding-right: 20px;
        padding-left: 20px;
    }

    .tetra-contact__intro h2 {
        font-size: 2.05rem;
    }

    .tetra-contact__grid {
        grid-template-columns: 1fr;
    }

    .tetra-contact__submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tetra-contact__field input,
    .tetra-contact__field select,
    .tetra-contact__comments-editor,
    .tetra-contact__submit {
        transition: none;
    }
}

.tetra-contact-page {
    min-height: 70vh;
    padding: clamp(52px, 7vw, 100px) 0;
    background: linear-gradient(135deg, rgba(243, 123, 31, .07), transparent 42%), #f5e9e3;
}

.tetra-contact-page__shell {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 60px);
}

.tetra-contact-page .tetra-contact {
    margin-top: 0;
    margin-bottom: 0;
}

.tetra-contact-page__fallback {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px;
    border: 1px solid rgba(176, 44, 20, .14);
    border-radius: 8px;
    background: #fffdfa;
    color: #745c56;
    text-align: center;
}

.tetra-contact-page__fallback h1 {
    color: #421713;
}

.tetra-contact-fab {
    position: fixed;
    right: clamp(18px, 2.4vw, 36px);
    bottom: clamp(18px, 2.4vw, 34px);
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 7px;
    color: #fff;
    background: linear-gradient(120deg, #f37b1f, #b02c14);
    box-shadow: 0 15px 34px rgba(78, 20, 12, .3);
    font-family: "Poppins", sans-serif;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tetra-contact-fab:hover,
.tetra-contact-fab:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 19px 40px rgba(78, 20, 12, .36);
}

.tetra-contact-fab i {
    font-size: 1rem;
}

@media (max-width: 575.98px) {
    .tetra-contact-page__shell {
        padding: 0;
    }

    .tetra-contact-fab {
        right: 14px;
        bottom: 14px;
        min-height: 48px;
        padding: 0 16px;
        font-size: .74rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tetra-contact-fab {
        transition: none;
    }
}
