/*
============================================================
BEGIN: RADIANZ CONTACT HUB STYLES

Purpose:
Provides a professional, responsive presentation for the
three independent RADIANZ Contact Hub forms.

RADIANZ palette:
- Dark Chocolate: #413430
- Soft Gold:       #F8E4A6
- Rich Gold:       #9A741F
- White:           #FFFFFF
- Light Gray:      #F7F5F2
============================================================
*/

.radianz-contacthub {
    box-sizing: border-box;
    max-width: 1260px;
    margin: 0 auto 48px;
    color: #413430;
}

.radianz-contacthub *,
.radianz-contacthub *::before,
.radianz-contacthub *::after {
    box-sizing: inherit;
}

.radianz-contacthub__header {
    padding: 44px 28px 36px;
    text-align: center;
    background: #413430;
    color: #ffffff;
}

.radianz-contacthub__eyebrow {
    margin: 0 0 10px;
    color: #f8e4a6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.radianz-contacthub__title {
    margin: 0;
    color: #f8e4a6;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
}

.radianz-contacthub__intro {
    max-width: 820px;
    margin: 18px auto 0;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.65;
}

.radianz-contacthub__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-right: 1px solid #d9cec7;
    border-left: 1px solid #d9cec7;
    background: #ffffff;
}

.radianz-contacthub__tab {
    min-height: 64px;
    padding: 14px 18px;
    border: 0;
    border-right: 1px solid #d9cec7;
    border-bottom: 3px solid transparent;
    background: #ffffff;
    color: #413430;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.radianz-contacthub__tab:last-child {
    border-right: 0;
}

.radianz-contacthub__tab:hover,
.radianz-contacthub__tab:focus {
    background: #f7f5f2;
    color: #413430;
}

.radianz-contacthub__tab.is-active {
    border-bottom-color: #9a741f;
    background: #f8e4a6;
    color: #413430;
}

.radianz-contacthub__panel {
    padding: 34px 38px 40px;
    border: 1px solid #d9cec7;
    border-top: 0;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(65, 52, 48, 0.08);
}

.radianz-contacthub__panel[hidden] {
    display: none !important;
}

.radianz-contacthub__panel-heading {
    max-width: 840px;
    margin: 0 auto 30px;
    text-align: center;
}

.radianz-contacthub__panel-heading h2 {
    margin: 0 0 10px;
    color: #413430;
    font-size: 30px;
    font-weight: 500;
}

.radianz-contacthub__panel-heading p {
    margin: 0;
    color: #625650;
    font-size: 16px;
    line-height: 1.6;
}

.radianz-contacthub__form {
    max-width: 1040px;
    margin: 0 auto;
}

.radianz-contacthub__fieldset {
    margin: 0 0 30px;
    padding: 0;
    border: 0;
}

.radianz-contacthub__legend {
    display: block;
    width: 100%;
    margin: 0 0 18px;
    padding: 0 0 10px;
    border-bottom: 1px solid #ded5d0;
    color: #413430;
    font-size: 19px;
    font-weight: 700;
}

.radianz-contacthub__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.radianz-contacthub__field--full {
    grid-column: 1 / -1;
}

.radianz-contacthub .field {
    margin: 0;
}

.radianz-contacthub .label {
    display: block;
    margin: 0 0 7px;
    color: #413430;
    font-weight: 600;
}

.radianz-contacthub .field.required > .label::after,
.radianz-contacthub .field.required > span.label::after {
    margin-left: 4px;
    color: #9a2e21;
    content: "*";
}

.radianz-contacthub input[type="text"],
.radianz-contacthub input[type="email"],
.radianz-contacthub input[type="tel"],
.radianz-contacthub input[type="date"],
.radianz-contacthub input[type="number"],
.radianz-contacthub select,
.radianz-contacthub textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cbbdb5;
    border-radius: 2px;
    background: #ffffff;
    color: #413430;
    font-size: 15px;
    line-height: 1.45;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.radianz-contacthub textarea {
    min-height: 118px;
    resize: vertical;
}

.radianz-contacthub input:focus,
.radianz-contacthub select:focus,
.radianz-contacthub textarea:focus {
    border-color: #9a741f;
    box-shadow: 0 0 0 2px rgba(154, 116, 31, 0.16);
    outline: 0;
}

.radianz-contacthub__radios {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 26px;
}

.radianz-contacthub__radios label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
}

.radianz-contacthub__radios input {
    margin: 0;
}

.radianz-contacthub__notice {
    margin: 4px 0 24px;
    padding: 15px 18px;
    border-left: 4px solid #9a741f;
    background: #f7f5f2;
    color: #413430;
    line-height: 1.55;
}

.radianz-contacthub__recaptcha {
    display: flex;
    justify-content: center;
    margin: 8px 0 20px;
}

.radianz-contacthub__actions {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.radianz-contacthub__actions .primary {
    float: none;
}

.radianz-contacthub__submit.action.primary {
    min-width: 310px;
    min-height: 56px;
    padding: 14px 28px;
    border: 1px solid #9a741f;
    border-radius: 3px;
    background: #f8e4a6;
    color: #413430;
    font-size: 17px;
    font-weight: 700;
    box-shadow: none;
}

.radianz-contacthub__submit.action.primary:hover,
.radianz-contacthub__submit.action.primary:focus {
    border-color: #413430;
    background: #413430;
    color: #f8e4a6;
}

.radianz-contacthub__submit.action.primary:disabled {
    border-color: #c7beb9;
    background: #e8e2de;
    color: #82766f;
    opacity: 1;
}

.radianz-contacthub__direct-contact {
    padding: 22px 24px;
    border: 1px solid #d9cec7;
    border-top: 0;
    background: #f7f5f2;
    text-align: center;
}

.radianz-contacthub__direct-contact p {
    margin: 0;
    color: #5f544e;
    font-size: 16px;
}

.radianz-contacthub__direct-contact a {
    color: #9a741f;
    font-weight: 700;
    text-decoration: none;
}

.radianz-contacthub__direct-contact a:hover,
.radianz-contacthub__direct-contact a:focus {
    color: #413430;
    text-decoration: underline;
}

.radianz-contacthub__honeypot {
    position: absolute !important;
    top: auto !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.radianz-contacthub .mage-error {
    color: #9a2e21;
    font-size: 13px;
}

.radianz-contacthub input.mage-error,
.radianz-contacthub select.mage-error,
.radianz-contacthub textarea.mage-error {
    border-color: #9a2e21;
}

@media (max-width: 768px) {
    .radianz-contacthub {
        margin-bottom: 30px;
    }

    .radianz-contacthub__header {
        padding: 34px 20px 30px;
    }

    .radianz-contacthub__tabs {
        grid-template-columns: 1fr;
    }

    .radianz-contacthub__tab {
        min-height: 54px;
        border-right: 0;
        border-bottom: 1px solid #d9cec7;
    }

    .radianz-contacthub__tab.is-active {
        border-bottom: 3px solid #9a741f;
    }

    .radianz-contacthub__panel {
        padding: 28px 20px 32px;
    }

    .radianz-contacthub__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .radianz-contacthub__field--full {
        grid-column: auto;
    }

    .radianz-contacthub__submit.action.primary {
        width: 100%;
        min-width: 0;
    }
}

/*
============================================================
END: RADIANZ CONTACT HUB STYLES
============================================================
*/

/* ==========================================================
BEGIN: RADIANZ COMPACT RAISED CONTACT HUB CARD

Purpose:
Creates a centered raised-card presentation for the middle
three-tab Contact Hub section.

The card is approximately 100px narrower on each desktop side,
overlaps the hero by 12px, and uses subtle rounded corners and
a soft shadow.

This CSS does not change form fields, validation, JavaScript,
submission routes, controllers, email templates, or SMTP.
========================================================== */


/* ----------------------------------------------------------
CARD WIDTH

Reduces the middle section by approximately 100px on each
desktop side while keeping it centered.
---------------------------------------------------------- */

.radianz-contacthub__tabs,
.radianz-contacthub__panel {
    width: calc(100% - 200px) !important;
    max-width: 1180px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    box-sizing: border-box !important;
}


/* ----------------------------------------------------------
TAB CARD HEADER

Moves the top of the card upward over the hero divider and
creates the raised upper edge.
---------------------------------------------------------- */

.radianz-contacthub__tabs {
    position: relative !important;
    z-index: 5 !important;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;

    margin-top: -12px !important;
    margin-bottom: 0 !important;

    overflow: hidden !important;

    background: #FFFFFF !important;
    border: 1px solid #E4DAD4 !important;
    border-bottom: 0 !important;
    border-radius: 10px 10px 0 0 !important;

    box-shadow:
        0 -4px 12px rgba(65, 52, 48, 0.07),
        0 8px 20px rgba(65, 52, 48, 0.10) !important;
}


/* ----------------------------------------------------------
INDIVIDUAL TABS
---------------------------------------------------------- */

.radianz-contacthub__tab {
    min-width: 0 !important;
    min-height: 68px !important;
    padding: 17px 14px !important;

    color: #413430 !important;
    background: #FFFFFF !important;

    border: 0 !important;
    border-right: 1px solid #E4DAD4 !important;
    border-radius: 0 !important;

    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-align: center !important;

    box-shadow: none !important;
    transform: none !important;
}

.radianz-contacthub__tab:last-child {
    border-right: 0 !important;
}


/* ----------------------------------------------------------
ACTIVE TAB
---------------------------------------------------------- */

.radianz-contacthub__tab.is-active,
.radianz-contacthub__tab[aria-selected="true"] {
    color: #413430 !important;
    background: #F8E4A6 !important;

    box-shadow:
        inset 0 -3px 0 #9A741F !important;
}

.radianz-contacthub__tab:hover,
.radianz-contacthub__tab:focus {
    color: #413430 !important;
    background: #F7F5F2 !important;
    transform: none !important;
}

.radianz-contacthub__tab.is-active:hover,
.radianz-contacthub__tab.is-active:focus,
.radianz-contacthub__tab[aria-selected="true"]:hover,
.radianz-contacthub__tab[aria-selected="true"]:focus {
    background: #F8E4A6 !important;
}


/* ----------------------------------------------------------
FORM CARD BODY

Joins the form panel to the tabs and completes the raised-card
appearance.
---------------------------------------------------------- */

.radianz-contacthub__panel {
    position: relative !important;
    z-index: 4 !important;

    margin-top: 0 !important;
    margin-bottom: -12px !important; /* Pull help section upward */

    padding: 38px 48px 46px !important;

    background: #FFFFFF !important;
    border: 1px solid #E4DAD4 !important;
    border-top: 0 !important;
    border-radius: 0 0 10px 10px !important;

    box-shadow:
        0 18px 38px rgba(65, 52, 48, 0.15) !important;
}


/* ----------------------------------------------------------
TABLET
---------------------------------------------------------- */

@media only screen and (max-width: 1280px) {

    .radianz-contacthub__tabs,
    .radianz-contacthub__panel {
        width: calc(100% - 80px) !important;
    }
}

@media only screen and (max-width: 900px) {

    .radianz-contacthub__tabs,
    .radianz-contacthub__panel {
        width: calc(100% - 30px) !important;
    }

    .radianz-contacthub__panel {
        padding: 32px 28px 38px !important;
    }

    .radianz-contacthub__tab {
        min-height: 64px !important;
        padding: 15px 9px !important;
        font-size: 16px !important;
    }
}


/* ----------------------------------------------------------
MOBILE
---------------------------------------------------------- */

@media only screen and (max-width: 600px) {

    .radianz-contacthub__tabs,
    .radianz-contacthub__panel {
        width: calc(100% - 20px) !important;
    }

    .radianz-contacthub__tabs {
        margin-top: -6px !important;
        border-radius: 8px 8px 0 0 !important;
    }

    .radianz-contacthub__tab {
        min-height: 58px !important;
        padding: 12px 6px !important;
        font-size: 13px !important;
    }

    .radianz-contacthub__panel {
        margin-bottom: 28px !important;
        padding: 26px 18px 32px !important;
        border-radius: 0 0 8px 8px !important;

        box-shadow:
            0 12px 26px rgba(65, 52, 48, 0.13) !important;
    }
}


/* ==========================================================
END: RADIANZ COMPACT RAISED CONTACT HUB CARD
========================================================== */


/* ============================================================
   BEGIN: RADIANZ Contact Hub Form Width and Field Size Refinement

   Purpose:
   - Preserve the current card placement and overlap
   - Narrow the live form content area by 50px on each side
   - Reduce field height and font size for a more compact layout
   ============================================================ */

/* Narrow only the inner form area, not the whole card */
.radianz-contacthub__panel-inner,
.radianz-contacthub__content-inner,
.radianz-contacthub__form-wrap,
.radianz-contacthub__form,
.radianz-contacthub__panel .fieldset,
.radianz-contacthub__panel fieldset {
    max-width: calc(100% - 100px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* More compact field sizing */
.radianz-contacthub__panel input[type="text"],
.radianz-contacthub__panel input[type="email"],
.radianz-contacthub__panel input[type="tel"],
.radianz-contacthub__panel input[type="date"],
.radianz-contacthub__panel input[type="number"],
.radianz-contacthub__panel select,
.radianz-contacthub__panel textarea {
    min-height: 44px !important;
    height: 44px !important;
    padding: 9px 12px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
}

/* Textarea should remain flexible but visually shorter */
.radianz-contacthub__panel textarea {
    height: 110px !important;
    min-height: 110px !important;
    resize: vertical !important;
}

/* Slightly tighten field spacing */
.radianz-contacthub__panel .field,
.radianz-contacthub__panel .fields,
.radianz-contacthub__panel .control {
    margin-bottom: 10px !important;
}

/* Mobile safety */
@media (max-width: 768px) {
    .radianz-contacthub__panel-inner,
    .radianz-contacthub__content-inner,
    .radianz-contacthub__form-wrap,
    .radianz-contacthub__form,
    .radianz-contacthub__panel .fieldset,
    .radianz-contacthub__panel fieldset {
        max-width: calc(100% - 32px) !important;
    }

    .radianz-contacthub__panel input[type="text"],
    .radianz-contacthub__panel input[type="email"],
    .radianz-contacthub__panel input[type="tel"],
    .radianz-contacthub__panel input[type="date"],
    .radianz-contacthub__panel input[type="number"],
    .radianz-contacthub__panel select,
    .radianz-contacthub__panel textarea {
        font-size: 14px !important;
    }
}

/* ============================================================
   END: RADIANZ Contact Hub Form Width and Field Size Refinement
   ============================================================ */

/* ==========================================================
BEGIN: RADIANZ EXACT BOTTOM HELP SPACING

Purpose:
Targets the exact Magento Page Builder inner wrapper used by
the We're Here to Help section.

Removes its configured top and bottom spacing and gives the
section a subtle 12px upward overlap.

The Contact Hub card, forms, fields, tabs, controllers, email
templates, and SMTP configuration remain unchanged.
========================================================== */


/* Exact active Page Builder wrapper for We're Here to Help. */

[data-pb-style="S03LBYN"] {
    position: relative !important;
    z-index: 6 !important;

    margin-top: -12px !important;
    margin-bottom: 0 !important;

    padding-top: 0 !important;

    border-radius: 10px 10px 0 0 !important;
    overflow: hidden !important;

    box-shadow:
        0 -8px 22px rgba(65, 52, 48, 0.13) !important;
}


/* Remove spacing from its outer Page Builder row. */

[data-content-type="row"]
> [data-pb-style="S03LBYN"] {
    margin-top: -12px !important;
    margin-bottom: 0 !important;
}


/* Mobile overlap is intentionally smaller. */

@media only screen and (max-width: 600px) {

    [data-pb-style="S03LBYN"],
    [data-content-type="row"]
    > [data-pb-style="S03LBYN"] {
        margin-top: -6px !important;
        margin-bottom: 0 !important;

        border-radius: 8px 8px 0 0 !important;
    }
}


/* ==========================================================
END: RADIANZ EXACT BOTTOM HELP SPACING
========================================================== */

