/* 
 * 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;
  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: #9ca3af;
  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;
  }

  /* Shown by main.js when a file is chosen (inside .cf7-upload-box, not only inside .cf7-upload-label) */
  .cf7-upload-filename {
    display: none;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    word-break: break-word;
    line-height: 1.35;
  }

  .cf7-upload-box.has-file {
    border-color: #b8b8b8;
  }
  
  .cf7-upload-input {
    opacity: 0;
    position: absolute !important;
    left: 0 !important; 
    top: 0 !important; 
    width: 100% !important; 
    height: 100% !important;
    cursor: pointer !important;
    z-index: 100 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
    pointer-events: auto !important;
  }
  
  .cf7-upload-box {
    cursor: pointer;
    position: relative;
  }
  
  .cf7-upload-box input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
  }

/* Job-form specific upload overrides to match Figma reference */
.job-application-form .cf7-upload-box {
    background: #E7E7E7; /* light grey panel */
    border-radius: 12px;
    position: relative !important;
    border: 2px dashed #d8d8d8; /* dotted/dashed outer border */
    overflow: visible !important;
}

.job-application-form .cf7-upload-box .cf7-upload-filename {
    text-align: center;
}
/* ===== 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%);
    background-clip: text;
    -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;
    }
}

/* ===== GLOBAL PAGE GUTTER ===== */
:root {
    --site-gutter: 120px; /* default desktop gutter */
    /* Ask Vantage / shared UI tokens */
    --color-primary: #FA6C12;
    --color-primary-rgb: 250, 108, 18;
    --color-foreground: #111111;
    --color-surface: #FFFFFF;
    --color-muted: #6D6D6D;
    --color-border: #E7E7E7;
    --color-section-warm: #FAF9F7;
}

.page-container {
    padding-left: var(--site-gutter);
    padding-right: var(--site-gutter);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Responsive reductions for the global gutter */
@media (max-width: 1200px) {
    :root { --site-gutter: 48px; } /* tablet */
}

@media (max-width: 768px) {
    :root { --site-gutter: 24px; } /* mobile */
}

@media (max-width: 480px) {
    :root { --site-gutter: 18px; } /* small phones */
}

/* Job Application Form Styling */
.job-application-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-application-form .form-row {
    display: flex;
    gap: 12px;
}

.job-application-form .form-col {
    flex: 1;
    min-width: 0;
}

.job-application-form .form-col-full {
    width: 100%;
}

/* Input styling */
.job-application-form input,
.job-application-form select,
.job-application-form textarea {
    width: 100%;
    height: 54px;
    padding: 12px;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    background: #ffffff;
    transition: border-color 0.3s ease;
}

.job-application-form input:focus,
.job-application-form select:focus,
.job-application-form textarea:focus {
    outline: none;
    border-color: #000000;
}

/* File upload styling */
.job-application-form input[type="file"] {
    height: auto;
    padding: 16px;
    border: 2px dashed #d1d1d1;
    border-radius: 6px;
    background: #f8f8f8;
}

.job-application-form input[type="file"]:focus {
    border-color: #000000;
}

/* Submit button */
.job-application-form .form-submit input[type="submit"] {
    width: 100%;
    height: 54px;
    background: linear-gradient(90deg, #ff77d7 0%, #fa6c12 100%);
    color: #000000;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.job-application-form .cf7-country-select-wrapper input[type="tel"] {
    padding: 12px 14px !important;
    margin: 0;
}


.job-application-form .cf7-country-select-wrapper {
    background: #fff !important;
}

.job-application-form input#expected-salary::-webkit-inner-spin-button {
    -webkit-appearance: none;
}



.job-application-form .modal-field-group.currency .currency-symbol {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #B0B0B0;
}


/* Error messages */
.job-application-form .wpcf7-not-valid {
    border-color: #ff0000 !important;
}

.job-application-form .wpcf7-not-valid-tip {
    display: none;
}
/* Validation error styling for phone field */
.job-application-form .cf7-country-select-wrapper:has(.wpcf7-not-valid) {
  border-color: #ff0000 !important;
}

/* Also handle the direct case if the wrapper itself gets the error class */
.job-application-form .cf7-country-select-wrapper.wpcf7-not-valid {
  border-color: #ff0000 !important;
}

/* Fallback for browsers that don't support :has() */
.job-application-form .wpcf7-not-valid {
  border-color: #ff0000 !important;
}

/* Override default CF7 input error styling for phone field specifically */
.job-application-form .cf7-country-select-wrapper input.wpcf7-not-valid {
  border: none !important;
}
/* whatsapp chat box styles*/
.wa-chat-box-poweredby {
    display: none;
}
.wa-chat-box-content {
    background: none !important;
    background-color: #e6ded7 !important;
}
#wa-widget-send-button {
    z-index: 5 !important;
}

/* ===== GET A QUOTE FORM STYLES ===== */

.get-quote-form .form-field-group:last-child {
    margin-bottom: 0;
}

.get-quote-form .form-field-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

.get-quote-form .wpcf7-list-item {
    margin: 0 !important;
}

.get-quote-form .wpcf7-form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #E7E7E7;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    color: #222;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.get-quote-form .wpcf7-form-control:focus {
    outline: none;
    border-color: #9ca3af;
}

.get-quote-form .wpcf7-form-control::placeholder {
    color: #9ca3af;
}



/* Checkbox styling */
.get-quote-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #FF6A3A;
    margin-right: 8px;
    cursor: pointer;
}

.get-quote-form .wpcf7-checkbox {
    display: flex;
    align-items: center;
    border: none
}

.get-quote-form .wpcf7-checkbox label {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    margin: 0;
}

/* Submit button */
.get-quote-form .btn-gradient {
    background: linear-gradient(90deg, #FF6A3A 0%, #FF77D5 100%);
   
}

/* Override and improve checkbox styling to match submit button and align left */
.get-quote-form input[type="checkbox"] {
    /* create a consistent custom checkbox */
    width: 20px;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    border: 1.5px solid #E7E7E7;
    border-radius: 6px;
    background: #fff;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}
.get-quote-form input[type="checkbox"]:checked {
    background: linear-gradient(90deg, #FF6A3A 0%, #FF77D5 100%);
    border-color: transparent;
}
.get-quote-form input[type="checkbox"]::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 7px;
    height: 11px;
    border: solid #070707;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.12s ease;
}
.get-quote-form input[type="checkbox"]:checked::after {
    transform: rotate(45deg) scale(1);
}
.get-quote-form .wpcf7-checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
}


/* ===== ASK VANTAGE HERO ===== */

/* Ensure the btn-gradient-clr helper works on inline heading spans */
.av-hero-card .btn-gradient-clr {
    background: linear-gradient(270deg, #FF77D7 0%, #FA6C12 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline;
}

/* Mobile: single-column on small screens */
@media (max-width: 991px) {
    .av-hero-card {
        flex-direction: column;
    }

    .av-macos-window {
        max-width: 100%;
    }
}


