/* Public Contact Us page/form styling. */
.pb-contact-page-shell {
    --pb-contact-bg-overlay-opacity: .72;
    --pb-contact-form-opacity: .96;
    --pb-contact-bg-image: none;
    background-image: linear-gradient(135deg, rgba(8, 18, 29, var(--pb-contact-bg-overlay-opacity)), rgba(28, 16, 34, calc(var(--pb-contact-bg-overlay-opacity) * .92))), var(--pb-contact-bg-image);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    box-sizing: border-box;
    left: 50%;
    margin: 0;
    max-width: none;
    min-height: max(760px, calc(100vh - 72px));
    overflow: hidden;
    padding: clamp(28px, 4vw, 56px) 0;
    position: relative;
    transform: translateX(-50%);
    width: 100vw;
}

.pb-contact-page-shell--no-image {
    background-image: radial-gradient(circle at 20% 20%, rgba(199, 167, 108, .22), transparent 30%), linear-gradient(135deg, #08121d 0%, #1f1228 100%);
}

.pb-contact-page-inner {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 980px;
    padding: 0 18px;
    width: 100%;
}

.pb-contact-form-card {
    background: rgba(255, 255, 255, var(--pb-contact-form-opacity));
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(2, 8, 23, .28);
    box-sizing: border-box;
    color: #0f172a;
    padding: 28px;
}

.pb-contact-form-head {
    border-bottom: 1px solid rgba(148, 163, 184, .28);
    margin-bottom: 22px;
    padding-bottom: 18px;
}

.pb-contact-form-head h2 {
    color: #0f172a;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
    margin: 4px 0 10px;
}

.pb-contact-form-head p {
    color: #475569;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 12px;
}

.pb-contact-form-head .pb-contact-form-safety-note {
    background: rgba(199, 167, 108, .15);
    border: 1px solid rgba(199, 167, 108, .35);
    border-radius: 14px;
    color: #2f2616;
    padding: 12px 14px;
}

.pb-contact-form-head a {
    color: #7c4a03;
    font-weight: 800;
}

.pb-contact-form {
    display: grid;
    gap: 15px;
}

.pb-contact-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pb-contact-form label {
    color: #0f172a;
    display: grid;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    letter-spacing: .01em;
}

.pb-contact-form label b {
    color: #a33b25;
}

.pb-contact-form input[type="text"],
.pb-contact-form input[type="email"],
.pb-contact-form input[type="url"],
.pb-contact-form select,
.pb-contact-form textarea {
    background: rgba(255, 255, 255, .94);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
    box-sizing: border-box;
    color: #111827;
    font: inherit;
    font-weight: 600;
    min-height: 44px;
    outline: none;
    padding: 11px 12px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    width: 100%;
}

.pb-contact-form textarea {
    line-height: 1.55;
    min-height: 160px;
    resize: vertical;
}

.pb-contact-form input:focus,
.pb-contact-form select:focus,
.pb-contact-form textarea:focus {
    background: #fff;
    border-color: #c7a76c;
    box-shadow: 0 0 0 4px rgba(199, 167, 108, .18);
}

.pb-contact-form-note {
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
}

.pb-contact-actions {
    border-top: 1px solid rgba(148, 163, 184, .26);
    margin-top: 6px;
    padding-top: 17px;
}

.pb-contact-actions .pb-buyers-primary-btn {
    background: #08121d;
    border: 1px solid #c7a76c;
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(8, 18, 29, .22);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .04em;
    min-height: 48px;
    padding: 0 24px;
    text-transform: uppercase;
}

.pb-contact-actions .pb-buyers-primary-btn:hover,
.pb-contact-actions .pb-buyers-primary-btn:focus {
    background: #132334;
    box-shadow: 0 16px 32px rgba(8, 18, 29, .28);
    color: #fff;
}

.pb-contact-status {
    border-radius: 14px;
    font-weight: 750;
    margin: 0 0 18px;
    padding: 12px 14px;
}

.pb-contact-status--success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #065f46;
}

.pb-contact-status--error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.pb-contact-hp {
    height: 1px !important;
    left: -9999px !important;
    opacity: 0 !important;
    position: absolute !important;
    top: auto !important;
    width: 1px !important;
}

.pb-contact-turnstile {
    margin: 3px 0 0;
}

@media (max-width: 760px) {
    .pb-contact-page-shell {
        margin: 0;
        min-height: 0;
        padding: 20px 0;
    }

    .pb-contact-form-card {
        border-radius: 18px;
        padding: 20px;
    }

    .pb-contact-form-grid {
        grid-template-columns: 1fr;
    }

    .pb-contact-actions .pb-buyers-primary-btn {
        width: 100%;
    }
}

/* Contact page full-bleed override.
   The Contact Us page is routed through the editable public-policy shell so the WordPress page can
   hold the shortcode. Remove that legal-page card/frame only when the contact form is present. */
html body.pb-buyers-legal-page .pb-public-policy-shell:has(.pb-contact-page-shell),
html body.pb-buyers-public-policy-page .pb-public-policy-shell:has(.pb-contact-page-shell) {
    background: transparent !important;
    box-sizing: border-box;
    min-height: 0 !important;
    padding: 0 !important;
}

html body.pb-buyers-legal-page .pb-public-policy-content:has(.pb-contact-page-shell),
html body.pb-buyers-public-policy-page .pb-public-policy-content:has(.pb-contact-page-shell) {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    max-width: none !important;
    overflow: visible !important;
    padding: 0 !important;
    width: 100% !important;
}

html body.pb-buyers-legal-page .pb-public-policy-content:has(.pb-contact-page-shell) > .pb-contact-page-shell,
html body.pb-buyers-public-policy-page .pb-public-policy-content:has(.pb-contact-page-shell) > .pb-contact-page-shell {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
