/* Contact form in the original v1 homepage. */
.bb-home .bb-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: start;
    gap: clamp(24px, 4vw, 52px);
    margin-top: 32px;
    text-align: left;
}
.bb-home .bb-contact-details { min-width: 0; }
.bb-home .bb-contact-details .bb-contact-methods { margin-top: 0; }
.bb-home .bb-contact-details .bb-list-item { min-width: 0; }
.bb-home .bb-contact-details .bb-list-item span { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.bb-home .bb-contact-form {
    min-width: 0;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid rgba(112, 255, 153, .24);
    border-radius: 24px;
    background: #0b110e;
    scroll-margin-top: 100px;
}
.bb-contact-form-title { margin: 0; color: #f1f7f3; font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.bb-contact-form-lead { margin: 10px 0 0; color: #b1bdb5; font-size: 14px; line-height: 1.65; }
.bb-contact-required-note { margin: 16px 0 22px; color: #a4b2a9; font-size: 12px; }
.bb-contact-required-note > span { color: #70ff99; }
.bb-contact-field { display: grid; gap: 9px; margin-bottom: 20px; }
.bb-contact-field label { color: #e5eee8; font-size: 14px; font-weight: 600; line-height: 1.5; }
.bb-contact-field label > span:not(.bb-contact-optional) { color: #70ff99; }
.bb-contact-optional { color: #9facA3; font-size: 12px; font-weight: 400; }
.bb-contact-form :is(input[type="text"], input[type="email"], textarea) {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .19);
    border-radius: 10px;
    background: #060b08;
    color: #f1f7f3;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    transition: border-color .18s ease, background-color .18s ease;
}
.bb-contact-form textarea { min-height: 150px; resize: vertical; }
.bb-contact-form :is(input[type="text"], input[type="email"], textarea):hover { border-color: rgba(255, 255, 255, .34); }
.bb-contact-form :is(input, textarea, button, a):focus-visible { outline: 2px solid #70ff99; outline-offset: 3px; }
.bb-contact-form :is(input, textarea)[aria-invalid="true"] { border-color: #ffb3a7; }
.bb-contact-ack { margin-top: 4px; }
.bb-contact-ack label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; color: #bfcbc3; font-size: 13px; line-height: 1.75; cursor: pointer; }
.bb-contact-ack input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    border: 1px solid #647b6c;
    border-radius: 6px;
    background-color: #0c1911;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.bb-contact-ack input:checked {
    border-color: #70ff99;
    background-color: #70ff99;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8 3 3 6-6' fill='none' stroke='%230b2414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 12px rgba(112, 255, 153, .12);
}
@media (hover: hover) {
    .bb-contact-ack input:hover { border-color: #70ff99; box-shadow: 0 0 0 3px rgba(112, 255, 153, .08); }
}
.bb-contact-ack input[aria-invalid="true"] { border-color: #ffb3a7; }
@media (forced-colors: active) {
    .bb-contact-ack input { appearance: auto; -webkit-appearance: auto; background-image: none; box-shadow: none; }
}
.bb-contact-ack a { color: #d0ffdc; text-decoration: underline; text-underline-offset: 3px; }
.bb-contact-ack a:hover { color: #fff; }
.bb-contact-ack label > span > span[aria-hidden] { color: #70ff99; }
.bb-contact-data-note { margin: 12px 0 20px; color: #a4b2a9; font-size: 12px; line-height: 1.75; }
.bb-contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 13px 22px;
    border: 1px solid rgba(112, 255, 153, .55);
    border-radius: 999px;
    background: linear-gradient(180deg, #193722, #102519);
    box-shadow: inset 0 1px 0 rgba(213, 255, 224, .1);
    color: #e6ffed;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.bb-contact-submit:hover { border-color: #70ff99; box-shadow: inset 0 1px 0 rgba(213, 255, 224, .1), 0 0 18px rgba(0, 255, 68, .08); }
.bb-contact-submit:disabled { opacity: .65; cursor: wait; }
.bb-contact-field-error { display: block; color: #ffbdb0; font-size: 12px; line-height: 1.6; }
.bb-contact-field-error:empty { display: none; }
.bb-contact-form-status { margin: 0 0 22px; padding: 14px; border: 1px solid; border-radius: 10px; font-size: 14px; line-height: 1.6; }
.bb-contact-form-status.is-error { color: #ffd8d0; border-color: rgba(255, 179, 167, .5); background: rgba(255, 179, 167, .05); }
.bb-contact-form-status.is-success { color: #d5ffe0; border-color: rgba(112, 255, 153, .45); background: rgba(112, 255, 153, .05); }
.bb-contact-form [hidden] { display: none; }
.bb-contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bb-contact-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 850px) {
    .bb-home .bb-contact-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 600px) {
    .bb-home .bb-contact-form { padding: 20px 16px; border-radius: 18px; }
    .bb-contact-form-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .bb-contact-form :is(input, textarea, button) { transition: none; }
}
