/* ============================================================
   Tamerx Contact Us page styles (fishing theme)
   Matches the approved mockup. Brand patterns mirror distributors.css.
   ============================================================ */
@font-face { font-family: 'Gotham'; src: url('../fonts/Gotham-Light.woff2') format('woff2');  font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../fonts/Gotham-Book.woff2') format('woff2');   font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../fonts/Gotham-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../fonts/Gotham-Bold.woff2') format('woff2');   font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gotham'; src: url('../fonts/Gotham-Black.woff2') format('woff2');  font-weight: 900; font-style: normal; font-display: swap; }

/* Full-bleed layout reset */
#maincontent { 
    padding: 0; 
    font-family: 'Gotham', sans-serif; 
    margin: 0 auto;
    /* position: relative;  */
}
#maincontent .columns { margin-bottom: 0;}
#maincontent .columns,
#maincontent .column.main { padding: 0; background: none; }
.contact-index-index .page-main { max-width: none; padding: 0; margin: 0; }

/* Dev helper (toggle when needed) */
.tx-contact * {z-index: 1;}
.bgimg {
    display: none;
    position: absolute;
    z-index: 2 !important;
    opacity: 0.5;
    left: 0;
    top: -5px;
    width: 1375px;
    height: 2063px;
    outline: solid 1px blue !important;
    background-image: url('../images/contact/contact-mockup.jpg');
    background-size: 100% auto;
    background-repeat: no-repeat;
}
.bgimg:hover {
    display: none;
}


/* ===== Shared ===== */
.tx-contact {
    --brand-green: #2ea83a;
    --brand-green-dark: #2ea83a;
    --bg-dark: #0a0a0a;
    --text-light: #ffffff;
    --text-muted: #b8b8b8;
    --text-dark: #1a1a1a;
    --text-body: #555555;
    --light-bg: #f4f4f4;
    --card-border: #e2e2e2;
    --divider: #d8d8d8;
    font-family: 'Gotham', sans-serif;
    color: var(--text-dark);
    position: relative;
}
.tx-contact .accent { color: var(--brand-green); }
.tx-contact a { text-decoration: none; }

/* ===== 1. Hero ===== */
.tx-contact-hero {
    background-color: var(--bg-dark);
    background-image: url('../images/distributors/hero-flag.jpg');
    background-repeat: no-repeat;
    background-position: right -40px top -20px;
    background-size: 98.42% 104.38%;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}
.tx-contact-breadcrumb {
    max-width: 1320px;
    margin: 0 auto;
    padding: 22px 40px 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}
.tx-contact-breadcrumb a { color: #fff; }
.tx-contact-breadcrumb .sep { margin: 0 8px; color: var(--brand-green); }
.tx-contact-breadcrumb .current { color: var(--brand-green); }

.tx-contact-hero-inner {
    width: auto;
    margin: 0;
    padding: 0;
    padding-right: 157px;
    /* max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px 0; */
    display: grid;
    grid-template-columns: 1fr 480px;
    align-items: end;
}
.tx-contact-hero-intro {
    align-self: start;
}
.tx-contact-hero-intro > * {
    padding-left: 58px;
}
.tx-contact-hero-title { 
    font-size: 64px; 
    font-weight: 600; 
    margin: 106px 0 6px; 
    line-height: 1; 
    color: #fff; 
    letter-spacing: -3px;
}
.tx-contact-hero-eyebrow {
    color: var(--brand-green);
    font-weight: 500;
    font-size: 26px;
    letter-spacing: -1.5px;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.tx-contact-hero-desc { 
    font-size: 17px; 
    line-height: 1.9; 
    max-width: 480px; 
    color: #e6e6e6; 
    margin: 0 0 38px; 
}

.tx-contact-hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.1fr;
    list-style: none;
    padding: 0;
    margin: 0 0 12px 36px;
    max-width: 688px;
}
.tx-contact-hero-feature { padding: 0 20px; position: relative; }
.tx-contact-hero-feature:not(:first-child)::before {
    content: '';
    position: absolute;
    left: -5px; 
    top: 4px; 
    bottom: 4px;
    width: 1px;
    background: rgba(255,255,255,0.18);
}
.tx-contact-hero-feature-icon { 
    width: auto; 
    height: 47px; 
    object-fit: contain; 
    margin-bottom: 14px;
    /* tint placeholder PNG toward brand green */ 
}
.tx-contact-hero-feature-title { 
    font-weight: 600; 
    font-size: 15px; 
    letter-spacing: -1.2px; 
    margin: 0 0 8px; 
    color: #fff; }
.tx-contact-hero-feature-text { 
    font-size: 15px; 
    line-height: 1.6; 
    letter-spacing: -1.4px; 
    color: var(--text-muted); 
    margin: 0;
}

.tx-contact-hero-person { position: relative; align-self: end; text-align: right; }
.tx-contact-hero-person-img { 
    display: block; 
    max-width: 100%; 
    height: 538px; 
    margin-left: auto; 
}
.tx-contact-hero-person-name {
    position: absolute;
    right: -50px;
    bottom: 62px;
    text-align: left;
    padding-left: 16px;
    border-left: 3px solid var(--brand-green);
}
.tx-contact-hero-person-name .name { font-weight: 900; font-size: 19px; margin: 0; color: #fff; letter-spacing: 0.5px; }
.tx-contact-hero-person-name .role { font-weight: 700; font-size: 13px; margin: 4px 0 0; color: var(--brand-green); letter-spacing: 1px; }

/* ===== 2. Main (form + get in touch) ===== */
.tx-contact-main { background: white; }
.tx-contact-main-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 70px 20px 80px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 60px;
}
.tx-contact-heading {
    font-size: 30px;
    font-weight: 900;
    color: var(--text-dark);
    margin: 0 0 6px;
    padding-bottom: 12px;
    position: relative;
}
.tx-contact-heading::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 64px; height: 3px;
    background: var(--brand-green);
}
.tx-contact-subtext { font-size: 15px; line-height: 1.6; color: black; margin: 18px 0 28px; }

/* Form */
.tx-contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tx-contact-field { min-width: 0; }   /* grid cell — keeps each input + its injected mage-error in its own column */
.tx-contact-input {
    width: 100%;
    background: #fff;
    border: 1px solid #cccccc !important;   /* darker theme border tone, matched on the combobox too */
    border-radius: 2px;
    padding: 14px 16px !important;
    font-size: 15px !important;
    font-family: 'Gotham', sans-serif !important;
    color: var(--text-dark);
    margin-bottom: 16px;
    box-sizing: border-box;
    height: auto !important;   /* defeat theme's fixed input height:40px so it matches the combobox */
}
.tx-contact-input::placeholder { color: black !important; }
.tx-contact-input:focus { outline: none; border-color: var(--brand-green) !important; }
.tx-contact-form-row .tx-contact-input { margin-bottom: 16px; }
.tx-contact-textarea { resize: vertical; min-height: 150px; }

/* Custom "Customer Type" dropdown — styled to match .tx-contact-input */
.tx-contact-combobox { position: relative; margin-bottom: 16px; }
/* lift above later form rows while open (defeats the .tx-contact * { z-index:1 } helper) */
.tx-contact-combobox.is-open { z-index: 50; }
.tx-contact-combobox-native {              /* visually hidden, holds the real value */
    position: absolute; opacity: 0; pointer-events: none;
    width: 1px; height: 1px; left: 0; bottom: 0;
}
.tx-contact-combobox-button {
    width: 100%;
    background: #fff !important;
    border: 1px solid #cccccc !important;
    border-radius: 2px;
    color: var(--text-dark) !important;
    padding: 14px 40px 14px 16px !important;
    text-align: left;
    font: 400 15px/1.35 'Gotham', sans-serif !important;   /* match .tx-contact-input line-height for equal height */
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    height: auto;
    box-sizing: border-box;
    position: relative;
}
.tx-contact-combobox-button:hover,
.tx-contact-combobox-button:active,
.tx-contact-combobox-button:focus {
    background: #fff !important;
    color: var(--text-dark) !important;
    border-color: var(--brand-green) !important;
    box-shadow: none !important;
    outline: none;
}
/* chevron */
.tx-contact-combobox-button::after {
    content: '';
    position: absolute;
    right: 16px; top: 50%;
    width: 8px; height: 8px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.15s ease;
    pointer-events: none;
}
.tx-contact-combobox.is-open .tx-contact-combobox-button::after {
    transform: translateY(-30%) rotate(-135deg);
}
/* invalid state mirrors the inputs (button reflects the hidden select's error) */
.tx-contact-combobox:has(.tx-contact-combobox-native.mage-error) .tx-contact-combobox-button {
    border-color: #d93636 !important;
    background-color: #fdf3f3 !important;
}
/* place message under the button (beats the generic .tx-contact-form div.mage-error margin) */
.tx-contact-form .tx-contact-combobox div.mage-error,
.tx-contact-form .tx-contact-combobox label.mage-error { margin: 6px 0 0; }
.tx-contact-combobox-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    margin: 0; padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 2px;
    z-index: 10;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.tx-contact-combobox-option {
    padding: 11px 16px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 15px;
}
.tx-contact-combobox-option:hover,
.tx-contact-combobox-option.is-selected { background: var(--brand-green); color: #fff; }
.tx-contact-submit, .tx-contact-submit:visited {
    margin-top: 6px;
    display: inline-block;
    padding: 9px 18px;
    background: var(--brand-green);
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--brand-green) !important;
    cursor: pointer;
    font-size: 14.5px;
    letter-spacing: 0.5px;
    width: auto;
    height: 40px;
    text-align: center;
    margin-top: 20px;
}
.tx-contact-submit:hover { 
    background: white;
    text-decoration: none;
    color: var(--brand-green);
 }
.tx-contact-submit .arrow { display: none; }

/* ===== Validation messages (Magento jQuery validation) ===== */
/* Invalid field: red border + faint red fill instead of pink default */
.tx-contact-form .tx-contact-input.mage-error,
.tx-contact-form .tx-contact-input.mage-error:focus {
    border-color: #d93636 !important;
    background-color: #fdf3f3;
}
/* Valid field once corrected */
.tx-contact-form .tx-contact-input.valid {
    border-color: #cfe6c2 !important;
}
/* The "This is a required field." message */
.tx-contact-form div.mage-error,
.tx-contact-form label.mage-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -8px 0 14px;          /* pull up tight under the input (input has 16px bottom margin) */
    color: #d93636;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
}
.tx-contact-form div.mage-error::before,
.tx-contact-form label.mage-error::before {
    content: '';
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d93636' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Get in touch cards */
.tx-contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
    margin-top: 18px;
}
.tx-contact-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 3px;
    padding: 24px 18px;
}
.tx-contact-card-icon { color: var(--brand-green); flex: 0 0 auto; }
.tx-contact-card-icon svg { width: 30px; height: 30px; display: block; }
.tx-contact-card-title { font-weight: 700; font-size: 14px; letter-spacing: 0.5px; margin: 2px 0 8px; color: var(--text-dark); }
.tx-contact-card-highlight { font-weight: 700; font-size: 15px; margin: 0 0 8px; color: var(--brand-green); }
.tx-contact-card-highlight a { color: var(--brand-green); }
.tx-contact-card-text { font-size: 13px; line-height: 1.5; color: var(--text-body); margin: 0; }
/* address (maps) link keeps one color in every state — defeats theme a:visited */
.tx-contact-card-text a,
.tx-contact-card-text a:visited,
.tx-contact-card-text a:hover,
.tx-contact-card-text a:active { color: var(--text-body); }

/* Social media icons — one horizontal row */
.tx-contact-card-socialmedia {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 22px;
    margin: 25px 0 0;
}
.tx-contact-card-socialmedia a { display: inline-flex; line-height: 0; }
.tx-contact-card-socialmedia img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

/* Map */
.tx-contact-map { border: 1px solid var(--card-border); border-radius: 3px; overflow: hidden; }
.tx-contact-map #map_canvas { width: 100% !important; height: 230px !important; border: 0 !important; }

/* ===== 3. Built in the USA band ===== */
.tx-contact-usa { 
    background: var(--bg-dark); 
    color: var(--text-light); 
    background-image: url('../images/contact/contact-flag-s.png');
    background-repeat: no-repeat;
    background-position-y: center;
    background-position-x: right;
}
.tx-contact-usa-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 5px 10px 5px;
    display: grid;
    grid-template-columns: 322px 1fr 260px;
    align-items: center;
    gap: 25px;
}
.tx-contact-usa-badge { text-align: center; }
.tx-contact-usa-badge img {
    width: 208px; 
    height: auto; 
    object-fit: contain;
}
.tx-contact-usa-title { font-size: 34px; font-weight: 900; margin: 0 0 16px; color: #fff; }
.tx-contact-usa-text { font-size: 15px; line-height: 1.7; color: #cfcfcf; margin: 0; max-width: 620px; }
.tx-contact-usa-photo {
    height: 200px;
    /* border-radius: 4px; */
    /* background: #1a1a1a url('../images/distributors/hero-flag.jpg') center/cover no-repeat; */
    /* TODO: replace with the facility photo asset */
}

/* ===== 4. Bottom feature bar ===== */
.tx-contact-bar { background: #fafafa; border-top: 1px solid #ececec; }
.tx-contact-bar-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.tx-contact-bar-item {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 0 37px;
    position: relative;
}
.tx-contact-bar-item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0; top: 2px; bottom: 2px;
    width: 1px;
    background: #e0e0e0;
}
.tx-contact-bar-item img { 
    width: auto; 
    height: 42px; 
    object-fit: contain; 
    flex: 0 0 auto; 
    max-width: 100%;
    max-height: 100%;
    margin-top: 10px;
}
.tx-contact-bar-item .title { 
    font-weight: 700; 
    font-size: 15px; 
    letter-spacing: -0.7px; 
    margin: 0 0 4px; 
    color: var(--text-dark); 
    margin-top: 6px;
}
.tx-contact-bar-item .text { 
    font-size: 13px; 
    line-height: 1.8; 
    color: var(--text-body); 
    margin: 0; 
    margin-top: 10px;
}

/* ===== Responsive ===== */

/* ---- Tablet and below ---- */
@media (max-width: 1024px) {
    /* Hero stacks to one column; drop the flag background and Daryl */
    .tx-contact-hero { background-image: none; }
    .tx-contact-breadcrumb { padding: 18px 24px 0; max-width: none; }
    .tx-contact-hero-inner {
        grid-template-columns: 1fr;
        padding: 0 24px 36px;
        align-items: start;
    }
    .tx-contact-hero-intro > * { padding-left: 0; }      /* drop the 58px desktop indent */
    .tx-contact-hero-title { font-size: 48px; margin-top: 36px; letter-spacing: -2px; }
    .tx-contact-hero-features { margin: 0 0 28px; max-width: none; }
    .tx-contact-hero-person { display: none; }

    /* Main: single column */
    .tx-contact-main-inner { grid-template-columns: 1fr; gap: 44px; padding: 50px 24px 60px; }

    /* USA band: stack, drop the empty photo column + side flag */
    .tx-contact-usa { background-image: none; }
    .tx-contact-usa-inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        gap: 18px;
        padding: 34px 24px;
    }
    .tx-contact-usa-text { margin: 0 auto; }
    .tx-contact-usa-photo { display: none; }

    /* Bottom bar: 2 columns; only right-column items keep a divider */
    .tx-contact-bar-inner { grid-template-columns: 1fr 1fr; gap: 30px 0; padding: 28px 24px; }
    .tx-contact-bar-item:nth-child(odd)::before { display: none; }
}

/* ---- Phone ---- */
@media (max-width: 767px) {
    .tx-contact-hero-title { font-size: 40px; margin-top: 28px; }
    .tx-contact-hero-eyebrow { font-size: 21px; }
    .tx-contact-hero-desc { font-size: 16px; line-height: 1.7; }

    /* Hero features: 2 columns; hide left-column dividers */
    .tx-contact-hero-features { grid-template-columns: 1fr 1fr; gap: 28px 0; }
    .tx-contact-hero-feature { padding: 0 16px; }
    .tx-contact-hero-feature:nth-child(odd)::before { display: none; }

    /* Form + cards stack to one column */
    .tx-contact-heading { font-size: 26px; }
    .tx-contact-form-row { grid-template-columns: 1fr; gap: 0;}
    .tx-contact-cards { grid-template-columns: 1fr; }

    .tx-contact-usa-badge img { width: 160px; }
    .tx-contact-usa-title { font-size: 26px; }

    /* Bottom bar: single column with horizontal dividers */
    .tx-contact-bar-inner { grid-template-columns: 1fr; gap: 0; }
    .tx-contact-bar-item { padding: 18px 8px; }
    .tx-contact-bar-item::before { display: none !important; }
    .tx-contact-bar-item:not(:first-child) { border-top: 1px solid #e8e8e8; }
}

/* ---- Small phone ---- */
@media (max-width: 430px) {
    .tx-contact-hero-title { font-size: 34px; letter-spacing: -1.5px; }
    .tx-contact-hero-eyebrow { font-size: 19px; }
    .tx-contact-hero-features { grid-template-columns: 1fr 1fr; gap: 26px 0; }
    .tx-contact-hero-feature { padding: 0 12px; }
    .tx-contact-hero-feature:nth-child(odd)::before { display: none; }
}

/* FOUC guard — un-hide once styles are applied */
.tx-contact { visibility: visible !important; }
