/* Custom CSS fixes for Laravel template integration */

/* Fix container responsiveness */
.container-1680 {
    max-width: 1680px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Fix padding left class */
.pl-165 {
    padding-left: 165px;
}

@media (max-width: 991px) {
    .pl-165 {
        padding-left: 15px;
    }
}

/* Fix hero section responsiveness */
.td-hero-content {
    z-index: 2;
    position: relative;
}

/* Fix hero social media positioning */
.td-hero-social {
    margin-top: 30px;
    gap: 15px;
}

.td-hero-social span {
    display: inline-flex;
    align-items: center;
}

.hero-border {
    width: 50px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin-left: 20px;
}

/* Fix hero shapes positioning */
.td-hero-shape-one {
    position: absolute;
    top: 50px;
    right: 50px;
    z-index: -1;
}

.td-hero-shape-two {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: -1;
}

/* Animation for hero shapes */
.up-down {
    animation: up-down 3s ease-in-out infinite alternate;
}

@keyframes up-down {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-20px);
    }
}

/* Fix WOW animations */
.td-animetion-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.td-animetion-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.td-animetion-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.td-animetion-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.td-animetion-top {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.td-animetion-top.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fix countdown timer styling */
.deal-counter li {
    display: inline-block;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px 20px;
    margin-right: 15px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    min-width: 80px;
    text-align: center;
}

.deal-counter li:after {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Fix team social icons */
.td-social-icon-style {
    position: relative;
}

.td-social-icon-style .social-toggle-icon {
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.td-social-icon-style .social-toggle-icon:hover {
    background: #FFBF00;
    color: #000;
}

.td-social-icon-style .list-wrap {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.td-social-icon-style .list-wrap.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.td-social-icon-style .list-wrap ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.td-social-icon-style .list-wrap ul li {
    margin: 0;
}

.td-social-icon-style .list-wrap ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.td-social-icon-style .list-wrap ul li a:hover {
    background: #FFBF00;
    color: #000;
}

/* Fix background image loading */
.bg-position {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Fix schedule tabs */
.td-schedule-tab-btn {
    flex-wrap: wrap;
    gap: 10px;
}

.td-schedule-tab-btn .nav-link {
    border: none;
    background: rgb(240, 240, 240);
    padding: 12px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.td-schedule-tab-btn .nav-link.active {
    background: #FFBF00;
    color: #000;
}

/* Fix mobile responsiveness */
@media (max-width: 768px) {
    .td-hero-title {
        font-size: 36px;
    }

    .deal-counter li {
        margin-right: 8px;
        padding: 10px 15px;
        font-size: 18px;
        min-width: 60px;
    }

    .td-hero-social {
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .td-schedule-tab-btn .nav-link {
        font-size: 14px;
        padding: 8px 15px;
    }
}

/* Fix text slider */
.td-text-slider-active {
    overflow: hidden;
}

.td-text-slider-item {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

/* Ensure proper z-index layering */
.td-hero-text-shape {
    z-index: 1;
}

.td-hero-content {
    z-index: 2;
}

.td-hero-thumb {
    z-index: 1;
}

/* Fix about section icons */
.td-about-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00C925 0%, #00C925 100%);
    border-radius: 50%;
    color: #000;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.td-about-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    border-radius: 50%;
}

.td-about-icon svg {
    width: 30px;
    height: 30px;
    z-index: 1;
    position: relative;
}

.td-about-item:hover .td-about-icon {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Fix footer CSS issues */
.ml-90 {
    margin-left: 90px;
}

@media (max-width: 991px) {
    .ml-90 {
        margin-left: 0;
    }
}

/* Footer spacing fixes */
.td-footer-area {
    position: relative;
    overflow: hidden;
    background: #262626;
}

.td-footer-widget .text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.td-footer-widget .number,
.td-footer-widget .email {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.td-footer-widget .number:hover,
.td-footer-widget .email:hover {
    color: #FFBF00;
}

.td-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.td-footer-links ul li {
    margin-bottom: 8px;
}

.td-footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.td-footer-links ul li a:hover {
    color: #FFBF00;
}

.td-footer-form {
    display: flex;
    margin-top: 20px;
    border: 1px solid var(--td-theme-primary);
    padding: 0 10px 0 10px;
}

/*.td-footer-form input {*/
/*    flex: 1;*/
/*    background: rgba(255, 255, 255, 0.1);*/
/*    border: 1px solid rgba(255, 255, 255, 0.2);*/
/*    color: #fff;*/
/*    padding: 12px 15px;*/
/*    border-radius: 50px 0 0 50px;*/
/*}*/

.td-footer-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.td-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.td-footer-bottom-copyright p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.td-footer-bottom-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.td-footer-bottom-social span {
    display: inline-flex;
}

.td-footer-bottom-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.td-footer-bottom-social a:hover {
    color: #FFBF00;
    background: rgba(255, 191, 0, 0.1);
}

.td-footer-bottom-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    opacity: 0.1;
}

.td-insta-text-animation {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .td-footer-bottom-social {
        justify-content: center;
        margin-top: 20px;
    }

    .td-footer-form {
        flex-direction: column;
        gap: 10px;
    }

    .td-footer-form input,
    .td-footer-form-btn {
        border-radius: 25px;
    }
}

/* Contact Form Response Styling */
.ajax-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.ajax-response.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ajax-response.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contact form validation styling */
.td-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* Contact form loading state */
.contact-form-loading {
    position: relative;
}

.contact-form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.header-sticky .dropdown-toggle {
    border-color: var(--td-theme-primary);
    color: var(--td-theme-background);
}

.td-footer-bottom-social span a:hover {
    color: var(--td-theme-secondary);
}
