/**
 * Hash Overseas Elementor Addons - Frontend Styles
 * Scoped styles for 100% exact Option 1 landing page
 * Bulletproof Theme Isolation & Font Lock System
 */

:root {
  --ho-yellow: #F5BA13;
  --ho-yellow-hover: #E5AB05;
  --ho-yellow-light: #FEF8E7;
  --ho-navy: #002855;
  --ho-navy-dark: #001A38;
  --ho-navy-light: #0A3B75;
  --ho-surface: #FDFBF7;
  --ho-text: #1E293B;
  --ho-text-muted: #64748B;
}

/* =========================================================================
   1. ROOT FONT-SIZE RESET & THEME ISOLATION
   Sublime theme sets html { font-size: 62.5% } (10px).
   This resets root font-size ONLY when Overseas widgets exist.
   ========================================================================= */
html:has(body.has-overseas-active),
html:has(body.elementor-template-canvas:has([class*="elementor-widget-overseas_"])),
html.ho-font-reset {
  font-size: 16px !important;
}

body.has-overseas-active.elementor-template-canvas {
  font-size: 16px !important;
}

/* =========================================================================
   2. HIDE THEME HEADER & FOOTER ONLY ON HASH OVERSEAS LANDING PAGE!
   NEVER hides headers or footers on the rest of the live website!
   ========================================================================= */
body.has-overseas-active.elementor-template-canvas header#masthead,
body.has-overseas-active.elementor-template-canvas header.site-header,
body.has-overseas-active.elementor-template-canvas #masthead,
body.has-overseas-active.elementor-template-canvas .hfe-header,
body.has-overseas-active.elementor-template-canvas .elementor-location-header,
body.has-overseas-active.elementor-template-canvas .sublime-header,
body.has-overseas-active.elementor-template-canvas .header-wrap,
body.has-overseas-active.elementor-template-canvas footer#colophon,
body.has-overseas-active.elementor-template-canvas footer.site-footer,
body.has-overseas-active.elementor-template-canvas .site-footer,
body.has-overseas-active.elementor-template-canvas .hfe-footer,
body.has-overseas-active.elementor-template-canvas .elementor-location-footer,
body.has-overseas-active.elementor-template-canvas .footer-wrap,
body.has-overseas-active[class*="post-name-work-permit"] header#masthead,
body.has-overseas-active[class*="post-name-work-permit"] header.site-header,
body.has-overseas-active[class*="post-name-work-permit"] #masthead,
body.has-overseas-active[class*="post-name-work-permit"] .hfe-header,
body.has-overseas-active[class*="post-name-work-permit"] footer#colophon,
body.has-overseas-active[class*="post-name-work-permit"] footer.site-footer,
body.has-overseas-active[class*="post-name-work-permit"] .site-footer,
body.has-overseas-active[class*="post-name-work-permit"] .hfe-footer,
body.has-overseas-active:has([class*="elementor-widget-overseas_navbar"]) header#masthead,
body.has-overseas-active:has([class*="elementor-widget-overseas_navbar"]) header.site-header,
body.has-overseas-active:has([class*="elementor-widget-overseas_navbar"]) #masthead,
body.has-overseas-active:has([class*="elementor-widget-overseas_navbar"]) .hfe-header,
body.has-overseas-active:has([class*="elementor-widget-overseas_navbar"]) .sublime-header,
body.has-overseas-active:has([class*="elementor-widget-overseas_footer"]) footer#colophon,
body.has-overseas-active:has([class*="elementor-widget-overseas_footer"]) footer.site-footer,
body.has-overseas-active:has([class*="elementor-widget-overseas_footer"]) .hfe-footer {
  display: none !important;
}

/* =========================================================================
   3. FORCE FULL-WIDTH EDGE-TO-EDGE ONLY ON HASH OVERSEAS LANDING PAGE!
   Does not affect any other Elementor sections on the main website!
   ========================================================================= */
body.has-overseas-active .elementor-section,
body.has-overseas-active .elementor-section.elementor-section-boxed,
body.has-overseas-active .elementor-section.elementor-section-full_width,
body.has-overseas-active .elementor-section-wrap,
body.has-overseas-active .elementor-element.e-con,
body.has-overseas-active .elementor-element.e-con-full,
body.has-overseas-active .elementor-element.e-con-boxed,
body.has-overseas-active .elementor-top-section,
body.has-overseas-active .elementor-section > .elementor-container,
body.has-overseas-active .elementor-section.elementor-section-full_width > .elementor-container,
body.has-overseas-active .elementor-section.elementor-section-boxed > .elementor-container,
body.has-overseas-active .elementor-container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.has-overseas-active .elementor-column,
body.has-overseas-active .elementor-top-column,
body.has-overseas-active .elementor-col-100,
body.has-overseas-active .elementor-widget-wrap,
body.has-overseas-active .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.has-overseas-active .elementor-widget {
  width: 100% !important;
}

/* Inner content centers cleanly at exact 1280px pixel lock - immune to theme 62.5% rem scaling */
.max-w-7xl,
.ho-section-inner {
  max-width: 1280px !important; /* Explicit 1280px pixel lock */
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  width: 100% !important;
}

/* Explicit pixel dimensions for sub-containers to prevent theme scaling */
.max-w-5xl { max-width: 1024px !important; }
.max-w-4xl { max-width: 896px !important; }
.max-w-3xl { max-width: 768px !important; }
.max-w-2xl { max-width: 672px !important; }
.max-w-xl  { max-width: 576px !important; }
.max-w-lg  { max-width: 512px !important; }
.max-w-md  { max-width: 448px !important; }

@media (min-width: 640px) {
  .max-w-7xl,
  .ho-section-inner {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (min-width: 1024px) {
  .max-w-7xl,
  .ho-section-inner {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

/* =========================================================================
   3. GLOBAL TYPOGRAPHY LOCK & THEME ISOLATION
   Ensures theme CSS (Sublime, Astra, Divi, Hello Elementor, Bootstrap, etc.)
   cannot alter fonts, spacing, headings, inputs or buttons
   ========================================================================= */

/* Box Sizing for all Hash Overseas Elements */
[class*="elementor-widget-overseas_"],
[class*="elementor-widget-overseas_"] *,
[class*="ho-"],
[class*="ho-"] * {
  box-sizing: border-box !important;
}

/* Base Body Font for Overseas Elements */
[class*="elementor-widget-overseas_"],
[class*="elementor-widget-overseas_"] p,
[class*="elementor-widget-overseas_"] span,
[class*="elementor-widget-overseas_"] div,
[class*="elementor-widget-overseas_"] li,
[class*="elementor-widget-overseas_"] a,
[class*="elementor-widget-overseas_"] label,
[class*="elementor-widget-overseas_"] select,
[class*="elementor-widget-overseas_"] input,
[class*="elementor-widget-overseas_"] textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Headings H1-H6: Always Outfit & Plus Jakarta Sans */
[class*="elementor-widget-overseas_"] h1,
[class*="elementor-widget-overseas_"] h2,
[class*="elementor-widget-overseas_"] h3,
[class*="elementor-widget-overseas_"] h4,
[class*="elementor-widget-overseas_"] h5,
[class*="elementor-widget-overseas_"] h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  text-rendering: optimizeLegibility !important;
}

/* Main Hero Headline Lock */
.ho-hero-headline,
[class*="elementor-widget-overseas_hero"] h1,
[class*="elementor-widget-overseas_hero"] .ho-hero-headline,
.ho-hero-headline * {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
}

.ho-hero-headline .ho-headline-prefix {
  color: #ffffff !important;
}

.ho-hero-headline .ho-headline-highlight {
  background: linear-gradient(to right, #F5BA13, #fde047, #fef08a) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #F5BA13 !important;
  display: block !important;
}

/* Subheadline Lock */
.ho-hero-subheadline,
[class*="elementor-widget-overseas_hero"] .ho-hero-subheadline,
.ho-hero-subheadline p,
.ho-hero-subheadline * {
  font-family: 'Inter', sans-serif !important;
  color: #cbd5e1 !important;
  font-size: 0.875rem !important;
  line-height: 1.625 !important;
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
}

/* Reset Paragraphs from Theme / Bootstrap margins */
[class*="elementor-widget-overseas_"] p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.5 !important;
}

/* Reset Links from Theme colors and underlines */
[class*="elementor-widget-overseas_"] a {
  text-decoration: none !important;
  box-shadow: none !important;
}

/* =========================================================================
   4. RESET THEME FORM INPUTS & SELECTS
   Eliminates theme 20px margin-bottom, blue backgrounds, bloated heights
   ========================================================================= */
[class*="elementor-widget-overseas_"] input,
[class*="elementor-widget-overseas_"] select,
[class*="elementor-widget-overseas_"] textarea {
  font-family: 'Inter', sans-serif !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding: 0.625rem 0.875rem !important;
  height: auto !important;
  max-height: none !important;
  background-color: #f8fafc !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  color: #1e293b !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: normal !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Specific Generous Left Padding for Inputs with Left Icons / +91 Badge to PREVENT Overlap */
[class*="elementor-widget-overseas_"] input[name="full_name"],
[class*="elementor-widget-overseas_"] input.ho-input-name,
input.ho-input-name {
  padding-left: 2.75rem !important; /* 44px space for user icon */
}

[class*="elementor-widget-overseas_"] input[name="phone"],
[class*="elementor-widget-overseas_"] input.ho-input-phone,
input.ho-input-phone {
  padding-left: 3.5rem !important; /* 56px generous space for +91 badge */
}

[class*="elementor-widget-overseas_"] input[name="email"],
[class*="elementor-widget-overseas_"] input.ho-input-email,
input.ho-input-email {
  padding-left: 2.75rem !important; /* 44px space for envelope icon */
}

[class*="elementor-widget-overseas_"] input:focus,
[class*="elementor-widget-overseas_"] select:focus,
[class*="elementor-widget-overseas_"] textarea:focus {
  background-color: #ffffff !important;
  border-color: #F5BA13 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(245, 186, 19, 0.25) !important;
}

/* Custom Dropdown Arrow for Select elements */
select.ho-lead-input,
[class*="elementor-widget-overseas_"] select.ho-lead-input {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23002855' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
  background-position: right 0.75rem center !important;
  background-repeat: no-repeat !important;
  background-size: 1.25em 1.25em !important;
  padding-right: 2.25rem !important;
}

/* =========================================================================
   5. RESET THEME BUTTONS
   Theme sets purple background #4732d7, 30px pill radius, bloated margins
   ========================================================================= */
[class*="elementor-widget-overseas_"] button,
[class*="elementor-widget-overseas_"] .button,
[class*="elementor-widget-overseas_"] input[type="submit"] {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Submit Pulse Button Exact Styles */
.ho-submit-btn,
[class*="elementor-widget-overseas_"] .ho-submit-btn {
  background-color: #F5BA13 !important;
  color: #002855 !important;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 900 !important;
  font-size: 0.875rem !important;
  border-radius: 0.75rem !important;
  border: none !important;
  border-bottom: 4px solid #d97706 !important;
  box-shadow: 0 0 25px -3px rgba(245, 186, 19, 0.45) !important;
  padding: 1rem 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: all 0.2s ease !important;
}

.ho-submit-btn:hover,
[class*="elementor-widget-overseas_"] .ho-submit-btn:hover {
  background-color: #E5AB05 !important;
  color: #002855 !important;
  transform: translateY(-1px) !important;
}

/* =========================================================================
   6. TICKER / MARQUEE TYPOGRAPHY
   ========================================================================= */
.ho-ticker-strip,
.ho-ticker-strip span,
.ho-ticker-strip div {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* =========================================================================
   7. CARDS, BADGES, METRICS AND SECTIONS
   ========================================================================= */
.ho-dest-title,
.ho-dest-card h3,
.ho-sector-card h3,
.ho-step-card h3,
.ho-review-card h4,
.ho-office-card h3,
.ho-faq-item button,
.ho-lead-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}

.ho-metric-num {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 900 !important;
}

.ho-metric-label {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
}

.ho-flag-badge-tag,
.ho-dest-badge {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
  font-weight: 900 !important;
}

/* =========================================================================
   8. PULSE & ANIMATION KEYFRAMES
   ========================================================================= */
@keyframes yellow-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 186, 19, 0.6);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 12px rgba(245, 186, 19, 0);
  }
}

.btn-pulse, .ho-btn-pulse {
  animation: yellow-pulse 2.2s infinite !important;
}

@keyframes ho-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-ticker, .ho-animate-ticker {
  display: inline-flex !important;
  white-space: nowrap !important;
  animation: ho-ticker-scroll 25s linear infinite !important;
}

.animate-ticker:hover, .ho-animate-ticker:hover {
  animation-play-state: paused !important;
}

/* Glass Effect */
.glass-navy, .ho-glass-navy {
  background: rgba(0, 40, 85, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass-card, .ho-glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.shadow-glow-yellow, .ho-shadow-glow-yellow {
  box-shadow: 0 0 25px -3px rgba(245, 186, 19, 0.45);
}

.shadow-card-funky, .ho-shadow-card {
  box-shadow: 0 12px 35px -8px rgba(0, 40, 85, 0.12), 0 4px 6px -2px rgba(245, 186, 19, 0.08);
}

.ho-faq-desc {
  transition: all 0.25s ease-in-out;
}

/* =========================================================================
   MOBILE RESPONSIVE ENGINE (10px Left-Right Padding & Auto-Responsive System)
   ========================================================================= */
@media (max-width: 767px) {
  /* 1. Global 10px Left & Right Container Padding */
  body.has-overseas-active,
  body.has-overseas-active .ho-section-inner,
  body.has-overseas-active .max-w-7xl,
  body.has-overseas-active .max-w-6xl,
  body.has-overseas-active .max-w-5xl,
  body.has-overseas-active .max-w-4xl,
  body.has-overseas-active .max-w-3xl,
  body.has-overseas-active .max-w-2xl,
  body.has-overseas-active .max-w-xl,
  body.has-overseas-active .max-w-md,
  [class*="elementor-widget-overseas_"] .max-w-7xl,
  [class*="elementor-widget-overseas_"] .max-w-6xl,
  [class*="elementor-widget-overseas_"] .max-w-5xl,
  [class*="elementor-widget-overseas_"] .max-w-4xl,
  [class*="elementor-widget-overseas_"] .max-w-3xl,
  [class*="elementor-widget-overseas_"] .max-w-2xl,
  [class*="elementor-widget-overseas_"] .max-w-xl,
  [class*="elementor-widget-overseas_"] .max-w-md,
  [class*="elementor-widget-overseas_"] section > div,
  [class*="elementor-widget-overseas_"] footer > div,
  [class*="elementor-widget-overseas_"] header > div {
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }

  /* Prevent any horizontal overflow */
  html, body.has-overseas-active {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* 2. Responsive Typography (Auto-scaling on Mobile) */
  .ho-hero-headline,
  [class*="elementor-widget-overseas_hero"] h1 {
    font-size: clamp(1.65rem, 6.5vw, 2.5rem) !important;
    line-height: 1.15 !important;
  }

  [class*="elementor-widget-overseas_"] h2 {
    font-size: clamp(1.35rem, 5vw, 2rem) !important;
    line-height: 1.2 !important;
  }

  [class*="elementor-widget-overseas_"] h3 {
    font-size: clamp(1.15rem, 4.5vw, 1.5rem) !important;
    line-height: 1.25 !important;
  }

  [class*="elementor-widget-overseas_"] h4 {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
  }

  /* 3. Hero Section Stacking & Card Spacing */
  .ho-hero-section {
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
  }

  .ho-lead-card {
    padding: 1.25rem 0.85rem !important;
    border-radius: 1.25rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ho-lead-banner {
    margin-left: -0.85rem !important;
    margin-right: -0.85rem !important;
    margin-top: -1.25rem !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  /* 4. Navbar & Topbar Responsive Stacking */
  .ho-topbar-wrapper .ho-topbar-inner {
    flex-direction: column !important;
    gap: 0.35rem !important;
    text-align: center !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .ho-navbar-wrapper .ho-navbar-inner {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
  }

  .ho-navbar-trust-badges {
    display: none !important;
  }

  /* 5. Auto-Stack Grids & Cards */
  [class*="elementor-widget-overseas_"] .grid {
    gap: 1rem !important;
  }

  .ho-step-card,
  .ho-dest-card,
  .ho-sector-card,
  .ho-review-card,
  .ho-benefit-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 6. Form Inputs & Two-Column Selects on Mobile */
  .ho-lead-form .grid-cols-1.sm\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  [class*="elementor-widget-overseas_"] input,
  [class*="elementor-widget-overseas_"] select,
  [class*="elementor-widget-overseas_"] textarea {
    font-size: 14px !important;
    height: 44px !important;
    box-sizing: border-box !important;
  }

  .ho-submit-btn,
  [class*="elementor-widget-overseas_"] .ho-submit-btn {
    min-height: 48px !important;
    font-size: 0.85rem !important;
    padding: 0.85rem 1rem !important;
  }

  /* 7. Office Card & Action Buttons */
  .ho-office-card-box {
    padding: 1.25rem 1rem !important;
    border-radius: 1.25rem !important;
    flex-direction: column !important;
    text-align: left !important;
  }

  .ho-office-call-btn,
  .ho-office-wa-btn {
    width: 100% !important;
  }

  /* 8. Footer Section */
  .ho-footer-wrapper {
    padding-top: 2rem !important;
    padding-bottom: 5.5rem !important;
  }

  /* 9. Mobile Sticky Bar Body Padding */
  body.has-overseas-active.has-overseas-mobile-bar,
  body.has-overseas-active:has(.ho-mobile-sticky-bar) {
    padding-bottom: 75px !important;
  }
}
