.pscf-wrap {
    --pscf-primary: #2563eb;
    --pscf-text: #111827;
    --pscf-muted: #6b7280;
    --pscf-field-bg: #ffffff;
    --pscf-border: #d1d5db;
    --pscf-radius: 10px;
    --pscf-gap: 16px;
    color: var(--pscf-text);
    width: 100%;
    max-width: 780px;
}

.pscf-wrap *,
.pscf-wrap *::before,
.pscf-wrap *::after {
    box-sizing: border-box;
}

.pscf-title {
    margin: 0 0 12px;
    color: var(--pscf-text);
}

.pscf-intro {
    margin: 0 0 18px;
    color: var(--pscf-muted);
}

.pscf-form {
    width: 100%;
}

.pscf-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--pscf-gap);
}

.pscf-field {
    min-width: 0;
}

.pscf-width-25 { flex: 1 1 calc(25% - var(--pscf-gap)); }
.pscf-width-33 { flex: 1 1 calc(33.333% - var(--pscf-gap)); }
.pscf-width-50 { flex: 1 1 calc(50% - var(--pscf-gap)); }
.pscf-width-66 { flex: 1 1 calc(66.666% - var(--pscf-gap)); }
.pscf-width-75 { flex: 1 1 calc(75% - var(--pscf-gap)); }
.pscf-width-100 { flex: 1 1 100%; }

.pscf-label,
.pscf-choice {
    display: block;
    margin: 0 0 7px;
    font-weight: 650;
    color: var(--pscf-text);
}

.pscf-required {
    color: #dc2626;
}

.pscf-field input[type="text"],
.pscf-field input[type="email"],
.pscf-field input[type="tel"],
.pscf-field input[type="url"],
.pscf-field input[type="number"],
.pscf-field input[type="date"],
.pscf-field select,
.pscf-field textarea {
    width: 100%;
    border: 1px solid var(--pscf-border);
    border-radius: var(--pscf-radius);
    background: var(--pscf-field-bg);
    color: var(--pscf-text);
    min-height: 44px;
    padding: 10px 12px;
    font: inherit;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pscf-field textarea {
    min-height: 130px;
    resize: vertical;
}

.pscf-field input:focus,
.pscf-field select:focus,
.pscf-field textarea:focus {
    outline: none;
    border-color: var(--pscf-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pscf-primary) 18%, transparent);
}

.pscf-choice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-weight: 500;
    color: var(--pscf-text);
}

.pscf-choice input {
    margin-top: 4px;
}

.pscf-choices {
    display: grid;
    gap: 8px;
}

.pscf-help {
    margin: 6px 0 0;
    color: var(--pscf-muted);
    font-size: .92em;
}

.pscf-field-error {
    min-height: 18px;
    margin-top: 5px;
    color: #b91c1c;
    font-size: .92em;
}

.pscf-field.has-error input,
.pscf-field.has-error select,
.pscf-field.has-error textarea {
    border-color: #dc2626;
}

.pscf-actions {
    margin-top: var(--pscf-gap);
}

.pscf-button-width-full .pscf-submit {
    width: 100%;
}

.pscf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: var(--pscf-radius);
    background: var(--pscf-primary);
    color: #fff;
    min-height: 46px;
    padding: 12px 20px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, opacity .15s ease;
}

.pscf-submit:hover {
    transform: translateY(-1px);
    opacity: .95;
}

.pscf-submit:disabled {
    cursor: wait;
    opacity: .75;
    transform: none;
}

.pscf-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.55);
    border-top-color: #fff;
    border-radius: 999px;
    animation: pscf-spin .8s linear infinite;
}

.pscf-form.is-submitting .pscf-spinner {
    display: inline-block;
}

.pscf-response,
.pscf-message {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: var(--pscf-radius);
    display: none;
}

.pscf-response:not(:empty),
.pscf-message {
    display: block;
}

.pscf-message-success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.pscf-message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.pscf-hp {
    position: absolute !important;
    left: -10000px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
}

.pscf-field-recaptcha {
    margin-top: var(--pscf-gap);
}

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

@media (max-width: 700px) {
    .pscf-width-25,
    .pscf-width-33,
    .pscf-width-50,
    .pscf-width-66,
    .pscf-width-75 {
        flex-basis: 100%;
    }
}
