.pm-visually-hidden {
    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;
}

.pm-form label,
.pm-form legend {
    overflow-wrap: anywhere;
}

.pm-form-control {
    width: 100%;
    min-height: 44px;
    border: 1px solid #64748b !important;
    background: #fff;
    color: #0f172a;
}

.pm-form-control:focus-visible,
.pm-file-input:focus-visible,
.pm-form button:focus-visible,
.pm-form a:focus-visible,
.pm-choice-input:focus-visible + .lead-card {
    outline: 3px solid #1d4ed8 !important;
    outline-offset: 3px;
}

.pm-form-control[aria-invalid="true"],
.pm-file-input[aria-invalid="true"] {
    border-color: #b91c1c !important;
}

.pm-form-status {
    min-height: 1.5rem;
    margin-top: 0.75rem;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
}

.pm-form-status:empty {
    margin-top: 0;
    min-height: 0;
}

.pm-form-status[data-state="success"] {
    color: #15803d;
}

.pm-form-status[data-state="error"] {
    color: #b91c1c;
}

.pm-form-status[data-state="preview"] {
    color: #1e40af;
}

.pm-form button[type="submit"] {
    min-height: 44px;
}

.pm-form button[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.72;
}

.pm-privacy-note {
    color: #475569;
    font-size: 0.75rem;
    line-height: 1.55;
}

.pm-privacy-note a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pm-consent {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 0.5rem;
}

.pm-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 12px;
}

.pm-consent input[type="checkbox"]:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 3px;
}

.pm-consent label {
    min-height: 44px;
    display: block;
    padding-block: 0.375rem;
    color: #475569;
    font-size: 0.75rem;
    line-height: 1.55;
}

.pm-consent a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pm-file-control {
    border: 1px solid #64748b;
    border-radius: 0.5rem;
    padding: 1rem;
    background: #f8fafc;
}

.pm-file-input {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-top: 0.625rem;
    color: #334155;
    font-size: 0.875rem;
}

.pm-file-input::file-selector-button {
    min-height: 44px;
    margin-right: 0.75rem;
    border: 0;
    border-radius: 0.375rem;
    padding: 0.625rem 0.875rem;
    background: #1e293b;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.pm-file-hint {
    margin-top: 0.5rem;
    color: #475569;
    font-size: 0.75rem;
    line-height: 1.5;
}

.pm-file-hint[data-state="error"] {
    color: #b91c1c;
    font-weight: 600;
}

.pm-file-status:empty {
    display: none;
}

.pm-choice-input:checked + .lead-card {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 2px #60a5fa;
}

.pm-form--dark .pm-form-control {
    border-color: #94a3b8 !important;
    background: #1e293b;
    color: #fff;
}

.pm-form--dark .pm-form-control::placeholder {
    color: #cbd5e1;
}

.pm-form--dark .pm-privacy-note,
.pm-form--dark .pm-consent label,
.pm-form--dark .pm-form-status {
    color: #cbd5e1;
}

.pm-form--dark .pm-privacy-note a,
.pm-form--dark .pm-consent a {
    color: #93c5fd;
}

.pm-form--dark .pm-form-status[data-state="success"] {
    color: #86efac;
}

.pm-form--dark .pm-form-status[data-state="error"] {
    color: #fca5a5;
}

.pm-form--dark .pm-form-status[data-state="preview"] {
    color: #bfdbfe;
}

.pm-form--dark .pm-form-control:focus-visible,
.pm-form--dark button:focus-visible,
.pm-form--dark a:focus-visible,
.pm-form--dark .pm-consent input[type="checkbox"]:focus-visible,
.pm-form--dark .pm-choice-input:focus-visible + .lead-card {
    outline-color: #fff !important;
}

.pm-noscript {
    border: 1px solid #94a3b8;
    border-radius: 0.5rem;
    padding: 1rem;
    color: #334155;
    line-height: 1.6;
}

.pm-noscript a {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 39.99rem) {
    .lead-source-grid,
    .lead-email-row {
        grid-template-columns: 1fr !important;
    }

    .lead-email-row {
        display: grid !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pm-form *,
    .pm-form *::before,
    .pm-form *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
