.agbf-contact {
    --agbf-primary: #174f7a;
    --agbf-primary-dark: #103a5b;
    --agbf-accent: #2d82b7;
    --agbf-menu: #050a30;
    --agbf-text: #172636;
    --agbf-muted: #5c6b78;
    --agbf-border: #d7e0e7;
    --agbf-surface: #fff;
    --agbf-surface-soft: #f5f8fa;
    width: 100%;
    max-width: 54rem;
    color: var(--agbf-text);
    font-size: 1rem;
    line-height: 1.55;
}

.agbf-contact *,
.agbf-contact *::before,
.agbf-contact *::after {
    box-sizing: border-box;
}

.agbf-contact [hidden] {
    display: none !important;
}

.agbf-contact__card,
.agbf-contact__success {
    position: relative;
    border: 0;
    border-top: 0.25rem solid var(--agbf-menu);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.agbf-contact__card {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 0;
}

.agbf-contact__header {
    max-width: 42rem;
    margin-bottom: 2rem;
}

.agbf-contact__eyebrow {
    margin: 0 0 0.35rem;
    color: var(--agbf-primary);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.agbf-contact__header h2,
.agbf-contact__success h2,
.agbf-contact__notice h2,
.agbf-contact__notice h3 {
    margin: 0;
    color: var(--agbf-text);
    line-height: 1.2;
}

.agbf-contact__header h2,
.agbf-contact__success h2 {
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 750;
    letter-spacing: -0.025em;
}

.agbf-contact__header > p:last-child {
    margin: 0.75rem 0 0;
    color: var(--agbf-muted);
    font-size: 1.05rem;
}

.agbf-contact__form {
    display: grid;
    gap: 1.35rem;
}

.agbf-contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
}

.agbf-contact__field {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.agbf-contact__field label {
    color: var(--agbf-text);
    font-size: 0.94rem;
    font-weight: 700;
}

.agbf-contact__field label span,
.agbf-contact__privacy label > span {
    color: #b22b32;
}

.agbf-contact__field input[type="text"],
.agbf-contact__field input[type="email"],
.agbf-contact__field textarea {
    width: 100%;
    min-height: 3.15rem;
    margin: 0;
    padding: 0.78rem 0.9rem;
    border: 1px solid var(--agbf-border);
    border-radius: 0.15rem;
    outline: 0 solid transparent;
    background: var(--agbf-surface-soft);
    color: var(--agbf-text);
    font: inherit;
    line-height: 1.45;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.agbf-contact__field textarea {
    min-height: 11rem;
    resize: vertical;
}

.agbf-contact__field input:hover,
.agbf-contact__field textarea:hover {
    border-color: #aebdc9;
}

.agbf-contact__field input:focus,
.agbf-contact__field textarea:focus {
    border-color: var(--agbf-accent);
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 0.22rem rgba(45, 130, 183, 0.17);
}

.agbf-contact__privacy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid #dce6ec;
    border-radius: 0;
    background: var(--agbf-surface-soft);
}

.agbf-contact__privacy input {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0.22rem 0 0;
    accent-color: var(--agbf-primary);
}

.agbf-contact__privacy label {
    margin: 0;
    color: #3b4b58;
    font-size: 0.92rem;
    font-weight: 400;
}

.agbf-contact a {
    color: var(--agbf-primary);
    font-weight: 650;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
}

.agbf-contact a:hover {
    color: var(--agbf-primary-dark);
}

.agbf-contact__turnstile {
    min-height: 4.1rem;
}

.agbf-contact__footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.agbf-contact__required {
    margin: 0;
    color: var(--agbf-muted);
    font-size: 0.84rem;
}

.agbf-contact__submit {
    display: inline-flex;
    width: 100%;
    min-height: 3.15rem;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.35rem;
    border: 0;
    border-radius: 0.15rem;
    background: var(--agbf-menu);
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    line-height: 1.2;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.agbf-contact__submit svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.agbf-contact__submit:hover {
    background: var(--agbf-primary);
    box-shadow: none;
    color: #fff;
    transform: none;
}

.agbf-contact__submit:focus-visible {
    outline: 0.22rem solid rgba(45, 130, 183, 0.3);
    outline-offset: 0.18rem;
}

.agbf-contact__notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    margin: 0 0 1.5rem;
    padding: 1rem 1.1rem;
    border: 0;
    border-left: 0.25rem solid;
    border-radius: 0;
}

.agbf-contact__notice--error {
    border-color: #b22b32;
    background: #fff5f5;
}

.agbf-contact__notice--warning {
    border-color: #9a6b0a;
    background: #fffaf0;
}

.agbf-contact__notice-icon {
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border-radius: 50%;
    background: #b22b32;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

.agbf-contact__notice--warning .agbf-contact__notice-icon {
    background: #9a6b0a;
}

.agbf-contact__notice h2,
.agbf-contact__notice h3 {
    font-size: 1rem;
    font-weight: 750;
}

.agbf-contact__notice p {
    margin: 0.25rem 0 0;
}

.agbf-contact__notice ul {
    margin: 0.55rem 0 0;
    padding-left: 1.2rem;
}

.agbf-contact__success {
    padding: clamp(2.25rem, 7vw, 4rem) 0;
    text-align: center;
}

.agbf-contact__success-icon {
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.4rem;
    place-items: center;
    border-radius: 50%;
    background: #e6f6ed;
    color: #187743;
}

.agbf-contact__success-icon svg {
    width: 2.4rem;
    height: 2.4rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.agbf-contact__success .agbf-contact__eyebrow {
    color: #187743;
}

.agbf-contact__success > p:last-child {
    max-width: 36rem;
    margin: 0.8rem auto 0;
    color: var(--agbf-muted);
    font-size: 1.05rem;
}

.agbf-contact__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (min-width: 40rem) {
    .agbf-contact__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .agbf-contact__field--wide {
        grid-column: 1 / -1;
    }

    .agbf-contact__footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .agbf-contact__submit {
        width: auto;
    }
}

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