/* Footer theo mẫu GMI - 4 cột với Bootstrap */

.gb-footer {
    background-color: #333;
}

.gb-lienhe {
    padding: 50px 0;
}

/* Container - dùng Bootstrap nhưng override max-width */
.gb-lienhe .container {
    max-width: 1320px;
}

/* Footer column base */
.footer-col {
    margin-bottom: 30px;
}

/* Newsletter text */
.newsletter-text {
    color: white;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

/* Newsletter form wrapper */
.newsletter-form-wrapper {
    margin-bottom: 20px;
}

/* Newsletter success message */
.newsletter-success-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 6px;
    color: #5dda7a;
    font-size: 14px;
    line-height: 1.5;
}

.newsletter-success-msg i {
    font-size: 20px;
    flex-shrink: 0;
}

/* Newsletter form */
.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Honeypot field - hidden */
.nl-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

.nl-input-group {
    position: relative;
}

.nl-input-group input {
    width: 100%;
    height: 42px;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.nl-input-group input::placeholder {
    color: #999;
}

.nl-input-group input:focus {
    border-color: #ff8100;
    box-shadow: 0 0 0 2px rgba(255, 129, 0, 0.15);
}

.nl-input-group input[aria-invalid="true"] {
    border-color: #dc3545;
}

.nl-input-group input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

.nl-error {
    display: block;
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.nl-submit-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #00a5dd 0%, #3083dd 100%);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nl-submit-btn:hover {
    background: linear-gradient(135deg, #e67500 0%, #cc6200 100%);
    box-shadow: 0 4px 12px rgba(255, 129, 0, 0.35);
}

.nl-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form email (old style - kept for reference) */
.mail {
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mail:hover {
    border-color: #ff8100;
    box-shadow: 0 2px 8px rgba(255, 129, 0, 0.15);
}

.mail input {
    flex: 1;
    height: 48px;
    border: none;
    padding: 12px 16px 12px 44px;
    font-size: 14px;
    color: #333;
    outline: none;
    background: transparent;
    min-width: 0;
}

.mail input::placeholder {
    color: #999;
}

.mail input:focus {
    background: #fff;
}

/* Icon envelope inside input */
.mail::before {
    content: '\f0e0';
    font-family: 'FontAwesome';
    position: absolute;
    left: 16px;
    color: #999;
    font-size: 14px;
    z-index: 1;
    pointer-events: none;
    transition: color 0.3s ease;
}

.mail:hover::before,
.mail input:focus ~ .mail::before {
    color: #ff8100;
}

.mail button {
    width: 48px;
    height: 48px;
    border: none;
    border-left: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.mail button:hover {
    background: #ff8100;
    color: #fff;
    border-left-color: #ff8100;
}

.mail button:active {
    background: #e67500;
}

/* Social icons - vnt-social */
.vnt-social {
    margin-top: 20px;
}

.vnt-social ul {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.vnt-social li {
    padding: 0;
}

.vnt-social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ececec;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vnt-social li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.vnt-social li a img {
    width: 22px !important;
    height: 22px !important;
    transition: transform 0.3s ease;
}

/* Facebook hover */
.vnt-social li a[href*="facebook"]:hover {
    background: #1877F2;
    border-color: #1877F2;
}

/* Zalo hover */
.vnt-social li a[href*="zalo"]:hover,
.vnt-social li a[href*="zalo.me"]:hover {
    background: #0068FF;
    border-color: #0068FF;
}

/* YouTube hover */
.vnt-social li a[href*="youtube"]:hover,
.vnt-social li a[href*="youtu.be"]:hover {
    background: #FF0000;
    border-color: #FF0000;
}

/* TikTok hover */
.vnt-social li a[href*="tiktok"]:hover {
    background: #000;
    border-color: #000;
}

/* Social icon (legacy class) */
.social-icon {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-icon li {
    padding: 0;
}

.social-icon li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.social-icon li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-icon li img {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.social-icon li a:hover img {
    transform: scale(1.1);
}

/* Footer title */
.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin: 0 0 20px;
    text-transform: uppercase;
}

/* Footer links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff8100;
}

/* Contact info */
.contact-info {
    color: white;
}

.contact-info .company-name {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 14px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.contact-info p i {
    width: 10px;
    color: #ccc;
    margin-right: 8px;
}

.contact-info p span {
    font-weight: 600;
    color: white;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #ff8100;
}

/* Footer bottom - Copyright */
.footer-bottom {
    background: #2d2d2d;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
    max-width: 1320px;
}

.footer-bottom p {
    color: white;
    font-size: 14px;
    margin: 0;
    text-align: center;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #ff8100;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .gb-lienhe {
        padding: 30px 0;
    }
    .footer-col {
        margin-bottom: 25px;
    }
}

/* Newsletter Toast Notification */
.newsletter-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    animation: slideInUp 0.4s ease-out;
    max-width: 400px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #28a745;
}

.toast-content i {
    font-size: 24px;
    color: #28a745;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast-message strong {
    display: block;
    font-size: 15px;
    color: #28a745;
    margin-bottom: 4px;
}

.toast-message p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #333;
}

@media (max-width: 480px) {
    .newsletter-toast {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
}
