.pp-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.fb-form-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 20px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid transparent;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.fb-form-alert-success {
    background: linear-gradient(135deg, #ecfdf3 0%, #f6fff9 100%);
    border-color: #b7ebc6;
}

.fb-form-alert-error {
    background: linear-gradient(135deg, #fff1f2 0%, #fff8f8 100%);
    border-color: #f2b8bf;
}

.fb-form-alert-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 700;
    flex: 0 0 40px;
}

.fb-form-alert-success .fb-form-alert-icon {
    background: #1f9d55;
    color: #fff;
}

.fb-form-alert-error .fb-form-alert-icon {
    background: #d6455d;
    color: #fff;
}

.fb-form-alert-content {
    min-width: 0;
}

.fb-form-alert-eyebrow {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fb-form-alert-success .fb-form-alert-eyebrow,
.fb-form-alert-success p {
    color: #146c43;
}

.fb-form-alert-error .fb-form-alert-eyebrow,
.fb-form-alert-error p {
    color: #a61b34;
}

.fb-form-alert p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
}

.pp-form {
    border: 1px solid #d9e2ec;
    border-radius: 22px;
    padding: 2em;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.pp-form .form-row-group > div {
    margin-bottom: 0.8em;
}

.pp-form label {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: #0f172a;
    font-weight: 600;
}

.pp-form input[type="checkbox"] + label,
.pp-form .form-check-label {
    font-weight: 400;
}

.pp-form input[type="text"],
.pp-form input[type="email"],
.pp-form input[type="url"],
.pp-form input[type="tel"],
.pp-form input[type="number"],
.pp-form input[type="password"],
.pp-form select,
.pp-form textarea {
    font-size: 16px;
    line-height: 1.4;
    padding: 0.6em 0.9em;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-sizing: border-box;
    background-color: #fff;
    display: block;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pp-form input[type="text"]:focus,
.pp-form input[type="email"]:focus,
.pp-form input[type="url"]:focus,
.pp-form input[type="tel"]:focus,
.pp-form input[type="number"]:focus,
.pp-form input[type="password"]:focus,
.pp-form select:focus,
.pp-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.pp-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 0.7em center;
    background-size: 1em;
}

.pp-form .form-row {
    margin-bottom: 1.4em;
}

.pp-form button[type="submit"],
.pp-form .button {
    background: #1f2937;
    color: #fff;
    font-weight: 600;
    padding: 0.75em 1.25em;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease-in-out;
    display: inline-block;
}

.pp-form button[type="submit"]:hover,
.pp-form .button:hover {
    opacity: 1;
    background: #111827;
}

.pp-form small.form-text {
    color: #475569;
}

.fb-form-redirect-note {
    margin: 0.35rem 0 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .pp-form {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .fb-form-alert {
        padding: 16px;
        border-radius: 16px;
    }
}
