/* LocalMind native Forms presentation. The runtime owns form behavior and validation. */

#property-owner-section .form-column,
#business-owner-section .form-column {
    width: min(100%, 680px);
    max-width: 680px;
}

#property-owner-section .form-card,
#business-owner-section .form-card {
    width: 100%;
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid rgba(226, 230, 239, 0.9);
    border-radius: 18px;
    background: rgba(252, 252, 253, 0.98);
    box-shadow: 0 18px 48px rgba(5, 18, 35, 0.18);
    backdrop-filter: blur(14px);
}

#property-owner-section .form-title,
#business-owner-section .form-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    line-height: 1.15;
}

#ai_body .native-form-slot form[data-faster-form] {
    display: grid;
    width: 100%;
    max-width: none;
    gap: 0.75rem;
    color: #20283a;
}

#ai_body .native-form-slot [hidden] {
    display: none !important;
}

#ai_body .native-form-slot .faster-form__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#ai_body .native-form-slot .faster-form__field {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    flex-direction: column;
    gap: 0.35rem;
}

#ai_body .native-form-slot .faster-form__field:has([aria-invalid="true"]) {
    --field-error-color: #b42318;
}

#ai_body .native-form-slot .faster-form__label {
    display: block;
    margin: 0;
    color: #20283a;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
}

#ai_body .native-form-slot :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 0.875rem;
    border: 1px solid #d8deea;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #20283a;
    box-shadow: none;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#ai_body .native-form-slot textarea {
    height: auto;
    min-height: 108px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    resize: vertical;
}

#ai_body .native-form-slot :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):hover {
    border-color: #b8c0d0;
}

#ai_body .native-form-slot :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible {
    border-color: var(--brand-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(91, 111, 230, 0.13);
}

#ai_body .native-form-slot :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea)[aria-invalid="true"] {
    border-color: #dc6b62;
    background: #fffafa;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.09);
}

#ai_body .native-form-slot input::placeholder,
#ai_body .native-form-slot textarea::placeholder {
    color: #8b94a7;
    opacity: 1;
}

#ai_body .native-form-slot .faster-form__field--checkbox {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.65rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#ai_body .native-form-slot .faster-form__field--checkbox:has([aria-invalid="true"]) {
    padding: 0.7rem;
    border: 1px solid #f0a39d;
    border-radius: 10px;
    border-color: #f0a39d;
    background: #fff8f7;
}

#ai_body .native-form-slot .faster-form__field--checkbox .faster-form__label {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 0.1rem;
    padding: 0;
}

#ai_body .native-form-slot .faster-form__choice {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid #e7eaf1;
    border-radius: 8px;
    background: #fff;
    color: #4b556a;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.3;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

#ai_body .native-form-slot .faster-form__choice:hover {
    border-color: #cbd2df;
    background: #fafbfc;
    color: #20283a;
}

#ai_body .native-form-slot .faster-form__choice:has(input:checked) {
    border-color: rgba(91, 111, 230, 0.48);
    background: #f3f5ff;
    color: #28356f;
}

#ai_body .native-form-slot .faster-form__choice input {
    width: 17px;
    height: 17px;
    margin: 0;
    flex: 0 0 17px;
    accent-color: var(--brand-primary);
}

#ai_body .native-form-slot .faster-form__field-error {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0 !important;
    padding: 0.45rem 0.65rem;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff7f6;
    color: #a53126 !important;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

#ai_body .native-form-slot .faster-form__captcha {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0;
}

#ai_body .native-form-slot .faster-form__captcha:empty {
    display: none;
    min-height: 0;
    padding: 0;
}

#ai_body .native-form-slot :is(.faster-form__submit, button[type="submit"]) {
    display: inline-flex;
    width: 100%;
    height: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.15rem;
    padding: 0 1.25rem;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-primary), #7184f1);
    color: #fff;
    box-shadow: 0 8px 18px rgba(91, 111, 230, 0.2);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

#ai_body .native-form-slot :is(.faster-form__submit, button[type="submit"]):hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(91, 111, 230, 0.26);
}

#ai_body .native-form-slot :is(.faster-form__submit, button[type="submit"]):focus-visible {
    outline: 3px solid rgba(91, 111, 230, 0.3);
    outline-offset: 3px;
}

#ai_body .native-form-slot :is(.faster-form__submit, button[type="submit"])[aria-busy="true"] {
    cursor: wait;
    filter: saturate(0.9);
    transform: none;
}

#ai_body .native-form-slot :is(.faster-form__submit, button[type="submit"])[aria-busy="true"]::before {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    content: "";
    animation: faster-form-spin 0.75s linear infinite;
}

#ai_body .native-form-slot :is(.faster-form__submit, button[type="submit"]):disabled {
    opacity: 0.78;
    box-shadow: 0 7px 16px rgba(91, 111, 230, 0.18);
}

#ai_body .native-form-slot .faster-form__success,
#ai_body .native-form-slot .faster-form__error {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 0.7rem;
    margin: 0 !important;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.45;
    box-shadow: 0 8px 20px rgba(19, 33, 61, 0.08);
}

#ai_body .native-form-slot .faster-form__success::before,
#ai_body .native-form-slot .faster-form__error::before {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

#ai_body .native-form-slot .faster-form__success {
    border: 1px solid #a7e3c7;
    background: #ecfdf5;
    color: #176b47;
}

#ai_body .native-form-slot .faster-form__success::before {
    background: #1f9d68;
    content: "✓";
}

#ai_body .native-form-slot .faster-form__error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b42318;
}

#ai_body .native-form-slot .faster-form__error::before {
    background: #d6453a;
    content: "!";
}

@keyframes faster-form-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 620px) {
    #property-owner-section,
    #business-owner-section {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    #property-owner-section .form-card,
    #business-owner-section .form-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    #property-owner-section .form-title,
    #business-owner-section .form-title {
        margin-bottom: 1.1rem;
        font-size: 1.55rem;
    }

    #ai_body .native-form-slot form[data-faster-form] {
        gap: 0.75rem;
    }

    #ai_body .native-form-slot .faster-form__field--checkbox {
        grid-template-columns: 1fr;
        padding: 0;
    }

    #ai_body .native-form-slot .faster-form__choice {
        min-height: 44px;
    }
}
