.wfe-wrap {
    max-width: 760px;
    margin: 0 auto;
}

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

.wfe-intro,
.wfe-privacy {
    margin-bottom: 1rem;
    color: #4b5563;
}

.wfe-form {
    display: grid;
    gap: 1rem;
}

.wfe-field {
    display: grid;
    gap: 0.35rem;
}

.wfe-field label {
    font-weight: 600;
}

.wfe-field input,
.wfe-field textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    background: #ffffff;
    color: #111827;
    font: inherit;
}

.wfe-field textarea {
    min-height: 8rem;
    resize: vertical;
}

.wfe-field input:focus,
.wfe-field textarea:focus {
    outline: 2px solid rgba(37, 99, 235, 0.25);
    border-color: #2563eb;
}

.wfe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    border: 1px solid #1d4ed8;
    border-radius: 0.375rem;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}

.wfe-button:hover,
.wfe-button:focus {
    filter: brightness(0.92);
    color: #ffffff;
}

.wfe-errors {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-left: 4px solid #b91c1c;
    background: #fef2f2;
    color: #7f1d1d;
}

.wfe-errors ul {
    margin: 0;
    padding-left: 1.2rem;
}

.wfe-success {
    padding: 1rem;
    border-left: 4px solid #15803d;
    background: #f0fdf4;
    color: #14532d;
}

.wfe-summary {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0;
}

.wfe-summary-row {
    display: grid;
    grid-template-columns: minmax(180px, 0.45fr) 1fr;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.wfe-summary dt {
    font-weight: 700;
}

.wfe-summary dd {
    margin: 0;
}

@media (max-width: 640px) {
    .wfe-summary-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

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