/* SANITECH footer — compact four-column layout based on the approved reference. */

.rs-footer.fv2-footer.style1 {
    --footer-line: rgba(170, 224, 220, 0.28);
    --footer-line-soft: rgba(170, 224, 220, 0.14);
    --footer-icon: #7fd4d0;
    --footer-icon-bg: rgba(21, 122, 125, 0.3);
    --footer-icon-border: rgba(127, 212, 208, 0.4);
}

.rs-footer.fv2-footer.style1 .footer-top {
    /* มาตรฐานเดียวกันทุกหน้า — เว้นบนพอให้หัวคอลัมน์ไม่ชิดขอบ */
    padding: 46px 0 30px !important;
}

.rs-footer.fv2-footer.style1 .footer-top > .container.custom,
.rs-footer.fv2-footer.style1 .footer-bottom > .container.custom {
    width: min(1200px, calc(100% - 40px));
    max-width: 1200px !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.fv2-footer__grid {
    display: grid;
    grid-template-columns: 1.12fr 0.94fr 1.18fr 1.06fr;
    gap: 0;
    margin: 0;
}

.fv2-footer__grid > .fv2-footer__col {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0 24px;
    border-left: 1px solid var(--footer-line);
}

.fv2-footer__grid > .fv2-footer__col:first-child {
    padding-left: 0;
    border-left: 0;
}

.fv2-footer__grid > .fv2-footer__col:last-child {
    padding-right: 0;
}

.rs-footer.fv2-footer.style1 .footer-top .footer-logo {
    margin: -2px 0 8px;
    text-align: left;
}

.rs-footer.fv2-footer.style1 .footer-logo-img {
    display: block;
    width: auto;
    max-width: 174px;
    height: 45px;
    object-fit: contain;
    object-position: left center;
    filter: grayscale(1) brightness(0) invert(1);
}

.rs-footer.fv2-footer.style1 .footer-top p.fv2-footer__brand-desc {
    max-width: 260px;
    margin: 0;
    font-size: 14px !important;
    line-height: 1.58;
    color: rgba(255, 255, 255, 0.88);
}

.fv2-footer__features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin: 14px 0 10px;
    padding: 0;
    border: 0;
}

.fv2-footer__feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    border: 1px solid var(--footer-icon-border);
    border-radius: 50%;
    background: var(--footer-icon-bg);
    color: var(--footer-icon);
    box-shadow: inset 0 0 12px rgba(95, 227, 201, 0.1);
}

.fv2-footer__feature-icon i {
    font-size: 18px;
}

.fv2-footer__feature-title,
.fv2-footer__feature-desc {
    font-size: 13px;
    line-height: 1.25;
}

.fv2-footer__feature-title {
    color: #fff;
    font-weight: 600;
}

.fv2-footer__feature-desc {
    color: rgba(255, 255, 255, 0.72);
}

.rs-footer.fv2-footer.style1 .footer-top p.fv2-footer__social-label {
    display: inline-block;
    margin: 3px 8px 0 0;
    font-size: 14px !important;
    font-weight: 700;
    vertical-align: middle;
}

.fv2-footer__social {
    display: inline-flex;
    gap: 6px;
    margin: 0;
    vertical-align: middle;
}

.fv2-footer__social a {
    width: 30px;
    height: 30px;
    border-color: var(--footer-icon-border);
    background: rgba(0, 168, 117, 0.32);
    color: #fff;
}

.fv2-footer__social a i {
    font-size: 13px;
}

.rs-footer.fv2-footer.style1 .footer-top .footer-title.fv2-footer__title {
    margin: 0 0 12px;
    padding: 0;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
    text-align: left !important;
}

.rs-footer.fv2-footer.style1 .footer-top .footer-title.fv2-footer__title::after {
    display: none;
}

.rs-footer.fv2-footer.style1 .footer-top .site-map.fv2-footer__links {
    margin: 0;
}

.rs-footer.fv2-footer.style1 .footer-top .site-map.fv2-footer__links li {
    margin: 0;
    padding: 0;
    border: 0;
}

.rs-footer.fv2-footer.style1 .footer-top .site-map.fv2-footer__links li a {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 3px 0;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

.rs-footer.fv2-footer.style1 .footer-top .site-map.fv2-footer__links li a::before {
    display: none;
}

.fv2-footer__links a > i:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--footer-icon-border);
    border-radius: 50%;
    color: var(--footer-icon);
    font-size: 13px;
}

.fv2-footer__link-chevron {
    justify-self: end;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.fv2-footer__cta {
    min-height: 56px;
    margin-top: 10px;
    padding: 8px 10px;
    border-color: #5ED8BE;
    border-radius: 6px;
    background: rgba(0, 168, 117, 0.2);
}

.fv2-footer__cta-icon {
    width: 34px;
    height: 34px;
    color: #fff;
}

.fv2-footer__cta-icon i {
    font-size: 23px;
}

.fv2-footer__cta-title {
    font-size: 14px;
}

.fv2-footer__cta-sub {
    font-size: 13px;
}

.fv2-footer__cta-arrow {
    display: none;
}

.rs-footer.fv2-footer.style1 .footer-top .address-widget.fv2-footer__contact {
    margin: 0;
    padding: 0 !important;
    list-style: none;
}

.rs-footer.fv2-footer.style1 .footer-top .address-widget.fv2-footer__contact li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--footer-line-soft);
}

.rs-footer.fv2-footer.style1 .footer-top .address-widget.fv2-footer__contact li:first-child {
    padding-top: 0;
}

.rs-footer.fv2-footer.style1 .footer-top .address-widget.fv2-footer__contact li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.rs-footer.fv2-footer.style1 .footer-top .address-widget.fv2-footer__contact li > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    color: var(--footer-icon);
    font-size: 18px;
    position: static !important;
    inset: auto !important;
    float: none !important;
}

.rs-footer.fv2-footer.style1 .footer-top .address-widget.fv2-footer__contact li .desc {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    word-break: normal !important;
    overflow-wrap: break-word;
    writing-mode: horizontal-tb !important;
}

.rs-footer.fv2-footer.style1 .footer-top .address-widget.fv2-footer__contact li .desc,
.rs-footer.fv2-footer.style1 .footer-top .address-widget.fv2-footer__contact li .desc a,
.rs-footer.fv2-footer.style1 .footer-top .address-widget.fv2-footer__contact li .desc span {
    font-size: 14px !important;
    line-height: 1.5;
    word-break: normal !important;
    writing-mode: horizontal-tb !important;
}

.rs-footer.fv2-footer.style1 .footer-top .address-widget.fv2-footer__contact li .desc a,
.rs-footer.fv2-footer.style1 .footer-top .address-widget.fv2-footer__contact li .desc span {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    float: none !important;
}

.fv2-footer__contact .desc strong {
    display: block;
    margin-bottom: 2px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.rs-footer.fv2-footer.style1 .footer-top p.fv2-footer__newsletter-desc {
    margin: -3px 0 8px;
    font-size: 14px !important;
    line-height: 1.52;
}

.fv2-footer__newsletter-form {
    display: flex;
    align-items: stretch;
    margin: 0;
    height: 40px;
    border-radius: 5px;
    overflow: hidden;
    background: transparent;
}

.fv2-footer__newsletter-field {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    margin: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
}

.fv2-footer__newsletter-field i {
    display: none;
}

.fv2-footer__newsletter-field input[type="email"] {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 11px;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #4A5A66;
    font-size: 14px;
    box-sizing: border-box;
    box-shadow: none;
}

.fv2-footer__newsletter-field input[type="email"]:disabled {
    background: #fff !important;
    color: #667680 !important;
    -webkit-text-fill-color: #667680;
    opacity: 1 !important;
    cursor: default;
}

.fv2-footer__newsletter-field input::placeholder {
    color: #87949D;
}

.fv2-footer__newsletter-submit,
.fv2-footer__newsletter-submit:disabled {
    flex: 0 0 42px;
    width: 42px;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: #008F63 !important;
    color: #fff !important;
    opacity: 1;
    align-self: stretch;
}

.fv2-footer__newsletter-submit i {
    font-size: 14px;
    line-height: 1;
}

.rs-footer.fv2-footer.style1 .footer-top p.fv2-footer__newsletter-note {
    margin: 5px 0 0;
    font-size: 13px !important;
}

.fv2-footer__newsletter-note i {
    font-size: 13px;
}

.fv2-footer__guarantee {
    margin-top: 13px;
    padding-top: 0;
    border-top: 0;
}

.fv2-footer__guarantee-head {
    justify-content: flex-start;
    margin-bottom: 7px;
}

.fv2-footer__guarantee-line {
    display: none;
}

.rs-footer.fv2-footer.style1 .footer-top p.fv2-footer__guarantee-title {
    margin: 0;
    font-size: 14px !important;
    font-weight: 700;
    color: #fff;
}

.fv2-footer__guarantee-list {
    gap: 5px;
}

.fv2-footer__guarantee-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    border-color: var(--footer-icon-border);
    background: var(--footer-icon-bg);
    color: var(--footer-icon);
}

.fv2-footer__guarantee-icon i {
    font-size: 16px;
}

.fv2-footer__guarantee-item-title,
.fv2-footer__guarantee-item-desc {
    font-size: 13px;
    line-height: 1.28;
}

.rs-footer.fv2-footer.style1 .footer-bottom.fv2-footer__bottom {
    /* Blend the copyright bar into the navy-to-teal footer while keeping it
       slightly darker so the content hierarchy remains clear. */
    background-color: #124f53;
    background-image: linear-gradient(
        90deg,
        rgba(21, 63, 76, 0.94) 0%,
        rgba(18, 79, 83, 0.92) 48%,
        rgba(14, 102, 105, 0.94) 100%
    );
    border-top: 1px solid rgba(127, 212, 208, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    padding: 14px 0;
}

.fv2-footer__bottom-inner {
    min-height: 24px;
    gap: 12px 24px;
}

.fv2-footer__bottom-copy p,
.rs-footer.fv2-footer.style1 .footer-bottom .copy-right-menu.fv2-footer__bottom-nav li a {
    font-size: 14px !important;
}

.rs-footer.fv2-footer.style1 .footer-bottom .copy-right-menu.fv2-footer__bottom-nav li {
    padding-left: 24px;
}

.rs-footer.fv2-footer.style1 .footer-bottom .copy-right-menu.fv2-footer__bottom-nav li::before {
    width: 1px;
    height: 11px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.42) !important;
}

@media (max-width: 991.98px) {
    .fv2-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 24px;
    }

    .fv2-footer__grid > .fv2-footer__col {
        padding: 0 20px;
    }

    .fv2-footer__grid > .fv2-footer__col:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .fv2-footer__grid > .fv2-footer__col:nth-child(even) {
        padding-right: 0;
    }

    .fv2-footer__grid > .fv2-footer__col:nth-child(n + 3) {
        padding-top: 22px;
        border-top: 1px solid var(--footer-line);
    }

    .rs-footer.fv2-footer.style1 .footer-top p.fv2-footer__brand-desc {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .rs-footer.fv2-footer.style1 .footer-top {
        padding: 32px 0 22px !important;
    }

    .rs-footer.fv2-footer.style1 .footer-top > .container.custom,
    .rs-footer.fv2-footer.style1 .footer-bottom > .container.custom {
        width: min(100% - 28px, 1200px);
    }

    .fv2-footer__grid {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .fv2-footer__grid > .fv2-footer__col,
    .fv2-footer__grid > .fv2-footer__col:nth-child(odd),
    .fv2-footer__grid > .fv2-footer__col:nth-child(even) {
        padding: 18px 0;
        border-left: 0;
        border-top: 1px solid var(--footer-line);
    }

    .fv2-footer__grid > .fv2-footer__col:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .fv2-footer__features {
        max-width: 340px;
    }

    .fv2-footer__bottom-inner {
        justify-content: center;
        text-align: center;
    }

    .rs-footer.fv2-footer.style1 .footer-bottom .copy-right-menu.fv2-footer__bottom-nav {
        width: 100%;
        text-align: center;
    }
}
