/**
 * Footer Styles
 */

/* Features Section */
.footer-features-section {
    background: #304B92;
    width: 100%;
    padding: 20px 0;
}

.footer-features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    background-image: url("../images/line.png");
    background-image: url("../images/line.png");
    background-repeat: no-repeat;
    background-position: right center;
}

.footer-features-container .footer-feature-item:last-child{
    background: none;
}

.footer-feature-item img {
    object-fit: contain;
    flex-shrink: 0;
}

.footer-feature-icon {
    font-size: 23px;
    color: #bcc4dc;
    flex-shrink: 0;
    width: 23px;
    text-align: center;
}

.footer-feature-item span {
    font-family: 'Inter', sans-serif;
    font-weight: normal;
    font-size: 15px;
    line-height: 40px;
    color: #ffffff;
}

/* Footer Main */
.site-footer {
    background: #142D6C;
    width: 100%;
    padding: 60px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 200px 200px 200px 365px;
    gap: 40px;
}

.footer-column {
    color: #ffffff;
    min-width: 0;
}

.footer-column-narrow {
    max-width: 200px;
}

.footer-column-wide {
    max-width: 365px;
}

/* Widget Titles */
.footer-column .widget-title,
.footer-column h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 21.6px;
    color: #ffffff;
    margin: 0 0 20px 0;
}

/* Widget Lists/Links */
.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin: 0;
    padding: 0;
    border: none;
}

.footer-column ul li a {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 32px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ea272f;
}

/* Newsletter Column */
.footer-column-wide p,
.footer-column-wide .widget p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 28px;
    color: #ffffff;
    margin: 0px;
}

/* Newsletter Form Styling */
.footer-column-wide .wpcf7-form {
    margin: 20px 0 10px 0;
}

.footer-column-wide .wpcf7-form form {
    display: flex;
    gap: 0;
}

.footer-column-wide .wpcf7-form br {
    display: none;
}

.footer-column-wide .wpcf7-form p {
    display: flex;
    gap: 0;
    margin: 0;
}

.footer-column-wide .wpcf7-form input[type="email"] {
    width: 300px;
    height: 42px;
    padding: 0 15px;
    border: 1px solid #EDF0F7;
    border-right: none;
    background: #ffffff;
    color: #333333;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin: 0;
    box-sizing: border-box;
}

.footer-column-wide .wpcf7-form input[type="email"]::placeholder {
    color: rgba(51, 51, 51, 0.5);
}

.footer-column-wide .wpcf7-form input[type="submit"] {
    width: 139px;
    height: 42px;
    padding: 0 27px;
    background: #304B92;
    color: #ffffff;
    border: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    margin: 0;
}

.footer-column-wide .wpcf7-form input[type="submit"]:hover {
    background: #243a73;
}

.footer-newsletter-privacy {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    color: #ffffff;
    margin: 10px 0 20px 0;
}

.footer-newsletter-privacy a {
    color: #ffffff;
    text-decoration: underline;
}

/* Social Media Icons */
.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #ea272f;
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-icons a:hover {
    background: #304B92;
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-social-icons a i {
    display: inline-block;
    font-size: 15px;
}

/* Hotline Info */
.footer-hotline-info {
    margin-top: 20px;
}

.footer-hotline-info p {
    margin: 5px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 28px;
    color: #ffffff;
}

.footer-hotline-info p strong {
    font-weight: 400;
}

.footer-hotline-info a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.footer-hotline-info a:hover {
    color: #ea272f;
}

/* Payment & Shipping Systems */
.footer-payment-shipping {
    background: #142D6C;
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    padding: 30px 0px 30px 0px;
    margin-top: 30px;
}

.payment-shipping-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-system-box,
.shipping-system-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-icons,
.shipping-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-icons i,
.shipping-icons i {
    font-size: 30px;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.payment-icons i:hover,
.shipping-icons i:hover {
    opacity: 0.75;
}

.system-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 21px;
    color: #ffffff;
    white-space: nowrap;
}

/* Copyright */
.footer-copyright {
    background: #142D6C;
    padding: 20px 0;
}

.footer-copyright p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 23.8px;
    color: #ffffff;
    text-align: center;
    margin: 0;
}

.footer-copyright strong {
    font-weight: 700;
}

/* Responsive Design */
@media screen and (max-width: 1240px) {
    .footer-columns {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-column-narrow,
    .footer-column-wide {
        max-width: 100%;
    }
}

@media screen and (max-width: 992px) {
    .footer-features-container {
        display: block;
    }

    .footer-feature-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding: 20px 20px;
        margin-bottom: 0;
        background-image: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer-feature-item:last-child {
        border-bottom: none;
    }

    .footer-feature-item span {
        font-size: 16px;
        text-align: left;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-column-narrow,
    .footer-column-wide {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .footer-features-section {
        padding: 20px 0;
    }

    .footer-features-container {
        display: block;
        gap: 0;
    }

    .footer-feature-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding: 18px 20px;
        margin-bottom: 0;
        background-image: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer-feature-item:last-child {
        border-bottom: none;
    }

    .footer-feature-item img {
        width: 35px;
        height: 35px;
    }

    .footer-feature-icon {
        font-size: 23px;
        width: 23px;
    }

    .footer-feature-item span {
        font-size: 14px;
        line-height: 1.4;
        text-align: left;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .site-footer {
        padding: 40px 0 30px;
    }

    .footer-column-narrow,
    .footer-column-wide {
        max-width: 100%;
    }

    .footer-column-narrow {
        margin-bottom: 10px;
    }

    /* Footer widget toggle on mobile (only narrow columns) */
    .footer-column-narrow .widget-title,
    .footer-column-narrow h3 {
        position: relative;
        cursor: pointer;
        padding-right: 30px;
        user-select: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 15px;
        margin-bottom: 0;
    }

    .footer-column-narrow .widget-title::after,
    .footer-column-narrow h3::after {
        content: '\f067';
        font-family: 'Font Awesome 5 Pro', 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        color: #ffffff;
        transition: transform 0.3s ease;
    }

    .footer-column-narrow .widget-title.open::after,
    .footer-column-narrow h3.open::after {
        content: '\f068';
    }

    /* Hide narrow column menus by default on mobile */
    .footer-column-narrow ul {
        display: none;
        padding-top: 18px;
    }

    .payment-shipping-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .payment-system-box,
    .shipping-system-box {
        flex-direction: column;
        gap: 10px;
    }

    .system-icons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Additional responsive fixes */
.footer-column-wide .wpcf7-form input[type="text"] {
    box-sizing: border-box;
}

.footer-column-wide .wpcf7-form p {
    margin: 0;
}

.footer-column-wide .wpcf7-form br {
    display: none;
}

.footer-column .widget {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media screen and (max-width: 480px) {
    .footer-features-section {
        padding: 15px 0;
    }

    .footer-features-container {
        padding: 0 15px;
        display: block;
    }

    .footer-feature-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 15px 15px;
        margin-bottom: 0;
        background-image: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer-feature-item:last-child {
        border-bottom: none;
    }

    .footer-feature-item img {
        width: 32px;
        height: 32px;
    }

    .footer-feature-icon {
        font-size: 23px;
        width: 23px;
    }

    .footer-feature-item span {
        font-size: 13px;
        line-height: 1.5;
        text-align: left;
    }

    .site-footer {
        padding: 30px 0 20px;
    }

    .footer-container {
        padding: 0 15px;
    }

    .footer-columns {
        gap: 18px;
    }

    .footer-column-narrow {
        margin-bottom: 8px;
    }

    /* Footer widget toggle on mobile (only narrow columns) */
    .footer-column-narrow .widget-title,
    .footer-column-narrow h3 {
        font-size: 16px;
        line-height: 20px;
        margin: 0;
        position: relative;
        cursor: pointer;
        padding-right: 30px;
        padding-bottom: 12px;
        user-select: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer-column-narrow .widget-title::after,
    .footer-column-narrow h3::after {
        content: '\f067';
        font-family: 'Font Awesome 5 Pro', 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 13px;
        color: #ffffff;
        transition: transform 0.3s ease;
    }

    .footer-column-narrow .widget-title.open::after,
    .footer-column-narrow h3.open::after {
        content: '\f068';
    }

    /* Hide narrow column menus by default on mobile */
    .footer-column-narrow ul {
        display: none;
        padding-top: 15px;
    }

    .footer-column-narrow ul li a {
        font-size: 11px;
        line-height: 28px;
    }

    .footer-column-wide p,
    .footer-column-wide .widget p {
        font-size: 12px;
        line-height: 24px;
        margin: 0 0 15px 0;
    }

    .footer-column-wide .wpcf7-form form {
        flex-direction: column;
        gap: 8px;
    }

    .footer-column-wide .wpcf7-form input[type="email"] {
        padding: 10px 12px;
        font-size: 12px;
        width: 100%;
        border-radius: 6px;
        border: 1px solid #EDF0F7;
    }

    .footer-column-wide .wpcf7-form input[type="submit"] {
        padding: 10px 15px;
        font-size: 12px;
        width: 100%;
        border-radius: 6px;
    }

    .footer-newsletter-privacy {
        font-size: 11px;
        line-height: 18px;
        margin: 8px 0 15px 0;
    }

    .footer-social-icons {
        gap: 10px;
        margin-top: 15px;
        justify-content: center;
    }

    .footer-social-icons a {
        width: 35px;
        height: 35px;
    }

    .footer-hotline-info p {
        font-size: 12px;
        line-height: 24px;
        margin: 3px 0;
    }

    .footer-payment-shipping {
        padding: 20px 0;
        margin-top: 20px;
    }

    .payment-icons i,
    .shipping-icons i {
        font-size: 24px;
    }

    .footer-copyright {
        padding: 15px 0;
    }

    .footer-copyright p {
        font-size: 11px;
        line-height: 20px;
    }
}
