/* 
 * Main CSS file for Sapaad theme
 * Contains custom styles for header, footer, and global components
 */

/* Global form field styles for all input, textarea, and select fields */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="password"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="search"],
.wpcf7-form input[type="file"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #E7E7E7;
  background: #fff;
  font-size: 18px;
  padding: 18px 20px;
  margin-bottom: 16px;
  color: #111;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="password"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="search"]:focus,
.wpcf7-form input[type="file"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: #FF6A3A;
  outline: none;
}

/* Remove default input autofill background for consistency */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #111 !important;
}


.cf7-upload-box {
    background: #fafafa;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    padding: 32px 16px 24px 16px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
  }
  
  .cf7-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
  }
  
  .cf7-upload-icon {
    margin-bottom: 12px;
  }
  
  .cf7-upload-main {
    font-size: 22px;
    margin-bottom: 10px;
  }
  
  .cf7-upload-cta {
    font-weight: 700;
    background: linear-gradient(90deg, #FF6A3A 0%, #FFB800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .cf7-upload-desc {
    color: #888;
    font-size: 15px;
    margin-top: 8px;
    display: block;
  }
  
  .cf7-upload-input {
    opacity: 0;
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    cursor: pointer;
    z-index: 2;
  }

/* ===== HEADER STYLES ===== */

/* Header mobile menu toggle animations */
.mobile-menu-toggle {
    transition: transform 0.2s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
}

/* Header navigation links */
.header-nav-link {
    position: relative;
    transition: color 0.2s ease;
}

.header-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, rgb(255, 107, 53), rgb(255, 58, 92));
    transition: width 0.3s ease;
}

.header-nav-link:hover::after {
    width: 100%;
}


/* Gradient button style */
.btn-gradient {
    background: linear-gradient(270deg, #FF77D7 0%, #FA6C12 100%);
}

.btn-gradient-clr {
    background: linear-gradient(270deg, #FF77D7 0%, #FA6C12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Start free trial button hover effect */
.btn-gradient-hover:hover {
    background: linear-gradient(90deg, #FF7A29 0%, #FF4ECD 100%);
    transition: all 0.2s ease;
}

/* ===== FOOTER STYLES ===== */

/* Footer accordion icons */
.collapse input[type="radio"]:checked ~ .collapse-title .accordion-icon::before {
    content: "−";
}

.collapse input[type="radio"]:not(:checked) ~ .collapse-title .accordion-icon::before {
    content: "+";
}

.accordion-icon {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.accordion-icon::before {
    content: "+";
}

.collapse input[type="radio"]:checked ~ .collapse-title .accordion-icon {
    transform: none;
}

/* Footer accordion title hover effect */
.collapse .collapse-title:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Footer link hover effects */
.footer-link {
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Footer accordion smooth transitions */
.collapse .collapse-content {
    transition: all 0.3s ease;
}

/* Logo filter for white version on dark backgrounds */
.logo-white {
    filter: brightness(0) invert(1);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

@media (max-width: 768px) {
    /* Mobile header adjustments */
    .mobile-menu {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    /* Mobile footer spacing */
    .footer-mobile-spacing {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

@media (min-width: 1024px) {
    /* Desktop header spacing */
    .header-desktop-spacing {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Desktop footer columns */
    .footer-desktop-columns {
        gap: 3rem;
    }
}

/* ===== UTILITY CLASSES ===== */

/* Smooth transitions for interactive elements */
.smooth-transition {
    transition: all 0.2s ease;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(to right, rgb(255, 107, 53), rgb(255, 58, 92));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Focus states for accessibility */
.focus-ring:focus {
    outline: 2px solid rgb(255, 107, 53);
    outline-offset: 2px;
}

/* Animation for mobile menu slide */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-animate {
    animation: slideDown 0.3s ease-out;
}

/* ===== Streamline Cards Loop Animation ===== */
.cards-loop-container {
    animation: scroll-loop 30s linear infinite;
    width: fit-content;
}

.cards-loop-container:hover {
    animation-play-state: paused;
}

@keyframes scroll-loop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-275px * 6 - 24px * 5)); /* Width of 6 cards + gaps */
    }
}

@media (max-width: 768px) {
    @keyframes scroll-loop {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-275px * 6 - 24px * 5));
        }
    }
} 


@media (min-width: 1400px) {
    .container, header .container {
        max-width: 1340px;
    }
}