/* Шинэчилсэн footer хэсгийн CSS - Цэнхэр өнгөнд суурилсан дизайн */
.footer-section {
    position: relative;
    margin-top: 4rem;
    background: #5B5FEF; /* Зурагт буй өнгийг хэрэглэв */
    color: #fff;
    overflow: hidden;
}

.footer-wave {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    position: absolute;
    top: -2px;
    left: 0;
}

.footer-wave svg path {
    fill: rgba(255, 255, 255, 0.15);
}

.footer-container {
    position: relative;
    padding: 4rem 1.5rem 2rem;
    z-index: 2;
}

.footer-logo {
    max-width: 100px;
    margin-bottom: 1.2rem;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-about h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.4rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.footer-about p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.8rem;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.footer-links h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #D4D6FF;
    border-radius: 2px;
}

.footer-menu {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.footer-menu li {
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.footer-menu li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    padding: 0.3rem 0;
}

.footer-menu li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-menu li a i {
    margin-right: 0.6rem;
    font-size: 0.8rem;
    color: #D4D6FF;
    transition: all 0.3s ease;
}

.footer-menu li a:hover i {
    color: #fff;
}

.footer-contact {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact li i {
    margin-right: 0.8rem;
    color: #D4D6FF;
    font-size: 1rem;
    margin-top: 0.2rem;
    transition: all 0.3s ease;
}

.footer-contact li:hover i {
    color: #fff;
    transform: scale(1.1);
}

.footer-contact li span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.footer-contact li a {
    color: #D4D6FF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact li a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-newsletter h5 {
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.8rem;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.footer-newsletter h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: #D4D6FF;
    border-radius: 2px;
}

.footer-newsletter p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

/* Form элементүүдийн текст ялгарах шийдэл */
.footer-form .input-group {
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 50px;
    overflow: hidden;
}

.footer-form .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    height: auto;
    background-color: #fff;
    color: #333; /* Текст нь бараан өнгөтэй */
    transition: all 0.3s ease;
    font-weight: 500; /* Текст бага зэрэг тод болгосон */
}

.footer-form .form-control::placeholder {
    color: #777; /* Placeholder текст бараан болгосон */
    opacity: 0.8;
}

.footer-form .form-control:focus {
    box-shadow: none;
    background-color: #fff;
    color: #111; /* Focus хийхэд текст илүү тод болно */
}

.footer-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.7rem 1.3rem;
    background: #4146CE; /* Цэнхэр өнгөнөөс бага зэрэг гүн */
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.footer-form .btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #2D32B8; /* Товч дээр дарахад илүү гүн өнгө */
    transition: all 0.3s ease;
    z-index: -1;
}

.footer-form .btn:hover:before {
    width: 100%;
}

.footer-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(65, 70, 206, 0.4);
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #4146CE;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2D32B8;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link:hover:before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 1.5rem 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.copyright {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.credits {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.credits a {
    color: #D4D6FF;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.credits a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Alert хэсгийн өнгө тохируулга */
.alert.small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
}

.alert-success.small {
    background-color: rgba(76, 175, 80, 0.95);
    color: #fff;
}

.alert-warning.small {
    background-color: rgba(255, 152, 0, 0.95);
    color: #fff;
}

.alert-danger.small {
    background-color: rgba(244, 67, 54, 0.95);
    color: #fff;
}

/* Харанхуй горим */
.dark-theme .footer-section {
    background: #4146CE;
}

.dark-theme .footer-bottom {
    background-color: rgba(0, 0, 0, 0.25);
}

/* Хариуцлагатай загвар */
@media (max-width: 991px) {
    .footer-links, .footer-newsletter {
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    .footer-container {
        padding: 3rem 1.2rem 1.5rem;
    }
    
    .footer-wave svg {
        height: 45px;
    }
    
    .copyright, .credits {
        text-align: center;
    }
    
    .credits {
        margin-top: 0.7rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1.2rem;
    }
    
    .footer-links h5, .footer-newsletter h5 {
        margin-top: 1.5rem;
    }
    
    .footer-form .input-group {
        max-width: 100%;
        margin: 0 auto 1rem;
    }
    
    /* Гар утсанд илүү гоё анимейшн нэмэх */
    .footer-menu li a, .footer-contact li i {
        transition: all 0.25s ease;
    }
    
    .footer-menu li a:active {
        transform: translateX(8px);
    }
    
    .social-link:active {
        transform: scale(0.95);
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 2.5rem 1rem 1.2rem;
    }
    
    .footer-about h4 {
        font-size: 1.2rem;
    }
    
    .footer-links h5, .footer-newsletter h5 {
        font-size: 1.1rem;
    }
    
    .footer-about p, .footer-menu li a, .footer-contact li span, .footer-newsletter p {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding: 1.2rem 0;
        font-size: 0.85rem;
    }
    
    .footer-wave svg {
        height: 35px;
    }
    
    /* Гар утсанд илүү тохирсон дизайн */
    .footer-form .input-group {
        height: 42px;
    }
    
    .footer-form .form-control {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .footer-form .btn {
        padding: 0.5rem 1rem;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
}