/* ========================================
   ALPHA TECH - CUSTOM STYLES & FIXES
   All custom improvements in one file
   ======================================== */

/* ===================================
   0. DESIGN TOKENS
   =================================== */

/* Brand palette is navy (#002b54) + gold (#beb201). The theme shipped a
   mismatched --color-primary-rgb (orange 253,100,66) which leaked into
   submenu-hover tints. Align it with the gold primary so every
   rgba(var(--color-primary-rgb)) accent is on-brand. */
:root {
    --color-primary-rgb: 190, 178, 1;
}

/* ===================================
   1. GLOBAL FIXES
   =================================== */

/* Prevent horizontal scroll on all devices.
   NOTE: use overflow-x: clip (not hidden). `hidden` forces overflow-y to
   `auto`, turning these ancestors into scroll containers, which silently
   breaks `position: sticky` on descendants (e.g. the Solutions stack cards).
   `clip` prevents horizontal scroll WITHOUT creating a scroll container, so
   sticky keeps working. overflow-y stays visible. */
html, body {
    overflow-x: clip !important;
    overflow-y: visible !important;
    max-width: 100vw !important;
}

.body_wrap {
    overflow-x: clip !important;
    max-width: 100vw !important;
}

section {
    overflow-x: clip !important;
    max-width: 100% !important;
}

* {
    box-sizing: border-box !important;
}

/* ===================================
   2. BANNER/HERO SECTION FIXES
   =================================== */

/* Fix foreground (blue overlay) - start off-screen */
#foreground {
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 1s ease-in-out;
}

/* Ensure carousel images load properly */
.carousel-item img {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.carousel-item {
    opacity: 1 !important;
    visibility: visible !important;
}

#carousellABM .carousel-item:first-child {
    display: block !important;
}

/* Banner text container */
#box-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.paph-wrapper,
.paph-wrapper1,
.paph-wrapper2 {
    position: absolute;
    max-width: 100%;
    width: 100%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    padding: 0 50px;
}

#text {
    z-index: 1;
    position: relative;
    padding: 0;
    width: 100%;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#text h2 {
    font-weight: 600;
    font-size: 58px;
    line-height: 1.3;
    color: var(--color-white);
    text-transform: uppercase;
    max-width: 1200px;
    margin: 0 auto 1rem;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

#text p {
    color: #fff;
    font-size: 16px;
    margin: 1rem auto;
    max-width: 800px;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    display: block;
}

/* Mobile Banner Responsive */
@media (max-width: 991px) {
    .hero-style-three {
        min-height: 400px !important;
        height: 400px !important;
    }

    .carousel-item {
        height: 400px !important;
    }

    .carousel-item img {
        height: 400px !important;
    }

    /* Theme sets #content-wrapper to 100vh with no mobile override, which
       pushed the vertically-centered banner text below the shorter hero
       image. Match it to the hero height so the text stays centered/visible. */
    #content-wrapper {
        height: 400px !important;
        padding: 20px !important;
    }

    #box-container {
        padding: 20px;
    }

    .paph-wrapper,
    .paph-wrapper1,
    .paph-wrapper2 {
        padding: 0 30px !important;
        max-width: 100% !important;
    }

    #text h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    #text p {
        font-size: 14px !important;
        margin: 10px auto !important;
    }

    .path,
    .small-path {
        display: none !important;
    }

    /* Hide button on mobile banner */
    .paph-wrapper .header-btn,
    .paph-wrapper1 .header-btn,
    .paph-wrapper2 .header-btn {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hero-style-three {
        min-height: 350px !important;
        height: 350px !important;
    }

    .carousel-item {
        height: 350px !important;
    }

    .carousel-item img {
        height: 350px !important;
    }

    #content-wrapper {
        height: 350px !important;
    }

    .paph-wrapper,
    .paph-wrapper1,
    .paph-wrapper2 {
        padding: 0 20px !important;
    }

    #text h2 {
        font-size: 22px !important;
    }

    #text p {
        font-size: 13px !important;
    }
}

@media (max-width: 575px) {
    .hero-style-three {
        min-height: 300px !important;
        height: 300px !important;
    }

    .carousel-item {
        height: 300px !important;
    }

    .carousel-item img {
        height: 300px !important;
    }

    #content-wrapper {
        height: 300px !important;
    }

    .paph-wrapper,
    .paph-wrapper1,
    .paph-wrapper2 {
        padding: 0 15px !important;
    }

    #text h2 {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    #text p {
        font-size: 12px !important;
    }
}

/* ===================================
   3. PRELOADER/LOADER FIXES
   =================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-circle {
    width: 100px;
    height: 100px;
    position: relative;
}

/* Mobile loader fixes */
@media (max-width: 767px) {
    .loader-circle {
        width: 80px !important;
        height: 80px !important;
    }

    /* Keep the logo box filling the circle (main.css sets left/right:0,
       height:100vh) and only scale the background image down so the whole
       logo stays visible and centered instead of being clipped. */
    .preloader .loader-logo {
        background-size: 50px !important;
    }
}

@media (max-width: 575px) {
    .loader-circle {
        width: 60px !important;
        height: 60px !important;
    }

    .preloader .loader-logo {
        background-size: 38px !important;
    }
}

/* ===================================
   4. BUTTON FIXES
   =================================== */

.thm-btn {
    border-radius: 6px !important;
    -webkit-border-radius: 6px !important;
    -moz-border-radius: 6px !important;
    -ms-border-radius: 6px !important;
    -o-border-radius: 6px !important;
}

.thm-btn--border,
.thm-btn--black {
    border-radius: 6px !important;
}

.thm-btn .btn_icon {
    border-radius: 0 6px 6px 0 !important;
}

@media (max-width: 767px) {
    .thm-btn {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
}

/* ===================================
   5. FOOTER FIXES
   =================================== */

/* Footer text case */
.footer-widget .xb-item--title {
    text-transform: capitalize !important;
}

.footer-links li a {
    text-transform: none !important;
}

.xb-copyright p {
    text-transform: capitalize !important;
}

/* Footer responsive */
.footer-wrap {
    display: flex;
    align-items: flex-start;
}

.footer-line {
    width: 1px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 20px;
}

@media (max-width: 991px) {
    .footer-wrap {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .footer-widget--two {
        width: 100% !important;
        margin-top: 40px !important;
        padding-left: 0 !important;
    }

    .footer-widget--two:first-child {
        margin-top: 20px !important;
    }

    .footer-line {
        display: none !important;
    }

    .footer-widget .xb-item--title {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }

    .footer-links li {
        margin-bottom: 12px !important;
    }

    .footer-links li a {
        font-size: 15px !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
    }

    .xb-copyright p {
        font-size: 13px !important;
    }
}

@media (max-width: 575px) {
    .footer-widget--two {
        margin-top: 25px !important;
    }

    .footer-widget .xb-item--title {
        font-size: 15px !important;
    }

    .footer-links li a {
        font-size: 13px !important;
    }

    .xb-copyright p {
        font-size: 12px !important;
    }
}

/* ===================================
   6. FUNFACT SECTION (Stats)
   =================================== */

.funfact-inner {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.funfact-item {
    position: relative;
    flex: 1;
    text-align: center;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    padding: 30px 15px;
}

.funfact-item .xb-item--number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.funfact-item .xb-item--title {
    /* Reset the theme's absolute positioning (main.css) so the label flows
       below the number inside the card instead of overflowing off-screen. */
    position: static;
    transform: none;
    font-size: 16px;
    line-height: 1.4;
    margin: 10px 0 0;
    padding: 0 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.funfact-item .xb-item--title span {
    display: block;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 991px) {
    .funfact-inner {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .funfact-item {
        width: 100% !important;
        flex: none !important;
        padding: 25px 15px !important;
        text-align: center !important;
    }

    .funfact-item .xb-item--number {
        font-size: 42px !important;
    }

    .funfact-item .xb-item--title {
        font-size: 15px !important;
        margin-top: 10px !important;
        padding: 0 15px !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 767px) {
    .funfact-item {
        padding: 20px 10px !important;
    }

    .funfact-item .xb-item--number {
        font-size: 36px !important;
    }

    .funfact-item .xb-item--title {
        font-size: 14px !important;
        padding: 0 10px !important;
    }
}

@media (max-width: 575px) {
    .funfact-item {
        padding: 18px 8px !important;
    }

    .funfact-item .xb-item--number {
        font-size: 32px !important;
    }

    .funfact-item .xb-item--title {
        font-size: 13px !important;
        padding: 0 8px !important;
        line-height: 1.4 !important;
    }
}

/* ===================================
   7. SOLUTIONS BRAND IMAGES
   =================================== */

.brand-marquee {
    display: flex;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.brand-marquee::-webkit-scrollbar {
    height: 6px;
}

.brand-marquee::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.brand-marquee::-webkit-scrollbar-thumb {
    background: rgba(190, 178, 1, 0.4);
    border-radius: 3px;
}

.brand-single {
    flex-shrink: 0;
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.brand-single:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand-single a img {
    width: 120px !important;
    height: auto !important;
    object-fit: contain !important;
    max-height: 60px;
}

@media (max-width: 991px) {
    .solutions-logos {
        padding: 20px 15px !important;
    }

    .solutions-logos .heading h2 {
        font-size: 20px !important;
    }

    .solutions-logos .heading p {
        font-size: 14px !important;
    }

    .brand-marquee {
        gap: 15px !important;
    }

    .brand-single {
        min-width: 100px;
    }

    .brand-single a img {
        width: 90px !important;
        max-height: 50px !important;
    }
}

@media (max-width: 575px) {
    .solutions-logos .heading h2 {
        font-size: 16px !important;
    }

    .solutions-logos .heading p {
        font-size: 12px !important;
    }

    .brand-single {
        min-width: 70px;
    }

    .brand-single a img {
        width: 65px !important;
        max-height: 40px !important;
    }
}

/* ===================================
   8. FORM IMPROVEMENTS
   =================================== */

.vendor-form {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.vendor-form .sec-title h4 {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-primary);
}

.vendor-form .widget-form {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #e0e6ed;
}

.vendor-form .xb-item--field label {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.vendor-form .xb-item--field input,
.vendor-form .xb-item--field textarea,
.vendor-form .xb-item--field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vendor-form .xb-item--field input:focus,
.vendor-form .xb-item--field textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(190, 178, 1, 0.18);
}

.vendor-form .radio-input .label {
    padding: 14px 28px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vendor-form .radio-input .label:has(input:checked) {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.vendor-form .radio-input .label:has(input:checked) .text {
    color: #ffffff;
    font-weight: 700;
}

.vendor-form .btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vendor-form .btn-primary:hover {
    background: var(--color-black);
    transform: translateY(-2px);
}

.vendor-form button[type="submit"] {
    background: var(--color-primary);
    color: #ffffff;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.vendor-form button[type="submit"]:hover {
    background: var(--color-black);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .vendor-form .widget-form {
        padding: 20px;
    }

    .vendor-form button[type="submit"] {
        width: 100%;
    }
}

/* ===================================
   9. GENERAL MOBILE RESPONSIVE
   =================================== */

@media (max-width: 991px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    [class*="col-"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Disable heavy animations on mobile */
    .fade-up,
    .wow {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Section spacing */
    section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* Typography */
    h1 {
        font-size: 32px !important;
    }

    h2 {
        font-size: 28px !important;
    }

    h3 {
        font-size: 22px !important;
    }

    p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    h1 {
        font-size: 24px !important;
    }

    h2 {
        font-size: 20px !important;
    }

    h3 {
        font-size: 18px !important;
    }

    /* Text wrapping */
    h1, h2, h3, h4, h5, h6, p {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }
}

/* ===================================
   10. ABOUT SECTION
   =================================== */

/* Fix About/Why Choose Us section */
.about {
    overflow: hidden;
}

.about .row {
    margin-left: -15px;
    margin-right: -15px;
}

/* The about/why text is stored as multiple <p> tags but the theme renders
   them with margin: 0, so they run together with no gap. Restore paragraph
   spacing (the empty .fade-up wrapper <p> and trailing empty <p> stay flush). */
.xb-about-inner p {
    margin-bottom: 18px;
}

.xb-about-inner p.fade-up,
.xb-about-inner p:last-child {
    margin-bottom: 0;
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

.service-image {
    position: relative;
}

.about-shape-icon {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.about-shape-icon .shape {
    position: absolute;
}

.about-shape-icon .shape--1 {
    top: -50px;
    right: -50px;
    max-width: 150px;
}

.about-shape-icon .shape--1 img {
    width: 100%;
    height: auto;
}

/* Desktop - Normal order */
@media (min-width: 992px) {
    .about .row {
        display: flex;
        align-items: center;
    }

    .about-image {
        max-width: 100%;
        /* overflow must stay visible so the decorative dot shape
           (positioned just outside the image) isn't clipped */
        overflow: visible;
    }

    .about-image img {
        width: 100%;
        object-fit: cover;
    }
}

/* Mobile responsive */
@media (max-width: 991px) {
    .about {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
        overflow: hidden !important;
    }

    .about .container {
        max-width: 100%;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .about .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: block !important;
    }

    /* First About Section (Who We Are) - Image first on desktop, content first on mobile */
    .about:first-of-type .row .col-lg-6:first-child {
        order: 2;
    }

    .about:first-of-type .row .col-lg-6:last-child {
        order: 1;
    }

    /* Second About Section (Why Choose Us) - Content first on desktop, content first on mobile */
    .about:nth-of-type(2) .row .col-lg-6 {
        order: initial;
    }

    .about .col-lg-6 {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 30px;
    }

    .about-image {
        margin-bottom: 30px;
        margin-top: 0;
        text-align: center;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .about-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }

    .about-shape-icon {
        display: none !important;
    }

    .sec-title {
        text-align: left;
        padding-right: 0 !important;
        margin-bottom: 20px !important;
    }

    .sec-title .title {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    .sec-title .sub-title {
        font-size: 14px !important;
        text-transform: capitalize !important;
    }

    .xb-about-inner {
        text-align: left;
        padding-right: 0 !important;
        margin-bottom: 20px;
    }

    .xb-about-inner p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 15px;
    }

    .about-btn {
        text-align: left;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .sec-title .title {
        font-size: 22px !important;
    }

    .xb-about-inner p {
        font-size: 13px !important;
    }
}

@media (max-width: 575px) {
    .about {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .sec-title .title {
        font-size: 20px !important;
    }

    .about-image {
        margin-bottom: 25px;
    }
}

/* ===================================
   11. BLOG/PARTNER SECTION
   =================================== */

@media (max-width: 991px) {
    .blog {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .blog-inner {
        flex-direction: column !important;
        gap: 30px;
    }

    .blog-item {
        width: 100% !important;
        margin-bottom: 30px;
    }

    .blog-item .xb-item--img img {
        width: 100%;
        height: auto;
    }
}

/* ===================================
   12. GALLERY/EVENTS SECTION
   =================================== */

@media (max-width: 991px) {
    .gallery-item {
        margin-bottom: 20px;
    }

    .gallery-image img {
        width: 100%;
        height: auto;
    }

    .xb-item--holder h3 {
        font-size: 18px !important;
    }
}

/* ===================================
   13. AWARD SECTION
   =================================== */

@media (max-width: 991px) {
    .award {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .award .sec-title {
        margin-bottom: 40px !important;
        padding-right: 0 !important;
    }

    .award-marquee {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===================================
   14. SOLUTIONS PAGE (stacking cards)
   =================================== */

/* The theme gives each solution card a fixed height: 500px (main.css) and
   forces the design graphic to 400px tall. On mobile the card stacks
   (text above graphic) so the content exceeds 500px and, because the card
   is overflow: visible, the globe/visualizer/SVG spills into the next card.
   Let the card grow with its content and keep the graphics inside it. */
@media (max-width: 991px) {
    .solution-card {
        height: auto !important;
    }

    .solution-card .xb-item--img {
        width: 100% !important;
        height: auto !important;
        padding: 20px 0 !important;
    }

    /* Keep every design graphic within the card width */
    .solution-card .xb-item--img canvas,
    .solution-card .xb-item--img svg,
    #globe-canvas,
    #visualizerCanvas {
        max-width: 100% !important;
    }

    /* sort_order 3 uses an absolutely-positioned 550px SVG inside a fixed
       350x300 box — make it flow and scale to the card instead. */
    .solution-card .section-home {
        width: 100% !important;
        height: auto !important;
    }

    .solution-card .section-home svg {
        position: static !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 767px) {
    /* Stacked layout: drop the desktop left indent and the vertical divider,
       and neutralise the stacking-cards transform/sticky so cards flow. */
    .blog .blog-inner .solution-card {
        position: static !important;
        transform: none !important;
        margin-bottom: 25px !important;
    }

    .solution-card .xb-item--holder {
        width: 100% !important;
        padding-left: 0 !important;
    }

    .solution-card .xb-item--holder::before {
        display: none !important;
    }
}

/* ===================================
   15. PARTNER/VENDOR FORM (radio group)
   =================================== */

/* The theme fixes each radio label to width: 220px in a flex row (main.css),
   so the three Supplier/Customer/Other buttons (~660px) run off the screen on
   mobile. Let them wrap, then stack full-width on phones. */
@media (max-width: 991px) {
    .vendor-form .radio-input {
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .vendor-form .radio-input {
        flex-direction: column;
        gap: 12px;
    }

    .vendor-form .radio-input label,
    .vendor-form .radio-input .label {
        width: 100% !important;
    }

    .vendor-form .radio-input label::before {
        width: 100% !important;
    }
}

/* ===================================
   17. CONTACT PAGE
   =================================== */

/* --- Head-office photos: rounded, elevated, gently staggered --- */
.contact-img-item img {
    display: block;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 43, 84, 0.12);
}

@media (min-width: 992px) {
    .contact-img-item:nth-child(2) {
        margin-top: 60px;
    }
}

/* --- Contact info: plain list -> clean cards with gold icon badges --- */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.contact-info-list li {
    margin: 0 !important;
}

.contact-info-list li a {
    display: flex !important;
    align-items: center;
    gap: 16px !important;
    padding: 15px 18px;
    background: #f8f8f6;
    border: 1px solid #ededed;
    border-radius: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-info-list li a:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 24px rgba(0, 43, 84, 0.10);
    transform: translateY(-3px);
}

.contact-info-list li a svg {
    flex-shrink: 0;
    box-sizing: content-box;
    width: 22px;
    height: 22px;
    padding: 11px;
    background: rgba(190, 178, 1, 0.15);
    border-radius: 50%;
}

/* --- "Get directions" link -> outline pill button --- */
.direction-link {
    margin-top: 30px !important;
    padding: 12px 26px;
    width: -moz-fit-content;
    width: fit-content;
    border: 1px solid var(--color-black);
    border-radius: 50px;
    color: var(--color-black) !important;
    transition: all 0.3s ease;
}

.direction-link:hover {
    background: var(--color-black);
    color: #fff !important;
}

/* --- Map: round + lift it into the page --- */
.map {
    padding: 0 15px;
}

.google-map {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 43, 84, 0.12);
}

/* --- Contact form: present it as a clean white card on a tinted section --- */
section.contact:has(.contact-form) {
    background: #f7f8f6;
}

/* Full-width form presented as one clean white card */
.contact-inner {
    background: #fff;
    padding: 45px 45px 40px;
    border-radius: 18px;
    border: 1px solid #ececec;
    box-shadow: 0 20px 50px rgba(0, 43, 84, 0.08);
}

@media (max-width: 991px) {
    .contact-inner {
        padding: 28px 20px;
    }
}

/* Two-column field grid with comfortable row spacing */
section.contact:has(.contact-form) .contact-form .input-field {
    margin-bottom: 22px;
}

section.contact:has(.contact-form) .contact-form .input-field input,
section.contact:has(.contact-form) .contact-form .nice-selt-field,
section.contact:has(.contact-form) .contact-form .nice-selt-field .nice-select {
    height: 56px;
}

section.contact:has(.contact-form) .contact-form .input-field textarea {
    min-height: 130px;
}

/* Focused field shows the brand gold underline */
section.contact:has(.contact-form) .contact-form .input-field input:focus,
section.contact:has(.contact-form) .contact-form .input-field textarea:focus {
    border-bottom-color: var(--color-primary);
}

/* Center the submit button beneath the full-width grid */
section.contact:has(.contact-form) .xb-content {
    justify-content: center;
}

section.contact:has(.contact-form) .contact-btn {
    display: flex;
    justify-content: center;
}

/* Success state styled to match the form card */
.thank-you-message {
    background: #fff;
    padding: 45px 30px;
    border-radius: 18px;
    border: 1px solid #ececec;
    box-shadow: 0 20px 50px rgba(0, 43, 84, 0.08);
}

.thank-you-message h2 {
    color: var(--color-black);
    margin-bottom: 12px;
}
