.poa-form-wrapper {
    --poa-primary-color: #111827;
    --poa-secondary-color: #2563eb;
    --poa-bg-color: #ffffff;
    --poa-text-color: #1f2937;
    --poa-border-color: #d1d5db;
    --poa-soft-border-color: rgba(17, 24, 39, 0.1);
    --poa-muted-color: #6b7280;
    --poa-error-color: #dc2626;
    --poa-success-color: #15803d;
    --poa-font-family: inherit;
    --poa-radius: 12px;
    color: var(--poa-text-color);
    font-family: var(--poa-font-family);
    line-height: 1.5;
    width: 100%;
}

.poa-form-wrapper *,
.poa-form-wrapper *::before,
.poa-form-wrapper *::after {
    box-sizing: border-box;
}

.poa-form-wrapper [hidden] {
    display: none !important;
}

.poa-form-wrapper .poa-is-hidden {
    display: none !important;
}

.poa-form-card {
    background: var(--poa-bg-color);
    border: 1px solid var(--poa-soft-border-color);
    border-radius: max(var(--poa-radius), 6px);
    box-shadow: 0 22px 55px rgba(17, 24, 39, 0.12);
    margin: 0 auto;
    max-width: 820px;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.poa-honeypot {
    left: -9999px;
    position: absolute;
    top: auto;
}

.poa-submit-message {
    border-radius: var(--poa-radius);
    margin: 0 auto 18px;
    max-width: 820px;
    padding: 14px 16px;
    text-align: center;
}

.poa-submit-message-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--poa-success-color);
}

.poa-submit-message-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--poa-error-color);
}

.poa-form-header {
    align-items: flex-start;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.035), rgba(17, 24, 39, 0));
    border-bottom: 1px solid var(--poa-soft-border-color);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 28px 32px 22px;
}

.poa-form-kicker {
    color: var(--poa-secondary-color);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.poa-form-title {
    color: var(--poa-primary-color);
    font-size: 28px;
    line-height: 1.15;
    margin: 0;
}

.poa-progress {
    background: rgba(107, 114, 128, 0.18);
    border-radius: 999px;
    height: 8px;
    margin: 24px 32px 0;
    overflow: hidden;
}

.poa-progress-bar {
    background: var(--poa-secondary-color);
    border-radius: inherit;
    height: 100%;
    transition: width 220ms ease;
}

.poa-step-indicator {
    align-items: center;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    color: var(--poa-primary-color);
    display: inline-flex;
    font-size: 14px;
    gap: 6px;
    min-height: 38px;
    padding: 7px 13px;
    white-space: nowrap;
}

.poa-step-indicator strong {
    color: var(--poa-secondary-color);
    font-size: 15px;
}

.poa-messages {
    margin: 20px 32px 0;
}

.poa-messages:not(:empty) {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: max(calc(var(--poa-radius) / 1.5), 6px);
    color: var(--poa-error-color);
    padding: 12px 14px;
}

.poa-step {
    display: none;
}

.poa-step.is-active {
    display: block;
}

.poa-steps {
    padding: 28px 32px 0;
}

.poa-step-title {
    color: var(--poa-primary-color);
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.poa-step-description {
    color: var(--poa-muted-color);
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 24px;
}

.poa-options-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.poa-options-grid-large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.poa-option-card {
    align-items: flex-start;
    border: 1px solid var(--poa-border-color);
    border-radius: var(--poa-radius);
    cursor: pointer;
    display: flex;
    gap: 10px;
    min-height: 104px;
    padding: 16px;
    position: relative;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.poa-option-card:hover,
.poa-option-card:focus-within {
    border-color: var(--poa-secondary-color);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.14);
    transform: translateY(-1px);
}

.poa-option-card input {
    accent-color: var(--poa-secondary-color);
    flex: 0 0 auto;
    margin-top: 3px;
}

.poa-option-card span {
    color: var(--poa-primary-color);
    font-weight: 700;
    line-height: 1.35;
}

.poa-option-card.is-selected {
    background: rgba(37, 99, 235, 0.07);
    border-color: var(--poa-secondary-color);
    box-shadow: inset 0 0 0 1px var(--poa-secondary-color);
}

.poa-field {
    margin-bottom: 20px;
}

.poa-service-field-panel {
    background: rgba(17, 24, 39, 0.025);
    border: 1px solid var(--poa-soft-border-color);
    border-radius: var(--poa-radius);
    margin-bottom: 22px;
    padding: 18px;
}

.poa-service-field-panel[hidden] {
    display: none;
}

.poa-section-title {
    color: var(--poa-primary-color);
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 16px;
}

.poa-common-fields {
    margin-top: 8px;
}

.poa-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.poa-choice-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.poa-choice {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--poa-border-color);
    border-radius: max(calc(var(--poa-radius) / 1.5), 6px);
    cursor: pointer;
    display: flex;
    gap: 9px;
    padding: 10px 12px;
}

.poa-choice input {
    accent-color: var(--poa-secondary-color);
    flex: 0 0 auto;
    margin-top: 3px;
}

.poa-choice span {
    color: var(--poa-text-color);
    font-size: 14px;
    line-height: 1.35;
}

.poa-other-field {
    margin-top: 12px;
}

.poa-form-wrapper .poa-field-label,
.poa-form-wrapper label.poa-field-label,
.poa-form-wrapper legend.poa-field-label {
    color: #111827 !important;
    display: block;
    font-size: 15px;
    font-weight: 800 !important;
    line-height: 1.35;
    margin-bottom: 8px;
    opacity: 1 !important;
}

.poa-form-wrapper .poa-field-input,
.poa-form-wrapper input.poa-field-input,
.poa-form-wrapper textarea.poa-field-input,
.poa-form-wrapper select.poa-field-input {
    appearance: none;
    background: #ffffff !important;
    border: 2px solid #9ca3af !important;
    border-radius: var(--poa-radius);
    box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 0 rgba(17, 24, 39, 0.03);
    color: #111827 !important;
    display: block;
    font: inherit;
    line-height: 1.45;
    min-height: 52px;
    opacity: 1 !important;
    padding: 13px 15px;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.poa-form-wrapper select.poa-field-input {
    background-image:
        linear-gradient(45deg, transparent 50%, var(--poa-primary-color) 50%),
        linear-gradient(135deg, var(--poa-primary-color) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 14px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    padding-right: 42px;
}

.poa-form-wrapper .poa-field-input::placeholder {
    color: rgba(107, 114, 128, 0.8);
}

.poa-form-wrapper .poa-field-input:hover {
    border-color: var(--poa-secondary-color) !important;
}

.poa-form-wrapper .poa-field-input:focus {
    background: #ffffff !important;
    border-color: var(--poa-secondary-color) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16), inset 0 1px 2px rgba(17, 24, 39, 0.05);
    outline: none;
}

.poa-form-wrapper textarea.poa-field-input {
    min-height: 132px;
    resize: vertical;
}

.poa-field-error {
    color: var(--poa-error-color);
    display: block;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

.poa-field-help {
    color: var(--poa-muted-color);
    display: block;
    font-size: 13px;
    margin-top: 6px;
}

.poa-form-wrapper .poa-field.has-error .poa-field-input {
    border-color: var(--poa-error-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.poa-actions {
    align-items: center;
    border-top: 1px solid var(--poa-soft-border-color);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding: 22px 32px;
}

.poa-button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: var(--poa-radius);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    min-width: 116px;
    padding: 10px 20px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.poa-button-primary {
    background: var(--poa-secondary-color);
    color: #ffffff;
}

.poa-button-primary:hover,
.poa-button-primary:focus {
    background: var(--poa-primary-color);
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.16);
    color: #ffffff;
    transform: translateY(-1px);
}

.poa-button-secondary {
    background: #ffffff;
    border-color: var(--poa-border-color);
    color: var(--poa-primary-color);
}

.poa-button-secondary:hover,
.poa-button-secondary:focus {
    border-color: var(--poa-secondary-color);
    color: var(--poa-secondary-color);
}

@media (max-width: 860px) {
    .poa-options-grid,
    .poa-options-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .poa-form-header {
        flex-direction: column;
        gap: 16px;
        padding: 22px;
    }

    .poa-form-card {
        box-shadow: 0 16px 34px rgba(17, 24, 39, 0.1);
    }

    .poa-progress,
    .poa-messages {
        margin-left: 22px;
        margin-right: 22px;
    }

    .poa-steps {
        padding: 24px 22px 0;
    }

    .poa-options-grid,
    .poa-options-grid-large {
        grid-template-columns: 1fr;
    }

    .poa-choice-list {
        grid-template-columns: 1fr;
    }

    .poa-step-title {
        font-size: 22px;
    }

    .poa-form-title {
        font-size: 24px;
    }

    .poa-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        padding: 20px 22px 22px;
    }

    .poa-button {
        width: 100%;
    }
}
