/*
  Ensany v2 — Contact page, NEW CONCEPT. Scoped under #v2Contact.

  Layout: lighter hero -> [form card | unified "get in touch" card
  (small embedded map + WhatsApp CTA + social icons)] -> horizontal
  scrollable strip of regional offices. Replaces the old
  form+full-height-map+separate-social-section layout — same data,
  no duplication with the footer's own social icons, and the map is
  sized to what it's actually worth showing instead of a full column.

  FUNCTIONAL SAFETY — route('contact.store'), field names (name/email/
  phone/intro_phone/subject/message), @csrf, the g-recaptcha div, and the
  social link variables ($facebook/$instagram/$whats_app/$youtube/
  $tiktok) are unchanged.
*/

#v2Contact {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #F7F4EC;
}

#v2Contact * {
    box-sizing: border-box;
}

#v2Contact a {
    text-decoration: none;
}

/* ---------- Lighter hero ---------- */
#v2Contact .v2c-hero {
    background: linear-gradient(155deg, #12332A, #1B4636);
    padding: 50px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#v2Contact .v2c-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent);
    pointer-events: none;
}

#v2Contact .v2c-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
    padding: 0 16px;
}

#v2Contact .v2c-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

#v2Contact .v2c-hero h1 {
    color: #fff;
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 800;
    margin: 0 0 8px;
}

#v2Contact .v2c-hero p {
    color: rgba(255, 255, 255, .75);
    font-size: 13.5px;
    margin: 0;
}

/* ---------- Main: form + unified touch card ---------- */
#v2Contact .v2c-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 16px 20px;
}

#v2Contact .v2c-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
}

@media (min-width: 992px) {
    #v2Contact .v2c-main-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

#v2Contact .v2c-form-card {
    background: #fff;
    border: 1px solid #EFE9D8;
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 18px 40px -28px rgba(18, 51, 42, .2);
}

#v2Contact .v2c-form-head {
    margin-bottom: 18px;
}

#v2Contact .v2c-form-head span {
    display: block;
    color: #D4A94B;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

#v2Contact .v2c-form-head h2 {
    color: #12332A;
    font-size: clamp(19px, 2.4vw, 24px);
    font-weight: 800;
    margin: 0 0 8px;
}

#v2Contact .v2c-form-head p {
    color: #5B6660;
    font-size: 13px;
    margin: 0;
}

/* FIX: these were previously scoped to the whole #v2Contact wrapper
   (#v2Contact .form-control, #v2Contact button[type="submit"], etc.) —
   but the shared v2 navbar (@include('website.v2.partials.navbar')) is
   itself nested inside #v2Contact on this page, and its own search
   form/button reuse these exact generic class names/selectors. That
   meant the navbar's search input and submit button were silently
   picking up this page's contact-form styling too, breaking the search
   box's look (empty circle instead of its real icon, wrong sizing).
   Scoping everything to .v2c-form-card specifically — the actual
   container the contact form lives in — keeps these rules from ever
   reaching the navbar again. */
#v2Contact .v2c-form-card .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -7px;
}

#v2Contact .v2c-form-card .row>[class*="col-"] {
    padding: 0 7px;
    width: 100%;
    margin-bottom: 14px;
}

@media (min-width: 768px) {
    #v2Contact .v2c-form-card .row>.col-lg-6 {
        width: 50%;
    }
}

#v2Contact .v2c-form-card .form-group {
    margin-bottom: 14px !important;
}

#v2Contact .v2c-form-card .form-group:last-child {
    margin-bottom: 0 !important;
}

#v2Contact .v2c-form-card label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #12332A;
    margin-bottom: 5px;
}

#v2Contact .v2c-form-card .form-control {
    width: 100%;
    height: auto !important;
    border: 1.5px solid #E7E1D0 !important;
    border-radius: 10px !important;
    padding: 11px 12px !important;
    font-size: 13.5px !important;
    color: #12332A !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#v2Contact .v2c-form-card .form-control:focus {
    outline: none;
    border-color: #7FB239 !important;
    box-shadow: 0 0 0 3px rgba(127, 178, 57, .15) !important;
}

#v2Contact .v2c-form-card textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

#v2Contact .v2c-form-card .form-group i.fa,
#v2Contact .v2c-form-card .form-group i.fas {
    display: none;
}

#v2Contact .v2c-form-card .text-danger {
    display: block;
    font-size: 11px;
    color: #C0392B;
    margin-top: 4px;
    font-weight: 600;
}

#v2Contact .v2c-form-card .v2-phone-input.form-control {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#v2Contact .v2c-form-card .g-recaptcha {
    margin: 4px 0 6px;
}

#v2Contact .v2c-form-card button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #7FB239, #578021) !important;
    border: none !important;
    border-radius: 9999px !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 13.5px !important;
    padding: 12px 26px !important;
    box-shadow: 0 14px 30px -14px rgba(87, 128, 33, .55);
    transition: transform .15s ease;
}

#v2Contact .v2c-form-card button[type="submit"]:hover {
    transform: translateY(-1px);
}

#v2Contact .v2c-form-card button[type="submit"] img {
    width: 14px;
    height: 14px;
}

/* Kills the blue ring on click/tap — covers three separate browser
   mechanisms that can each produce it on their own: the default focus
   outline, a focus-triggered box-shadow, and (mobile Chrome/Safari
   specifically) the translucent tap-highlight overlay, which outline:none
   alone does NOT suppress. */
#v2Contact .v2c-form-card button[type="submit"] {
    -webkit-tap-highlight-color: transparent;
}

#v2Contact .v2c-form-card button[type="submit"],
#v2Contact .v2c-form-card button[type="submit"]:focus,
#v2Contact .v2c-form-card button[type="submit"]:active,
#v2Contact .v2c-form-card button[type="submit"]:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: 0 14px 30px -14px rgba(87, 128, 33, .55) !important;
}

/* Keyboard-only focus indicator — :focus-visible is skipped by modern
   browsers on mouse/touch clicks, so this can't be the source of the
   blue ring on click; it only shows up when tabbing to the button. */
#v2Contact .v2c-form-card button[type="submit"]:focus-visible {
    outline: 2px solid #12332A !important;
    outline-offset: 2px;
    box-shadow: 0 14px 30px -14px rgba(87, 128, 33, .55), 0 0 0 2px #12332A !important;
}


/* ---------- Unified "get in touch" card ---------- */
#v2Contact .v2c-touch-card {
    background: #fff;
    border: 1px solid #EFE9D8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px -28px rgba(18, 51, 42, .2);
    display: flex;
    flex-direction: column;
}

#v2Contact .v2c-touch-map {
    aspect-ratio: 16/10;
    background: #EFE9D8;
    position: relative;
}

#v2Contact .v2c-touch-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

#v2Contact .v2c-touch-body {
    padding: 20px;
}

#v2Contact .v2c-touch-body h4 {
    font-size: 13px;
    font-weight: 800;
    color: #12332A;
    margin: 0 0 12px;
}

#v2Contact .v2c-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff !important;
    font-weight: 800;
    font-size: 13.5px;
    padding: 13px;
    border-radius: 12px;
    box-shadow: 0 12px 26px -12px rgba(18, 140, 126, .55);
    transition: transform .15s ease;
    margin-bottom: 14px;
}

#v2Contact .v2c-whatsapp-btn:hover {
    transform: translateY(-1px);
}

#v2Contact .v2c-whatsapp-btn i {
    font-size: 18px;
}

#v2Contact .v2c-touch-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px dashed #E7E1D0;
}

#v2Contact .pertner_flexio {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: #F7F4EC;
    border: 1px solid #E7E1D0;
    color: #12332A;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, transform .15s ease, border-color .2s ease, color .2s ease;
}

#v2Contact .pertner_flexio:hover {
    background: linear-gradient(135deg, #7FB239, #578021);
    border-color: transparent;
    color: #fff !important;
    transform: translateY(-2px);
}

#v2Contact .pertner_flexio i {
    font-size: 16px !important;
}

/* ---------- Regional offices — full grid (all visible, no scroll-hiding) ---------- */
#v2Contact .v2c-offices {
    max-width: 1180px;
    margin: 36px auto 20px;
    padding: 0 16px;
}

#v2Contact .v2c-offices h3 {
    font-size: 13px;
    font-weight: 800;
    color: #12332A;
    margin: 0 0 14px;
}

#v2Contact .v2c-offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

/* Vertical, centered layout — was a cramped horizontal row (icon +
   3-line text squeezed beside it); a taller card with the icon on its
   own line up top gives the name/email/phone real room instead of
   fighting the icon for width. */
#v2Contact .v2c-office-card {
    background: #fff;
    border: 1px solid #EFE9D8;
    border-radius: 18px;
    padding: 28px 22px;
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

#v2Contact .v2c-office-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -20px rgba(18, 51, 42, .3);
    border-color: #7FB239;
}

/* Restored gift icon (was <i class="ti-gift"> in the pre-v2 page),
   cycling through 4 brand-adjacent palettes by card position for a
   little visual variety instead of every card looking identical. */
#v2Contact .v2c-office-avatar {
    width: 58px;
    height: 58px;
    border-radius: 9999px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #7FB239, #578021);
}

#v2Contact .v2c-office-avatar svg {
    width: 26px;
    height: 26px;
}

#v2Contact .v2c-office-card:nth-of-type(4n+2) .v2c-office-avatar {
    background: linear-gradient(135deg, #D4A94B, #a9822f);
}

#v2Contact .v2c-office-card:nth-of-type(4n+3) .v2c-office-avatar {
    background: linear-gradient(135deg, #1B4636, #12332A);
}

#v2Contact .v2c-office-card:nth-of-type(4n+4) .v2c-office-avatar {
    background: linear-gradient(135deg, #9ED14F, #578021);
}

#v2Contact .v2c-office-name {
    font-size: 14.5px;
    font-weight: 800;
    color: #12332A;
    margin: 0 0 10px;
    line-height: 1.4;
}

#v2Contact .v2c-office-email {
    display: block;
    font-size: 12px;
    color: #5B6660;
    margin-bottom: 4px;
    word-break: break-word;
}

#v2Contact .v2c-office-phone {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #578021;
    direction: ltr;
}