.cfp-form {
    --cfp-accent: #164158;
    --cfp-accent-hover: #0f3042;
    --cfp-border: #d6dde2;
    --cfp-field-bg: #ffffff;
    --cfp-muted: #6b7280;
    --cfp-text: inherit;
    --cfp-radius: 8px;
    --cfp-focus: rgba(22, 65, 88, 0.18);
    display: grid;
    box-sizing: border-box;
    width: min(100%, 720px);
    max-width: 100%;
    gap: 18px;
    margin-inline: auto;
    color: var(--cfp-text);
    text-align: left;
}

.cfp-form-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    clear: both;
    box-sizing: border-box;
}

.cfp-description {
    margin: 0 0 2px;
    color: var(--cfp-muted);
    line-height: 1.6;
    text-align: left;
}

.cfp-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.cfp-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
}

.cfp-required {
    color: #b42318;
}

.cfp-form input[type="text"],
.cfp-form input[type="email"],
.cfp-form input[type="tel"],
.cfp-form input[type="number"],
.cfp-form input[type="date"],
.cfp-form textarea,
.cfp-form select {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid var(--cfp-border);
    border-radius: var(--cfp-radius);
    background: var(--cfp-field-bg);
    color: inherit;
    font: inherit;
    line-height: 1.4;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.cfp-form input:focus,
.cfp-form textarea:focus,
.cfp-form select:focus {
    outline: 0;
    border-color: var(--cfp-accent);
    box-shadow: 0 0 0 3px var(--cfp-focus);
}

.cfp-form textarea {
    min-height: 126px;
    resize: vertical;
}

.cfp-choice-group {
    display: grid;
    gap: 8px;
}

.cfp-choice-group label,
.cfp-single-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: inherit;
    line-height: 1.45;
    text-align: left;
}

.cfp-choice-group input,
.cfp-single-checkbox input {
    margin-top: 4px;
}

.cfp-submit {
    justify-self: center;
    min-width: min(220px, 100%);
    min-height: 48px;
    padding: 12px 28px;
    border: 0;
    border-radius: 999px;
    background: var(--cfp-accent);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cfp-submit:hover,
.cfp-submit:focus {
    background: var(--cfp-accent-hover);
    box-shadow: 0 8px 18px rgba(15, 48, 66, 0.18);
    transform: translateY(-1px);
}

.cfp-message {
    padding: 12px 14px;
    border-radius: var(--cfp-radius);
    text-align: left;
}

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

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

@media (max-width: 640px) {
    .cfp-form {
        width: 100%;
        gap: 15px;
    }

    .cfp-form input[type="text"],
    .cfp-form input[type="email"],
    .cfp-form input[type="tel"],
    .cfp-form input[type="number"],
    .cfp-form input[type="date"],
    .cfp-form textarea,
    .cfp-form select {
        min-height: 46px;
        padding: 10px 12px;
    }

    .cfp-submit {
        width: 100%;
        min-width: 0;
    }
}
