.mphs-bfc,
.mphs-bfc * {
    box-sizing: border-box;
}

.mphs-bfc {
    --mphs-blue: #06558a;
    --mphs-bright-blue: #0063A1;
    --mphs-white: #ffffff;
    --mphs-text: #1f2933;
    --mphs-muted: #52606d;
    --mphs-border: #d9e2ec;
    --mphs-soft: #f3f8fb;
    --mphs-warning: #fff8e6;
    --mphs-warning-border: #f0c36d;
    --mphs-danger: #fff1f1;
    --mphs-danger-border: #e48a8a;
    width: 100%;
    margin: 1.5rem 0;
    color: var(--mphs-text);
    font-family: inherit;
}

.mphs-bfc__inner {
    border: 1px solid var(--mphs-border);
    border-radius: 14px;
    background: var(--mphs-white);
    padding: clamp(1rem, 3vw, 1.5rem);
    box-shadow: 0 8px 24px rgba(6, 85, 138, 0.08);
}

.mphs-bfc__intro {
    margin-bottom: 1rem;
}

.mphs-bfc__title {
    margin: 0 0 0.35rem;
    color: var(--mphs-blue);
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    line-height: 1.2;
}

.mphs-bfc__text,
.mphs-bfc__notice,
.mphs-bfc__gas,
.mphs-bfc__result p {
    font-size: 1rem;
    line-height: 1.55;
}

.mphs-bfc__text {
    margin: 0;
    color: var(--mphs-muted);
}

.mphs-bfc__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: end;
    margin: 1.1rem 0;
}

.mphs-bfc__field label {
    display: block;
    margin: 0 0 0.35rem;
    color: var(--mphs-blue);
    font-weight: 700;
}

.mphs-bfc__field select,
.mphs-bfc__field input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--mphs-border);
    border-radius: 10px;
    background: var(--mphs-white);
    color: var(--mphs-text);
    font: inherit;
    padding: 0.65rem 0.8rem;
}

.mphs-bfc__field select:focus,
.mphs-bfc__field input:focus {
    outline: 3px solid rgba(0, 99, 161, 0.18);
    border-color: var(--mphs-bright-blue);
}

.mphs-bfc__submit,
.mphs-bfc__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    background: var(--mphs-blue);
    color: var(--mphs-white);
    font: inherit;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.mphs-bfc__submit:hover,
.mphs-bfc__submit:focus,
.mphs-bfc__cta:hover,
.mphs-bfc__cta:focus {
    background: var(--mphs-bright-blue);
    color: var(--mphs-white);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 99, 161, 0.22);
    text-decoration: none;
}

.mphs-bfc__notice,
.mphs-bfc__gas,
.mphs-bfc__result {
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.mphs-bfc__notice {
    background: var(--mphs-soft);
    border: 1px solid rgba(6, 85, 138, 0.18);
    color: var(--mphs-text);
    margin-bottom: 0.75rem;
}

.mphs-bfc__gas {
    background: var(--mphs-danger);
    border: 1px solid var(--mphs-danger-border);
    color: #571515;
    margin-bottom: 1rem;
}

.mphs-bfc__result {
    background: var(--mphs-soft);
    border: 1px solid rgba(6, 85, 138, 0.22);
    margin-top: 1rem;
}

.mphs-bfc__result[hidden] {
    display: none;
}

.mphs-bfc__result--warning {
    background: var(--mphs-warning);
    border-color: var(--mphs-warning-border);
}

.mphs-bfc__result--danger {
    background: var(--mphs-danger);
    border-color: var(--mphs-danger-border);
}

.mphs-bfc__result-title {
    margin: 0 0 0.5rem;
    color: var(--mphs-blue);
    font-size: 1.2rem;
    line-height: 1.3;
}

.mphs-bfc__result-code {
    display: inline-block;
    border-radius: 999px;
    background: var(--mphs-blue);
    color: var(--mphs-white);
    padding: 0.15rem 0.55rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.mphs-bfc__result p {
    margin: 0.55rem 0;
}

.mphs-bfc__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.mphs-bfc__cta--secondary {
    background: var(--mphs-bright-blue);
}

.mphs-bfc__small {
    color: var(--mphs-muted);
    font-size: 0.92rem;
}

@media (max-width: 760px) {
    .mphs-bfc__form {
        grid-template-columns: 1fr;
    }

    .mphs-bfc__submit,
    .mphs-bfc__cta {
        width: 100%;
    }
}
