.contact-form-card {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid var(--theme-border, #29644b);
    border-radius: 24px;
    background: var(--theme-section-bg, #071310);
    color: var(--theme-on-section, #f2f9f8);
    box-shadow: 0 24px 70px #0003;
    text-align: left;
}
.contact-form-eyebrow { color: var(--green600); font: 800 .7rem/1.5 'Manrope', sans-serif; letter-spacing: .12em; margin: 0 0 .7rem; }
.contact-form-title, .contact-form-title:hover { color: inherit; font: 700 clamp(1.75rem, 3vw, 2.25rem)/1.15 'Labrada', serif; margin: 0; text-align: left; text-shadow: none; }
.contact-form-intro { color: var(--theme-on-section-muted); font-size: .9rem; line-height: 1.6; margin: .7rem 0 1.5rem; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-field, .contact-phone-fields > div { min-width: 0; }
.contact-field--wide { grid-column: 1 / -1; }
.contact-form label { display: block; color: inherit; font: 600 .78rem/1.5 'Manrope', sans-serif; margin: 0 0 .4rem; }
.contact-form .custom-form-control {
    display: block; box-sizing: border-box; width: 100%; min-width: 0;
    padding: .8rem .9rem; margin: 0; border: 1px solid var(--gray600, #5b6c6c);
    border-radius: 10px; background: var(--theme-input-bg, #010009);
    color: inherit; font: 400 1rem/1.4 'Manrope', sans-serif;
}
.contact-form .custom-form-control:focus { outline: 2px solid var(--green600); outline-offset: 2px; }
.contact-form select option { background: var(--theme-section-bg); color: var(--theme-on-section); }
.contact-form textarea { resize: vertical; min-height: 105px; }
.contact-phone-fields { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1rem; }
.contact-form .contact-submit { width: 100%; justify-content: center; border: 0; background: var(--green500); color: #010009; margin-top: 1rem; font-size: 1rem; padding: 1rem; }
/* Keep the assistant announcement from covering the form while typing. */
body:has(.contact-form:focus-within) .mirazo-chat__announcement { display: none; }
.contact-submit:disabled { opacity: .65; cursor: wait; }
.contact-form-privacy { font-size: .72rem; line-height: 1.6; color: var(--theme-on-section-muted); margin: .8rem 0 0; }
.contact-form-privacy a { color: inherit; text-decoration: underline; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form-status:not(:empty) { padding: .9rem; margin-top: 1rem; border: 1px solid currentColor; border-radius: 10px; font-size: .9rem; line-height: 1.5; }
.contact-form-status[data-state=error] { color: var(--theme-on-section); border-color: #dc6767; }
.contact-form-status[data-state=success] { color: var(--theme-on-section); border-color: var(--green600); }
.contact-form-status a { color: inherit; text-decoration: underline; }
.contact-page .hero-mirazo { min-height: auto; padding: 8rem 1rem 3rem !important; }
.contact-page #contact-page .services-content-container { min-height: auto; padding: 2rem 1rem 4rem !important; }
.contact-page #contact-page .services-header { margin-bottom: 2rem; }
.home-redesign .hero-mirazo { padding: 8rem 0 5rem; min-height: 100svh; height: auto; }
.home-redesign .hero-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.home-redesign .hero-content { padding-right: 0; order: 0; }
.home-redesign .hero-subtitle { margin-bottom: 1.5rem; }
.hero-slogan { max-width: 600px; font: 600 clamp(1.5rem, 3vw, 2.2rem)/1.4 'Manrope', sans-serif; color: var(--theme-on-section); margin: 0 0 2rem; letter-spacing: -.025em; }
.hero-contact { min-width: 0; position: relative; z-index: 3; order: 1; }
.home-redesign .hero-buttons { gap: 1rem; }
.home-redesign .hero-buttons > .button-ghost { font-size: .85rem; padding: .75rem 1.1rem; }
.home-redesign .scroll-indicator { display: none; }
@media (max-width: 1000px) {
    .home-redesign .hero-container { grid-template-columns: 1fr; max-width: 720px; gap: 2.5rem; padding: 0 1.25rem; }
    .home-redesign .hero-content, .home-redesign .hero-title, .home-redesign .hero-subtitle { text-align: left; }
}
@media (max-width: 480px) {
    .contact-form-grid, .contact-phone-fields { grid-template-columns: 1fr; }
    .contact-field--wide { grid-column: auto; }
    .home-redesign .hero-title { font-size: 3rem; }
    .home-redesign .hero-subtitle { font-size: 1.25rem; }
    .home-redesign .mirazo-chat__announcement, .contact-page .mirazo-chat__announcement { display: none; }
}
