.potwf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .78rem 1.15rem;
    background: var(--potwf-button-bg, #111827);
    color: var(--potwf-button-color, #fff) !important;
    border: 2px solid var(--potwf-button-bg, #111827);
    border-radius: var(--potwf-button-radius, 999px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, .12);
    text-decoration: none !important;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.potwf-button:hover,
.potwf-button:focus {
    opacity: .94;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, .16);
    text-decoration: none !important;
}

.potwf-button:focus-visible,
.potwf-submit:focus-visible,
.potwf-form input:focus-visible,
.potwf-form textarea:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .35);
    outline-offset: 2px;
}

.potwf-button--secondary {
    background: transparent;
    color: var(--potwf-button-bg, #111827) !important;
    box-shadow: none;
}

.potwf-button--link {
    background: transparent;
    color: var(--potwf-button-bg, #111827) !important;
    border-color: transparent;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
    box-shadow: none;
}

.potwf-wrap {
    width: 100%;
    max-width: 920px;
    margin: clamp(1.25rem, 3vw, 3rem) auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.potwf-wrap * {
    box-sizing: border-box;
}

.potwf-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 20px 55px rgba(15, 23, 42, .08);
}

.potwf-card__header {
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border-bottom: 1px solid rgba(148, 163, 184, .25);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, .12), transparent 38%), #fff;
}

.potwf-eyebrow {
    display: inline-flex;
    margin-bottom: .65rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, .08);
    color: #111827;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.potwf-card h2 {
    margin: 0 0 .55rem;
    color: #0f172a;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    line-height: 1.1;
}

.potwf-card p {
    margin: 0;
    color: #475569;
}

.potwf-form {
    display: grid;
    gap: 1.05rem;
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.potwf-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.potwf-field {
    display: grid;
    gap: .45rem;
}

.potwf-form label {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.35;
}

.potwf-form label span {
    color: #dc2626;
}

.potwf-form input[type="text"],
.potwf-form input[type="email"],
.potwf-form textarea {
    width: 100%;
    min-height: 48px;
    padding: .85rem .95rem;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.potwf-form input[type="text"]:focus,
.potwf-form input[type="email"]:focus,
.potwf-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
    background: #fff;
}

.potwf-form textarea {
    min-height: 128px;
    resize: vertical;
}

.potwf-legal-box {
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, .45);
    border-radius: 16px;
    background: #fff;
}

.potwf-legal-box label {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin: 0;
    font-weight: 600;
}

.potwf-legal-box input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: .15rem;
}

.potwf-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.potwf-submit {
    min-height: 50px;
    padding: .9rem 1.35rem;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    font-size: .98rem;
    line-height: 1.2;
    box-shadow: 0 14px 28px rgba(17, 24, 39, .16);
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.potwf-submit:hover,
.potwf-submit:focus {
    opacity: .94;
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(17, 24, 39, .2);
}

.potwf-note {
    color: #64748b !important;
    font-size: .9rem;
}

.potwf-notice {
    margin: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 3vw, 2.25rem) 0;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    font-weight: 600;
}

.potwf-notice--success {
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #166534;
}

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

.potwf-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.potwf-footer-button-wrap {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
}

@media (max-width: 720px) {
    .potwf-grid {
        grid-template-columns: 1fr;
    }

    .potwf-card {
        border-radius: 18px;
    }

    .potwf-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .potwf-submit,
    .potwf-actions .potwf-note {
        width: 100%;
        text-align: center;
    }

    .potwf-footer-button-wrap {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .potwf-footer-button-wrap .potwf-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .potwf-button,
    .potwf-submit,
    .potwf-form input,
    .potwf-form textarea {
        transition: none;
    }

    .potwf-button:hover,
    .potwf-button:focus,
    .potwf-submit:hover,
    .potwf-submit:focus {
        transform: none;
    }
}

.potwf-field small {
    color: #64748b;
    font-size: .88rem;
    line-height: 1.45;
}

.potwf-form input:invalid:not(:placeholder-shown),
.potwf-form textarea:invalid:not(:placeholder-shown) {
    border-color: #fca5a5;
}
