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

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

#property-owner-section .form-card,
#business-owner-section .form-card {
    width: 100%;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 64px rgba(5, 18, 35, 0.28), 0 4px 18px rgba(5, 18, 35, 0.14);
    backdrop-filter: blur(18px);
}

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

.native-form-slot .faster-form {
    display: grid;
    width: 100%;
    max-width: none;
    gap: 1rem;
}

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

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

.native-form-slot :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    width: 100%;
    min-height: 48px;
    padding: 0.72rem 0.9rem;
    border: 1px solid #cbd2e2;
    border-radius: 10px;
    outline: none;
    background: rgba(255, 255, 255, 0.98);
    color: #20283a;
    box-shadow: 0 1px 2px rgba(19, 33, 61, 0.04);
    font: inherit;
    font-size: 1rem;
    line-height: 1.35;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.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 4px rgba(91, 111, 230, 0.14);
}

.native-form-slot input::placeholder,
.native-form-slot textarea::placeholder {
    color: #7b8499;
    opacity: 1;
}

.native-form-slot .faster-form__field--checkbox {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.85rem;
    border: 1px solid #e2e6f0;
    border-radius: 12px;
    background: #f7f8fc;
}

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

.native-form-slot .faster-form__choice {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.72);
    color: #4b556a;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.3;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.native-form-slot .faster-form__choice:hover {
    border-color: #cbd2e2;
    background: #fff;
    color: #20283a;
}

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

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

.native-form-slot :is(.faster-form__submit, button[type="submit"]) {
    width: 100%;
    min-height: 50px;
    margin-top: 0.15rem;
    padding: 0.78rem 1.25rem;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-primary), #7184f1);
    color: #fff;
    box-shadow: 0 10px 22px rgba(91, 111, 230, 0.24);
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

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

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

.native-form-slot .faster-form__success,
.native-form-slot .faster-form__error {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 10px;
}

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

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

@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;
    }

    .native-form-slot .faster-form {
        gap: 0.9rem;
    }

    .native-form-slot .faster-form__field--checkbox {
        grid-template-columns: 1fr;
        padding: 0.75rem;
    }

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