.hpb-contact-form-wrap {
    --hpb-cf-accent: #0d48a2;
    --hpb-cf-border: rgba(13, 72, 162, 0.14);
    background: #fff;
    border: 1px solid var(--hpb-cf-border);
    border-radius: 18px;
    padding: clamp(20px, 3vw, 32px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.hpb-contact-form__title {
    margin: 0 0 18px;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 800;
    color: #0f172a;
}

.hpb-contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.hpb-contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hpb-contact-form__field--full {
    grid-column: 1 / -1;
}

.hpb-contact-form__label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
}

.hpb-contact-form__label em {
    color: #dc2626;
    font-style: normal;
}

.hpb-contact-form__field input[type="text"],
.hpb-contact-form__field input[type="tel"],
.hpb-contact-form__field input[type="email"],
.hpb-contact-form__field textarea,
.hpb-contact-form__field input[type="file"] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hpb-contact-form__field input:focus,
.hpb-contact-form__field textarea:focus {
    outline: none;
    border-color: var(--hpb-cf-accent);
    box-shadow: 0 0 0 3px rgba(13, 72, 162, 0.12);
}

.hpb-contact-form__hint {
    font-size: 0.78rem;
    color: #64748b;
}

.hpb-contact-form__actions {
    margin-top: 18px;
}

.hpb-contact-form__submit {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #0a3578, #0d48a2);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hpb-contact-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(13, 72, 162, 0.25);
}

.hpb-contact-form__submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.hpb-contact-form__message {
    margin-top: 12px;
    font-size: 0.9rem;
    min-height: 1.4em;
}

.hpb-contact-form__message.is-success {
    color: #15803d;
}

.hpb-contact-form__message.is-error {
    color: #dc2626;
}

.hpb-cf-message-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    white-space: pre-wrap;
}

.hpb-contact-form-wrap--compact {
    padding: 18px;
}

@media (max-width: 767px) {
    .hpb-contact-form__grid {
        grid-template-columns: 1fr;
    }
}

.contact-v2-form-section {
    padding-block: 8px;
}

.contact-v2-form-section .hpb-contact-form-wrap {
    max-width: 920px;
    margin-inline: auto;
}
