/* ==========================================================================
   Vitalum Get In Touch widget — scoped under .vgit-scope so it renders
   identically regardless of the active theme.
   Mirrors public_html/index.html #contact section exactly:
     - container 1140px (Bootstrap .container)
     - .section vertical padding 60 / 90 / 120px at md / lg breakpoints
     - row justify-content-center gutter-vr-30px
     - col-lg-3 + col-lg-4 offset-lg-1 + col-lg-4 (=> 25% + 33.33% + 33.33% with 8.33% left offset)
     - button = .btn-grad (teal→cyan gradient, blue→cyan on hover)
   ========================================================================== */

.vgit-scope {
    background-color: #000000;
    padding: 60px 0;
    color: #ffffff;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    width: 100%;
    display: block;
}
.vgit-scope *,
.vgit-scope *::before,
.vgit-scope *::after { box-sizing: border-box; }

@media (min-width: 768px) { .vgit-scope { padding: 90px 0;  } }
@media (min-width: 992px) { .vgit-scope { padding: 120px 0; } }

.vgit-container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* ----------------------------------------------------------------
 * MOBILE FULL-BLEED — pulled off via JS at runtime (see
 * vitalum-get-in-touch.js → fullBleed()). CSS just ensures the
 * widget's Elementor wrappers CAN fill 100% of their parent —
 * the JS then measures + pulls the scope to fill the viewport.
 * ---------------------------------------------------------------- */
.elementor-widget-vitalum_get_in_touch,
.elementor-widget-vitalum_get_in_touch > .elementor-widget-container {
    width: 100%;
    max-width: 100%;
}

/* CSS-only fallback if JavaScript doesn't run — uses 100vw + calc()
 * to pull the widget to the viewport. `important` is intentionally
 * NOT used so JS-applied inline styles can override with a precise
 * per-instance measurement. */
@media (max-width: 991px) {
    .vgit-scope:not([style*="width"]) {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
}
@media (max-width: 767px) {
    .vgit-container { padding: 0 16px; }
}
@media (max-width: 480px) {
    .vgit-container { padding: 0 14px; }
}

/* -------- Row + Columns.
 * HTML uses col-lg-3 (25%) + col-lg-4 offset-lg-1 (33.33% with 8.33% offset)
 * + col-lg-4 (33.33%) = totals exactly 100%. Sub-pixel rounding at some
 * viewport widths pushes the right image onto a new row.
 *
 * Fix: give the right column `flex: 1 1 0` so it fills whatever horizontal
 * space is left after the left + middle columns are placed. This is
 * mathematically the same 33.33% at 992px+ but tolerates rounding. --------- */
.vgit-row {
    display: flex;
    flex-wrap: nowrap;                 /* keep all 3 in one row */
    row-gap: 30px;
    column-gap: 0;
    align-items: flex-start;
    justify-content: center;
}

/* Allow flex children to shrink past their intrinsic content width */
.vgit-col-left,
.vgit-col-mid,
.vgit-col-right {
    min-width: 0;
    padding: 0 15px;
}

.vgit-col-left  {
    flex: 0 0 25%;
    max-width: 25%;
}
.vgit-col-mid   {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    margin-left: 8.333%;               /* offset-lg-1 */
    align-self: stretch;
}
.vgit-col-right {
    flex: 1 1 0;                       /* fills the rest — ~33.33% */
    max-width: 33.333%;
    align-self: center;
}

/* -------- LEFT column: eyebrow + heading + list -------- */
.vgit-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #1ebf95;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.vgit-eyebrow::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 2px;
    background: #1ebf95;
}

.vgit-title {
    font-family: inherit;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 14px;
}
@media (min-width: 992px) { .vgit-title { font-size: 40px; } }

.vgit-sub {
    font-size: 16px;
    line-height: 1.75;
    color: #ffffff;
    margin: 0 0 24px;
}

.vgit-addr-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.vgit-addr-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
}
.vgit-addr-list li:last-child { margin-bottom: 0; }
.vgit-flag {
    width: 22px;
    height: 16px;
    margin-top: 3px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 2px;
}

/* -------- MIDDLE column: form -------- */
/* HTML pushes the form down with `gap-6x + gap-4x` (~180px total) so it
 * visually aligns with the address list. Configurable via the widget. */
.vgit-form-wrap { padding-top: 30px; }
.vgit-form      { padding-top: 30px; }
@media (min-width: 992px) {
    .vgit-form-wrap,
    .vgit-form { padding-top: var(--vgit-form-top, 180px); }
}

/* Field spacing — 20px between each input/textarea (matches .field-item-s2 in HTML).
 * Uses both `gap` on the flex form AND margin-bottom fallback so it's robust
 * against themes that reset one or the other. */
.vgit-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.vgit-field {
    margin: 0 !important;   /* gap handles spacing, not margin */
}

/* Contact Form 7 spacing when using shortcode mode */
.vgit-form-wrap .wpcf7-form,
.vgit-form-wrap form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.vgit-form-wrap p        { margin: 0 !important; }

.vgit-form input[type="text"],
.vgit-form input[type="email"],
.vgit-form textarea,
.vgit-form-wrap input[type="text"],
.vgit-form-wrap input[type="email"],
.vgit-form-wrap input[type="tel"],
.vgit-form-wrap input[type="url"],
.vgit-form-wrap textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    color: #ffffff;
    outline: none;
    transition: border-color .25s ease, background .25s ease;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.vgit-form input:focus,
.vgit-form textarea:focus,
.vgit-form-wrap input:focus,
.vgit-form-wrap textarea:focus {
    border-color: #1ebf95;
    background: rgba(255,255,255,0.06);
}
.vgit-form input::placeholder,
.vgit-form textarea::placeholder,
.vgit-form-wrap input::placeholder,
.vgit-form-wrap textarea::placeholder { color: rgba(255,255,255,0.5); }
.vgit-form textarea,
.vgit-form-wrap textarea { resize: vertical; min-height: 120px; }

.vgit-honey { position: absolute !important; left: -9999px !important; }

/* Button — mirrors .btn-grad exactly (teal→cyan, blue→cyan on hover). */
.vgit-btn {
    position: relative;
    display: inline-block;
    padding: 12px 30px;
    color: #ffffff;
    border: 0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    background-image: linear-gradient(to right, #3CE3B7 0%, #20A8C9 100%);
    transition: color .3s ease;
}
.vgit-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    border-radius: inherit;
    background-image: linear-gradient(to right, #2b56f5 0%, #16a1ff 100%);
    transition: opacity .5s ease;
}
.vgit-btn:hover::before,
.vgit-btn:focus::before { opacity: 1; }
.vgit-btn:hover,
.vgit-btn:focus { color: #ffffff; }

.vgit-result {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    min-height: 18px;
}

/* -------- RIGHT column: image -------- */
.vgit-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ==========================================================================
   RESPONSIVE — 4 tiers
     ≥992px  desktop  : 3 cols side-by-side, form pushed down (--vgit-form-top)
     768-991 tablet   : columns stack, generous spacing, centered
     576-767 mobile   : compact spacing, smaller type, image scales down
     ≤575    small    : ultra-tight padding, single-line inputs, smaller image
   ========================================================================== */

/* ---- Tablet & smaller: stack the row ----------------------------
 * !important on these three rules is intentional — Elementor's
 * per-widget generated CSS uses `.elementor-element-<id> .vgit-col-*`
 * selectors which win specificity over our media-query rules
 * WHENEVER an existing widget instance has column widths saved from
 * before we added desktop-only media wrappers. */
@media (max-width: 991px) {
    .vgit-scope   { padding: 60px 0; }
    .vgit-scope .vgit-row {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        row-gap: 40px !important;
    }
    .vgit-scope .vgit-col-left,
    .vgit-scope .vgit-col-mid,
    .vgit-scope .vgit-col-right {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        align-self: stretch !important;
        padding: 0 15px !important;
    }
    /* Kill the desktop form-top CSS variable on mobile */
    .vgit-scope { --vgit-form-top: 0px !important; }

    /* Kill the desktop 180px form spacer — form sits directly under text */
    .vgit-form-wrap,
    .vgit-form { padding-top: 0 !important; }

    /* Center-align the section head on stacked layouts */
    .vgit-eyebrow  { justify-content: center; }
    .vgit-title,
    .vgit-sub      { text-align: center; }

    /* Address list stays left-aligned inside its own centered column */
    .vgit-addr-list {
        max-width: 560px;
        margin: 0 auto;
    }

    /* Right decorative image — cap size + center */
    .vgit-col-right {
        display: flex;
        justify-content: center;
    }
    .vgit-img {
        max-width: 340px;
        width: 100%;
        height: auto;
    }

    .vgit-title { font-size: 32px; }
}

/* ---- Mobile: portrait phones ------------------------------------ */
@media (max-width: 767px) {
    .vgit-scope   { padding: 52px 0; }
    .vgit-container { padding: 0 20px; }
    .vgit-row     { row-gap: 32px; }

    .vgit-col-left,
    .vgit-col-mid,
    .vgit-col-right { padding: 0; }

    .vgit-title   { font-size: 28px; line-height: 1.25; }
    .vgit-sub     { font-size: 15px; line-height: 1.7; margin-bottom: 20px; }

    .vgit-eyebrow {
        font-size: 11px;
        letter-spacing: 2.5px;
        gap: 8px;
    }
    .vgit-eyebrow::before { width: 32px; }

    .vgit-addr-list li {
        font-size: 13.5px;
        line-height: 1.6;
        margin-bottom: 14px;
        gap: 10px;
    }
    .vgit-flag { width: 20px; height: 14px; }

    .vgit-field { margin-bottom: 0; }
    .vgit-form input[type="text"],
    .vgit-form input[type="email"],
    .vgit-form textarea,
    .vgit-form-wrap input[type="text"],
    .vgit-form-wrap input[type="email"],
    .vgit-form-wrap input[type="tel"],
    .vgit-form-wrap input[type="url"],
    .vgit-form-wrap textarea {
        padding: 13px 14px;
        font-size: 15px;
        border-radius: 7px;
    }
    .vgit-form textarea,
    .vgit-form-wrap textarea { min-height: 110px; }

    .vgit-btn {
        width: 100%;              /* full-width button — thumb-friendly */
        padding: 14px 20px;
        font-size: 13.5px;
        text-align: center;
        justify-content: center;
    }

    .vgit-img { max-width: 260px; }
}

/* ---- Small phones (≤575) --------------------------------------- */
@media (max-width: 575px) {
    .vgit-scope     { padding: 44px 0; }
    .vgit-container { padding: 0 16px; }
    .vgit-row       { row-gap: 28px; }

    .vgit-title     { font-size: 24px; }
    .vgit-sub       { font-size: 14.5px; margin-bottom: 18px; }
    .vgit-addr-list li { font-size: 13px; }

    .vgit-img       { max-width: 220px; }
}

/* ---- Extra-small (≤360, folding phones) ------------------------- */
@media (max-width: 360px) {
    .vgit-container { padding: 0 12px; }
    .vgit-title     { font-size: 22px; }
    .vgit-eyebrow   { font-size: 10.5px; letter-spacing: 2px; }
    .vgit-btn       { padding: 12px 16px; font-size: 13px; }
}
