/* Header Styles */
.site-header {
    /* border-bottom: 1px solid #eee; */ /* Removed to prevent line between top-bar and main-header */
    font-family: 'Poppins', sans-serif;
}

.site-header * {
    font-family: 'Poppins', sans-serif;
}

/* Font Awesome Icons - Override Poppins in Header */
.site-header .fa, .site-header .fab, .site-header .fad, .site-header .fal, .site-header .far, .site-header .fas {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Pro" !important;
}

.site-header i[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Pro" !important;
}

.emit-top-bar {
    background-color: #e31e25;
    color: #ecf0f1;
    padding: 8px 0;
    font-size: 14px;
}

.emit-top-bar .container {
    max-width: 1140px !important; /* Override the global container width for top-bar only */
}

.emit-top-bar a {
    color: #ecf0f1;
    text-decoration: none;
    margin-left: 15px;
}

.emit-top-bar a:hover {
    color: #fff;
}

.emit-top-menu .dropdown-menu {
    background-color: #2c3e50;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    padding: 8px 0;
    min-width: 220px;
    animation: fadeInDown 0.2s ease-out;
    overflow: hidden;
}

.emit-top-menu .dropdown-item {
    color: #ecf0f1;
    font-size: 13px;
    font-weight: 400;
    padding: 10px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.emit-top-menu .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #e31e25, #c41e3a);
    transition: width 0.3s ease;
    z-index: -1;
}

.emit-top-menu .dropdown-item:hover,
.emit-top-menu .dropdown-item:focus {
    background-color: transparent;
    color: #fff !important;
    transform: translateX(3px);
}

.emit-top-menu .dropdown-item:hover::before {
    width: 100%;
}

/* Enable Dropdown on Hover */
.emit-top-menu .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.emit-top-bar .emit-social-icons {
    display: inline-block;
    margin-left: 20px;
}

.social-icon-link {
    position: relative;
    display: inline-block;
    width: 1em;
    height: 1em;
    font-size: 1.2em; /* Icon size */
    line-height: 1em;
    overflow: hidden;
    vertical-align: middle;
}

.social-icon-link .icon-normal,
.social-icon-link .icon-hover {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.social-icon-link .icon-normal {
    transform: translateY(0);
}

.social-icon-link .icon-hover {
    transform: translateY(100%);
}

.social-icon-link:hover .icon-normal {
    transform: translateY(-100%);
}

.social-icon-link:hover .icon-hover {
    transform: translateY(0);
}

.emit-top-bar .emit-top-menu {
    display: inline-block;
}

.emit-top-menu .dropdown-toggle::after {
    display: none; /* Hide default bootstrap arrow */
}

.main-header {
    padding: 15px 0;
    background-color: transparent; /* Changed to transparent */
    transition: all 0.3s ease;
    position: absolute; /* Position over the hero section */
    width: 100%;
    z-index: 100;
}

.site-branding img {
    max-height: 150px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-black {
    display: none;
}

.sticky-header .logo-white {
    display: none;
}

.sticky-header .logo-black {
    display: block;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation ul li {
    margin-left: 25px;
}

.main-navigation ul li a {
    text-decoration: none;
    color: #fff; /* Changed to white for transparent header */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
    transition: color 0.3s ease;
}

.main-navigation ul li a:hover {
    color: #e31e25;
    transform: scale(1.1);
}

/* Main Navigation Dropdown Styles */
.main-navigation .dropdown {
    position: relative;
}

.main-navigation .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    animation: fadeInDown 0.3s ease-out;
}

.main-navigation .dropdown-menu {
    position: absolute;
    border: none;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15), 0 5px 15px rgba(0,0,0,0.07);
    padding: 12px 0;
    min-width: 280px;
    background: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

.main-navigation .dropdown-item {
    color: #2c3e50;
    font-weight: 400;
    font-size: 14px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.main-navigation .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #e31e25, #c41e3a);
    transition: width 0.3s ease;
    z-index: -1;
}

.main-navigation .dropdown-item:hover {
    background-color: transparent;
    color: #fff;
    border-left-color: #e31e25;
    transform: translateX(5px);
}

.main-navigation .dropdown-item:hover::before {
    width: 100%;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-actions {
    margin-left: 30px;
    display: flex;
    align-items: center;
}

.header-actions button {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: #fff;
    cursor: pointer;
}

.header-actions .search-icon-trigger {
    background-color: #808080; /* Grey */
}

.header-actions .pdf-icon {
    background-color: #e31e25;
}

.header-actions .free-survey-btn {
    background-color: #e31e25;
    border-radius: 8px;
    padding: 15px 35px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    border: none;
    margin-left: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
}

.header-actions .free-survey-btn:hover {
    background-color: #c41e3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 37, 0.3);
}

.header-actions .free-survey-btn i {
    font-size: 16px;
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease-out;
    background-color: #fff; /* Add white background on scroll */
}

.sticky-header .main-navigation ul li a {
    color: #333; /* Change link color back to dark on scroll */
}

.sticky-header .main-navigation ul li a:hover {
    color: #e31e25;
    transform: scale(1.1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Admin Bar Fix */
.admin-bar .sticky-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .sticky-header {
        top: 46px;
    }
}

/* Mobile Header Styles */
.mobile-header {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-header .btn {
    font-size: 24px;
    color: #9b59b6;
}

.mobile-header .mobile-logo img {
    max-height: 40px;
}

.mobile-header .search-icon-mobile {
    font-size: 22px;
    color: #9b59b6;
}

.offcanvas-body .navbar-nav {
    flex-direction: column;
}

.offcanvas-body .navbar-nav .nav-item {
    margin-bottom: 10px;
}

.offcanvas-body .navbar-nav .nav-link {
    font-size: 18px;
    padding: 10px 0;
}

.offcanvas-body hr {
    border-top: 1px solid rgba(0,0,0,0.2);
}

/* Search Overlay Styles */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1056; /* Higher than Bootstrap's offcanvas */
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.close-search-trigger {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 50px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

.search-overlay .search-form {
    width: 80%;
    max-width: 700px;
    position: relative;
}

.search-overlay .search-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #fff;
    color: #fff;
    font-size: 40px;
    padding: 10px 0;
}

.search-overlay .search-field:focus {
    outline: none;
}

.search-overlay .search-submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* Downloads Sidebar Styles */
#downloadsSidebar .downloads-list {
    list-style: none;
    padding: 0;
}

#downloadsSidebar .downloads-list li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

#downloadsSidebar .downloads-list li a:hover {
    background-color: #f8f9fa;
}

/* Free Survey Sidebar Styles */
.free-survey-sidebar {
    background: #fff;
    color: #333;
}

.free-survey-sidebar .offcanvas-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
    color: #333;
}

.survey-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.survey-icon {
    font-size: 40px;
    color: #e31e25;
}

.survey-text h5 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: #666;
}

.survey-subtitle {
    font-size: 16px;
    margin: 5px 0 0 0;
    font-weight: 700;
    color: #e31e25;
}

.survey-form-container {
    padding: 30px 20px;
}

.survey-cta {
    text-align: center;
    margin-bottom: 30px;
}

.survey-cta-btn {
    background-color: #e31e25;
    border: none;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    width: 100%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.survey-cta-btn:hover {
    background-color: #c41e3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 37, 0.3);
}

.survey-or {
    display: block;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
}

.survey-form .form-group {
    margin-bottom: 20px;
}

.survey-form .form-control {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    color: #333;
    font-size: 14px;
}

.survey-form .form-control::placeholder {
    color: #999;
}

.survey-form .form-control:focus {
    background: #fff;
    border-color: #e31e25;
    box-shadow: 0 0 0 0.25rem rgba(227, 30, 37, 0.15);
    color: #333;
}

.phone-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.emit-top-bar-phone-number {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
}

.emit-top-bar-phone-number:hover {
    color: #fff;
}

/* Top-bar phone prefix - original style */
.phone-prefix {
    background: #e31e25;
    padding: 7px 1px;
    color: #ffffff;
    font-weight: 600;
}

/* Off-canvas phone prefix - special style */
.survey-phone-prefix {
    background: #e31e25;
    padding: 15px 12px;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: 60px;
    font-size: 14px;
}

.phone-input {
    border-radius: 0 8px 8px 0 !important;
    flex: 1;
    height: 54px;
}

.survey-form select.form-control {
    background: #f8f9fa url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 12px center/16px 12px;
}

.survey-form select.form-control option {
    background-color: #fff;
    color: #333;
}

.form-check {
    margin-bottom: 15px;
}

.form-check-input {
    background-color: #fff;
    border: 1px solid #ddd;
}

.form-check-input:checked {
    background-color: #e31e25;
    border-color: #e31e25;
}

.form-check-label {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.survey-submit-btn {
    background-color: #e31e25;
    border: none;
    border-radius: 25px;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    width: 100%;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.survey-submit-btn:hover {
    background-color: #c41e3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 30, 37, 0.3);
}

.whatsapp-contact {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-contact:hover {
    transform: scale(1.05);
}

.whatsapp-contact i {
    font-size: 24px;
    color: #25d366;
    margin-right: 8px;
}

.whatsapp-contact span {
    font-weight: 600;
    color: #333;
}

/* Floating Survey Button Styles */
.floating-survey-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #e31e25, #c41e3a);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(227, 30, 37, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    animation: pulse 2s infinite;
    min-width: 180px;
    justify-content: center;
}

.floating-survey-btn:hover {
    background: linear-gradient(135deg, #c41e3a, #a01525);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(227, 30, 37, 0.5);
    animation: none;
}

.floating-survey-btn i {
    font-size: 20px;
}

.floating-btn-text {
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(227, 30, 37, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(227, 30, 37, 0.6), 0 0 0 15px rgba(227, 30, 37, 0.1);
    }
    100% {
        box-shadow: 0 8px 25px rgba(227, 30, 37, 0.4);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-survey-btn {
        bottom: 20px;
        right: 20px;
        padding: 15px 20px;
        font-size: 14px;
        min-width: 160px;
    }
    
    .floating-survey-btn i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .floating-survey-btn {
        bottom: 15px;
        right: 15px;
        padding: 12px 18px;
        font-size: 13px;
        min-width: 140px;
        gap: 8px;
    }
    
    .floating-survey-btn i {
        font-size: 16px;
    }
}
