/* Modern Subby.Work Theme - Construction-Focused Design */
:root {
  /* Professional-Inspired Color Palette (Blue/Purple Primary) */
  --primary: #3b82f6; /* Cleaner blue primary */
  --primary-hover: #2563eb; /* Darker blue on hover */
  --secondary: #2c3e50; /* Industrial dark blue-gray */
  --accent: #3498db; /* Professional blue */
  --success: #27ae60; /* Green for success states */
  --warning: #f39c12; /* Amber for warnings */
  --danger: #e74c3c; /* Red for errors */

  /* Neutral Colors */
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --gray-800: #212529;
  --gray-900: #0d1117;

  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #2c3e50;
  --bg-gradient: linear-gradient(
    135deg,
    #3b82f6 0%,
    #6366f1 100%
  ); /* Blue to light purple gradient */
  --heading-gradient: linear-gradient(
    135deg,
    #1d4ed8 0%,
    #c084fc 100%
  ); /* Darker blue to lighter purple gradient */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);

  --bg-steps: #f5f3ef;

  /* Text Colors */
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --text-light: #ffffff;
  --text-muted: #8e9aaf;

  /* Spacing & Layout */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Shadows - More dramatic for modern feel */
  --shadow-sm: 0 2px 4px rgba(44, 62, 80, 0.08);
  --shadow: 0 4px 16px rgba(44, 62, 80, 0.12);
  --shadow-lg: 0 8px 32px rgba(44, 62, 80, 0.16);
  --shadow-xl: 0 16px 48px rgba(44, 62, 80, 0.2);

  /* Typography */
  --font-primary: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --font-secondary: "Space Grotesk", "SF Pro Display", sans-serif;

  /* Font Sizes - Responsive Typography Scale */
  --text-xs: 0.75rem; /* 12px */
  --text-sm: 0.875rem; /* 14px */
  --text-base: 1rem; /* 16px */
  --text-lg: 1.125rem; /* 18px */
  --text-xl: 1.25rem; /* 20px */
  --text-2xl: 1.5rem; /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem; /* 36px */
  --text-5xl: 3rem; /* 48px */
  --text-6xl: 3.75rem; /* 60px */

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition: 0.25s ease-out;
  --transition-slow: 0.35s ease-out;

  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-tooltip: 1070;
}

/*------------------------------------*/
/* Animations & Keyframes */
/*------------------------------------*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
/* Reset & Base Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: #fefefe;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Prevent text cutoff issues */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-rendering: optimizeLegibility;
  -webkit-font-feature-settings: "liga", "kern";
  font-feature-settings: "liga", "kern";
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-5xl);
}
h2 {
  font-size: var(--text-4xl);
  font-weight: var(--font-semibold);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h3 {
  font-size: var(--text-3xl);
}
h4 {
  font-size: var(--text-2xl);
}
h5 {
  font-size: var(--text-xl);
}
h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

/* Responsive Typography */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: var(--text-4xl);
  }
  h2 {
    font-size: var(--text-3xl);
  }
  h3 {
    font-size: var(--text-2xl);
  }
}

/*------------------------------------*/
/* Modern Header Design */
/*------------------------------------*/
header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg-primary);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

/* Logo Styling */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-width: 200px;
  height: auto;
  transition: transform var(--transition);
}

.logo:hover img {
  transform: scale(1.02);
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  background: transparent;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-links li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient);
  transition: left var(--transition);
  z-index: -1;
  border-radius: var(--radius);
}

.nav-links li a:hover {
  color: var(--text-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.nav-links li a:hover::before {
  left: 0;
}

/*------------------------------------*/
/* Modern Site Switch Bar */
/*------------------------------------*/
.site-switch-bar {
  width: 100%;
  height: 3.5rem;
  background: linear-gradient(135deg, #ff6b35 0%, #f39c12 50%, #ffb84d 100%);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: var(--z-sticky);
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}

/* Animated background wave effect */
.site-switch-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%
  );
  z-index: 1;
  transition: left var(--transition-slow);
  animation: shimmer 3s ease-in-out infinite;
}

/* Hover background effect */
.site-switch-bar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, #e74c3c 0%, #ff6b35 50%, #f39c12 100%);
  z-index: 0;
  transition: width var(--transition-slow);
}

.site-switch-bar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.25);
}

.site-switch-bar:hover::before {
  left: 100%;
}

.site-switch-bar:hover::after {
  width: 100%;
}

.rhomboid-link {
  height: 100%;
  min-width: 220px;
  padding: 0 2.5rem;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(25px 0, 100% 0, 100% 100%, 0% 100%);
  position: relative;
  z-index: 2;
  transition: all var(--transition);
}

.site-switch-bar:hover .rhomboid-link {
  transform: scale(1.02);
}

.rhomboid-text {
  color: var(--text-light) !important;
  font-family: var(--font-primary) !important;
  font-weight: var(--font-bold) !important;
  font-size: var(--text-xl) !important;
  text-decoration: none !important;
  transition: all var(--transition);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.3px;
}

.center-hover-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(2px);
  color: var(--text-light) !important;
  font-family: var(--font-primary) !important;
  font-weight: var(--font-bold) !important;
  font-size: var(--text-xl) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.3px;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-slow);
  z-index: 3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.site-switch-bar:hover .center-hover-text {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-switch-bar:hover .rhomboid-text {
  opacity: 0;
  transform: translateY(-2px);
}

/* Shimmer animation for the ribbon */
@keyframes shimmer {
  0% {
    left: -100%;
  }
  50% {
    left: 0%;
  }
  100% {
    left: 100%;
  }
}

@media (max-width: 768px) {
  .site-switch-bar {
    display: none !important;
  }
}

/*------------------------------------*/
/* Modern Section Layouts */
/*------------------------------------*/
.section {
  width: 100%;
  padding: 4rem 0;
  position: relative;
}

.section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Hero Section - Construction-Inspired */
.section.hero {
  background: #fefefe;
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: visible;
  min-height: 60vh;
  display: flex;
  align-items: center;
  z-index: 0;
}

.section.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      ellipse 900px 700px at 20% 25%,
      rgba(255, 240, 235, 0.025) 0%,
      transparent 75%
    ),
    radial-gradient(
      ellipse 750px 550px at 80% 15%,
      rgba(235, 245, 255, 0.02) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 650px 450px at 15% 80%,
      rgba(250, 235, 240, 0.018) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 800px 600px at 85% 75%,
      rgba(240, 250, 255, 0.022) 0%,
      transparent 80%
    ),
    radial-gradient(
      ellipse 500px 400px at 60% 40%,
      rgba(255, 245, 250, 0.015) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 400px 350px at 35% 60%,
      rgba(245, 250, 255, 0.018) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 300px 250px at 70% 20%,
      rgba(255, 250, 245, 0.012) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.section.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.section.hero h1 {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 6.5vw, 4.6rem);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  padding: 0.5rem 0;
}

.hero-description {
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-description strong {
  font-weight: var(--font-bold);
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description.hero-tagline {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: white;
  border-radius: 2rem;
  padding: 0.6em 1.5em;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  display: inline-block;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  font-style: normal !important;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.hero-description.hero-tagline em {
  font-style: normal !important;
}

/* Steps Section - Modern Card Design */
.section.steps {
  background: linear-gradient(to bottom, #f8f9fa 0%, #f8f9fa 30%, #f5f3ef 100%);
  padding: 6rem 0 8rem;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.section.steps h2 {
  text-align: center;
  margin-bottom: 4rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--text-primary);
  font-family: var(--font-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
  position: relative;
}

.section.steps h2::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 2px;
}

.section.steps ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  list-style: none;
  counter-reset: step-counter;
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.section.steps ol li {
  counter-increment: step-counter;
  position: relative;
  padding: 3rem 2.5rem 2.5rem 4rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 2px solid transparent;
  overflow: hidden;
}

.section.steps ol li::before {
  content: counter(step-counter);
  position: absolute;
  top: -1px;
  left: -1px;
  width: 55px;
  height: 55px;
  background: var(--bg-gradient);
  color: var(--text-light);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  border-radius: var(--radius-lg) 0 var(--radius-lg) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section.steps ol li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.section.steps ol li:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.section.steps ol li:hover::after {
  transform: scaleX(1);
}

.section.steps ol li strong {
  color: var(--primary);
  font-weight: var(--font-semibold);
  font-size: var(--text-lg);
  display: block;
  margin-bottom: 0.5rem;
}

.section.steps ol li p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/*------------------------------------*/
/* Modern Button System */
/*------------------------------------*/

/* Action Button Container */
.action-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 0;
  padding-top: 2rem;
  flex-wrap: wrap;
}

/* Base Button Styles */
.btn-link,
.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 48px;
  white-space: nowrap;
}

/* Primary Button (Construction Orange) */
.btn-link,
.btn-primary {
  background: var(--bg-gradient);
  color: var(--text-light);
  box-shadow: var(--shadow);
}

.btn-link::before,
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1d4ed8 0%, #8b5cf6 100%);
  transition: left var(--transition);
  z-index: -1;
}

.btn-link:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-light);
}

.btn-link:hover::before,
.btn-primary:hover::before {
  left: 0;
}

/* Secondary Button */
.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Full Width Buttons */
.full-btn {
  width: 100%;
  padding: 1rem;
  font-size: var(--text-base);
  margin: 1rem 0;
  border: none;
  background: var(--bg-gradient);
  color: var(--text-light);
  border-radius: var(--radius);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition);
}

.full-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Language-specific button compatibility */
.btn-link-fr,
.btn-link-de,
.btn-link-bg {
  /* Inherit from .btn-link for compatibility */
  padding: 1rem 2rem;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  text-align: center;
  background: var(--bg-gradient);
  color: var(--text-light);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

/* Form buttons */
button.btn {
  width: 100%;
  border: none;
  padding: 0.9rem;
  font-size: 1rem;
}

/* Full width button (used in cards etc) */
.full-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  margin: 1rem 0;
  border: none;
}

/*------------------------------------*/
/* Modern Forms & Input System */
/*------------------------------------*/
.post-section {
  display: flex;
  justify-content: center;
  padding: 4rem 2rem;
  background: var(--bg-secondary);
}

.form-container {
  background: var(--bg-primary);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  position: relative;
}

.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Modern Input Styling */
input,
textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: var(--text-base);
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  transition: all var(--transition);
  appearance: none;
}

select {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: var(--text-base);
  font-family: var(--font-primary);
  color: var(--text-muted) !important;
  background: var(--bg-primary);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  transition: all var(--transition);
  appearance: none;
}

select option {
  color: var(--text-primary) !important;
}

select option[value=""] {
  color: var(--text-muted) !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

/* Focus states for accessibility */
.btn-link:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

input:disabled {
  background-color: var(--gray-100);
  color: var(--gray-500);
  cursor: not-allowed;
}

/* Textarea Specific */
textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-primary);
}

/* Select Styling */
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236C757D'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 3rem;
}

#add-post-message {
  text-align: center;
  font-weight: 600;
  margin-top: 1rem;
}

/*------------------------------------*/
/* Modern Job Listings & Cards */
/*------------------------------------*/
.container-listings {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Modern Card Design */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Job Listings Container */
.job-listing-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

#job-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  justify-items: stretch;
}

/* When job-listings contains error or loading messages */
#job-listings > .location-error,
#job-listings > .loading-message {
  grid-column: 1 / -1;
  justify-self: center;
}

/*------------------------------------*/
/* Profile Page Styling */
/*------------------------------------*/
.profile-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  min-height: 80vh;
  padding: 3rem 0;
  position: relative;
}

.profile-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 25% 80%,
      rgba(255, 107, 53, 0.02) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 20%,
      rgba(243, 156, 18, 0.015) 0%,
      transparent 50%
    );
  z-index: 0;
}

.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.profile-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 3rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient);
  transform: scaleX(0);
  transform-origin: left;
  animation: slideIn 1s ease forwards;
}

@keyframes slideIn {
  to {
    transform: scaleX(1);
  }
}

.profile-card h2 {
  font-family: var(--font-secondary);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-align: center;
}

.profile-card .sub-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: 2.5rem;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-form-grid .form-group.full-width {
  grid-column: 1 / -1;
}

.profile-card .form-group {
  margin-bottom: 1.5rem;
}

.profile-card .form-group label {
  display: block;
  font-weight: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
}

.profile-card .form-group label.radius-label {
  text-align: left;
}

.profile-card .form-control,
.profile-card input[type="text"],
.profile-card input[type="email"],
.profile-card input[type="password"],
.profile-card select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: var(--text-base);
  background: var(--bg-primary);
  transition: all var(--transition);
  color: var(--text-primary);
}

.profile-card .form-control:focus,
.profile-card input:focus,
.profile-card select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: white;
}

.profile-card .form-control:disabled,
.profile-card input:disabled,
.profile-card select:disabled {
  background: var(--gray-100);
  color: var(--text-secondary);
  cursor: not-allowed;
}

/* Ensure toggle switch checkbox is hidden */
.profile-card .switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  visibility: hidden !important;
}

/* Phone number layout - prefix and number on same line */
.phone-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.prefix-wrapper {
  flex: 0 0 auto;
  width: 120px;
}

.phone-number-wrapper {
  flex: 1;
}

.prefix-wrapper select,
.phone-number-wrapper input {
  width: 100%;
  height: 100%;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .phone-input-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .prefix-wrapper {
    min-width: auto;
  }
}

.profile-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.profile-buttons .btn,
.profile-buttons .btn-link {
  min-width: 140px;
}

#password-fields {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 1.5rem 0;
  border: 1px solid var(--gray-200);
}

#password-fields h4 {
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  margin-bottom: 1rem;
  text-align: center;
}

/* Profile page uses existing radius slider styles */

/* Responsive Profile Cards */
@media (max-width: 768px) {
  .profile-card {
    padding: 2rem 1.5rem;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .profile-buttons {
    flex-direction: column;
    align-items: center;
  }

  .profile-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .profile-container {
    padding: 0 1rem;
  }

  .profile-card {
    padding: 1.5rem 1rem;
  }

  #password-fields {
    padding: 1.5rem 1rem;
  }
}

/* ===== DURATION CARDS (ADD-POST) ===== */
.duration-options {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.duration-tile {
  flex: 1;
  min-width: 200px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #faf5ff 100%);
  border: 2px solid #c7d2fe;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px -5px rgba(99, 102, 241, 0.15),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.duration-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.duration-tile::after {
  content: "✓";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  background: var(--primary-500);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.duration-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -5px rgba(59, 130, 246, 0.25),
    0 15px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-300);
}

.duration-tile:hover::before {
  opacity: 1;
}

.duration-tile.selected,
.duration-tile.active {
  border-color: #3b82f6;
  background: linear-gradient(
    135deg,
    #60a5fa 0%,
    #5490f6 25%,
    #4f7df5 50%,
    #5b70f4 75%,
    #6366f1 100%
  );
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.15);
  transform: translateY(-6px);
}

.duration-tile.selected::before,
.duration-tile.active::before {
  opacity: 1;
  height: 6px;
}

.duration-tile.selected::after,
.duration-tile.active::after {
  opacity: 1;
  transform: scale(1);
}

.duration-tile h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.025em;
}

.duration-tile.selected h4,
.duration-tile.active h4 {
  color: white;
}

.duration-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  margin: 1rem 0;
  opacity: 0.6;
}

.duration-tile.selected .duration-divider,
.duration-tile.active .duration-divider {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  opacity: 1;
}

.duration-tile p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-600);
  font-weight: 500;
  line-height: 1.4;
}

.duration-tile.selected p,
.duration-tile.active p {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .duration-options {
    flex-direction: column;
  }

  .duration-tile {
    min-width: auto;
  }
}

@media (max-width: 1200px) {
  .job-listing-container,
  #job-listings {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .job-listing-container,
  #job-listings {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .job-card,
  .job-post {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .job-listing-container,
  #job-listings {
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .job-card,
  .job-post {
    padding: 1.25rem;
  }
}

/* Filter Section */
#skill-filter-section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

#skill-filter-section .form-group {
  flex: 1;
  margin: 0;
}

#skill-filter-section #filter-skill {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  transition: all var(--transition);
}

#skill-filter-section #filter-skill:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

#skill-filter-section #filter-button {
  position: relative;
  overflow: hidden;
  background: var(--bg-gradient);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius);
  padding: 0.875rem 2rem;
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
  z-index: 1;
}

#skill-filter-section #filter-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1d4ed8 0%, #8b5cf6 100%);
  transition: left var(--transition);
  z-index: -1;
}

#skill-filter-section #filter-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-light);
}

#skill-filter-section #filter-button:hover::before {
  left: 0;
}

/* Individual Job Cards */
.job-card,
.job-post {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.job-card::before,
.job-post::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bg-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.job-card:hover,
.job-post:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
}

.job-card:hover::before,
.job-post:hover::before {
  transform: scaleX(1);
}

.job-card h3,
.job-post h3 {
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
  line-height: 1.3;
  font-family: var(--font-secondary);
}

.job-card p,
.job-post p {
  margin: 0.75rem 0;
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

.job-card p strong,
.job-post p strong {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

/* Job Meta Information */
.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.job-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--primary);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(139, 92, 246, 0.08) 100%
  );
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.job-tag:hover {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(139, 92, 246, 0.12) 100%
  );
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

/* Enhanced Job Card Layout */
.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.job-status-badge {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.job-details {
  margin-bottom: 1.5rem;
}

.job-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.job-detail-row:last-child {
  border-bottom: none;
}

.job-detail-label {
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  min-width: 100px;
}

.job-detail-value {
  color: var(--text-primary);
  font-weight: var(--font-medium);
  text-align: right;
  flex: 1;
}

.job-subby-ref {
  font-family: var(--font-mono, monospace);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.job-contact {
  background: rgba(99, 102, 241, 0.03);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.job-contact-title {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  font-size: var(--text-sm);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.job-contact-details > div {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.job-note {
  background: rgba(249, 250, 251, 0.8);
  border-left: 3px solid var(--primary);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.job-note-title {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  font-size: var(--text-sm);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.job-note-content {
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

.job-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.job-actions .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid;
}

.job-actions .btn-outline-dark {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.2);
  background: transparent;
}

.job-actions .btn-outline-dark:hover {
  background: var(--text-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.job-actions .btn-outline-danger {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.3);
  background: transparent;
}

.job-actions .btn-outline-danger:hover {
  background: #dc2626;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

/* Expired Jobs Actions */
.job-actions-expired {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  align-items: center;
}

.btn-reactivate {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.btn-reactivate:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.tag-disabled {
  background: rgba(156, 163, 175, 0.1);
  color: var(--text-secondary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border: 1px solid rgba(156, 163, 175, 0.2);
}

@media (max-width: 768px) {
  .job-header {
    flex-direction: column;
    align-items: stretch;
  }

  .job-status-badge {
    align-self: flex-start;
  }

  .job-detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .job-detail-value {
    text-align: left;
  }

  .job-actions {
    flex-direction: column;
  }

  .job-actions-expired {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-reactivate {
    width: 100%;
  }
} /*------------------------------------*/
/* Modern Mobile Navigation */
/*------------------------------------*/
.menu-toggle,
.close-btn {
  display: none;
}

.sidebar {
  display: none;
}

@media (max-width: 768px) {
  /* Modern Hamburger Icon */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 28px;
    cursor: pointer;
    padding: 4px;
    z-index: var(--z-fixed);
  }

  .menu-toggle::before,
  .menu-toggle::after,
  .menu-toggle {
    border-radius: 2px;
  }

  .menu-toggle::before {
    content: "";
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition);
  }

  .menu-toggle::after {
    content: "";
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition);
  }

  /* Hide desktop navigation */
  nav .nav-links {
    display: none;
  }

  /* Modern Sidebar Design */
  .sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 320px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    z-index: var(--z-modal);
    transition: right var(--transition-slow);
    border-left: 4px solid var(--primary);
  }

  .sidebar.active {
    display: flex;
    flex-direction: column;
    right: 0;
  }

  /* Modern Close Button */
  .close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    width: 40px;
    height: 40px;
    background: var(--gray-200);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all var(--transition);
  }

  .close-btn:hover {
    background: var(--primary);
    color: var(--text-light);
  }

  /* Sidebar Navigation */
  .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .sidebar ul li {
    margin-bottom: 0;
  }

  .sidebar ul li a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all var(--transition);
    margin-bottom: 0.5rem;
  }

  .sidebar ul li a:hover {
    background: var(--bg-gradient);
    color: var(--text-light);
    transform: translateX(8px);
  }

  /* Modern Overlay */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(44, 62, 80, 0.7);
    backdrop-filter: blur(4px);
    z-index: calc(var(--z-modal) - 10);
    transition: opacity var(--transition);
  }

  .sidebar.active ~ .overlay {
    display: block;
  }
}

/*------------------------------------*/
/* Modern Auth Section - Login & Registration */
/*------------------------------------*/
.section.auth-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  position: relative;
}

.section.auth-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 80%,
      rgba(255, 107, 53, 0.03) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 20%,
      rgba(243, 156, 18, 0.02) 0%,
      transparent 60%
    );
  z-index: 0;
}

.auth-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(44, 62, 80, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2.5rem 2rem 2rem;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.auth-card .form-group {
  margin-bottom: 1.125rem;
}

.auth-card .auth-form {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.auth-header {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.auth-header h1 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: 0;
  font-weight: var(--font-medium);
}

.auth-form .form-group {
  margin-bottom: 1.125rem;
  width: 100%;
}

.auth-form .form-group:last-of-type {
  margin-bottom: 0.875rem;
}

.auth-form .form-group > label {
  display: block;
  margin-bottom: 0.375rem;
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.auth-form label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.025em;
}

.form-input {
  width: 100%;
  padding: 1rem;
  font-size: var(--text-base);
  font-family: var(--font-primary);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all var(--transition);
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: rgba(59, 130, 246, 0.02);
}

.form-input::placeholder {
  color: var(--text-muted);
  font-weight: var(--font-normal);
}

/* Modern Auth Buttons */
.btn-full {
  width: 100%;
  margin-top: 1.5rem;
}

.btn.btn-primary {
  background: var(--bg-gradient);
  color: var(--text-light);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.btn.btn-secondary {
  background: transparent;
  color: var(--primary);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn.btn-secondary:hover {
  background: var(--primary);
  color: var(--text-light);
  transform: translateY(-1px);
}

/* Auth Links and Footer */
.recaptcha-wrapper {
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-links {
  text-align: center;
  margin: 2rem 0;
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: all var(--transition);
}

.auth-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  margin-top: 1.5rem;
  width: 100%;
}

.auth-footer p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Form Status Messages */
.form-status-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  text-align: center;
}

/* Register-Specific Styling */
.auth-tagline {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: white;
  border-radius: 2rem;
  padding: 0.5em 1.2em;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  display: inline-block;
  margin-top: 1.5rem;
  font-style: normal !important;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.auth-tagline em {
  font-style: normal !important;
}

.phone-flex-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0;
  width: 100%;
}

.phone-prefix {
  flex: 0 0 160px;
  width: 160px;
}

.phone-number {
  flex: 1;
  min-width: 0;
  width: auto;
}

.checkbox-group {
  margin: 0.75rem 0;
}

.auth-form .checkbox-group {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.form-group .checkbox-label,
.auth-form .checkbox-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 0.25rem 0;
  max-width: 100%;
  text-align: left !important;
  word-spacing: normal !important;
  white-space: normal !important;
}

/* Text content after checkbox should stay on one line when possible */
.form-group .checkbox-label input[type="checkbox"] + *,
.auth-form .checkbox-label input[type="checkbox"] + * {
  flex: 1;
  min-width: 0;
  font-size: inherit !important;
  text-align: left !important;
  word-spacing: normal !important;
  letter-spacing: normal !important;
}

/* Ensure checkbox labels don't wrap unnecessarily */
.form-group .checkbox-label,
.auth-form .checkbox-label {
  flex-wrap: nowrap !important;
}

/* Control spacing of links within checkbox labels */
.form-group .checkbox-label a,
.auth-form .checkbox-label a {
  margin: 0 !important;
  padding: 0 !important;
  display: inline !important;
  box-sizing: content-box !important;
  border: none !important;
  outline: none !important;
}

/* Ensure no extra spacing around link text */
.form-group .checkbox-label a:before,
.form-group .checkbox-label a:after,
.auth-form .checkbox-label a:before,
.auth-form .checkbox-label a:after {
  content: none !important;
}

/* Force links to only cover their text content */
.form-group .checkbox-label a,
.auth-form .checkbox-label a {
  white-space: nowrap !important;
  text-indent: 0 !important;
  line-height: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
}

/* Add slight spacing around links in span for readability */
.form-group .checkbox-label span a,
.auth-form .checkbox-label span a {
  margin: 0 0.1em !important;
}

/* Ensure proper spacing for checkbox text span */
.form-group .checkbox-label span,
.auth-form .checkbox-label span {
  word-spacing: 0.3em !important;
  letter-spacing: normal !important;
  line-height: 1.5 !important;
  display: inline !important;
}

/* Add a bit more breathing room between words */
.form-group .checkbox-label span,
.auth-form .checkbox-label span {
  font-size: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Text spacing is now controlled in the main checkbox-label rule above */

/* For longer text like terms acceptance, allow slightly wider form on larger screens */
@media (min-width: 576px) {
  .auth-card {
    max-width: 600px !important;
  }
}

.form-group .checkbox-label input[type="checkbox"],
.auth-form .checkbox-label input[type="checkbox"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 10px !important;
  height: 10px !important;
  border: 1px solid var(--primary) !important;
  border-radius: 2px !important;
  cursor: pointer;
  position: relative;
  margin: 0 !important;
  flex-shrink: 0;
  vertical-align: middle;
  background-color: white !important;
  transition: all var(--transition);
}

.form-group .checkbox-label input[type="checkbox"]:checked,
.auth-form .checkbox-label input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%) !important;
  border-color: var(--primary) !important;
}

.form-group .checkbox-label input[type="checkbox"]:checked::before,
.auth-form .checkbox-label input[type="checkbox"]:checked::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 45% !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
  width: 4px !important;
  height: 8px !important;
  border: solid white !important;
  border-width: 0 2px 2px 0 !important;
  display: block !important;
}

.checkbox-text {
  line-height: 1.4;
}

.checkbox-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: var(--font-medium);
}

.checkbox-text a:hover {
  text-decoration: underline;
}

.radius-slider-group {
  padding: 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.08) 0%,
    rgba(243, 156, 18, 0.08) 100%
  );
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 107, 53, 0.15);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
  margin: 1rem 0;
}

.radius-label {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Slider styles moved to line 2114 */

.tick-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  padding: 0 0.5rem;
}

.autocomplete-wrapper {
  position: relative;
  z-index: 100;
}

#addressSuggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--gray-200);
  z-index: 101;
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 640px) {
  .auth-card {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  .auth-header h1 {
    font-size: var(--text-2xl);
  }

  .phone-flex-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .phone-prefix {
    flex: none;
  }
}

.register-login-container .btn.btn-dark:hover {
  background-color: var(--primary-hover);
}

.register-login-container select {
  color: var(--text-muted);
  font-weight: var(--font-normal);
}

.register-login-container select option[value=""] {
  color: var(--text-muted);
  font-weight: var(--font-normal);
}

.register-login-container select option {
  color: #111 !important;
  font-weight: var(--font-normal);
}

/* When a real value is selected */
.register-login-container select.form-control:valid {
  color: var(--text-primary);
  font-weight: var(--font-normal);
}

/* When the selected option is NOT the placeholder (value != "") */
.register-login-container
  select.form-control:has(option:checked:not([value=""])) {
  color: #111;
}

@media (max-width: 768px) {
  /* 1. Make selects match input appearance */
  .register-login-container select.form-control {
    font-size: 1rem;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    background-color: #fff;
    color: var(--neutral);
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none;
  }

  /* 2. Placeholder-style option color */
  .register-login-container select.form-control option[value=""] {
    color: var(--text-muted);
  }

  /* 3. Phone field layout improvements */
  .phone-flex-group {
    flex-direction: row;
    gap: 1rem;
  }

  .phone-flex-group select {
    flex: 0 0 30%;
    /* Prefix narrower */
    max-width: 120px;
  }

  .phone-flex-group input {
    flex: 1 1 70%;
    /* Phone wider */
    min-width: 0;
  }
}

/* Login Link below form */
.login-link {
  text-align: center;
}

.login-link p {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.login-link .btn-outline-dark {
  padding: 0.6rem 1.5rem;
  font-weight: bold;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background-color: transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

.login-link .btn-outline-dark:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Terms and Conditions Checkbox Alignment */
.terms-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  gap: 0.5rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
  text-align: center;
}

.terms-container input[type="checkbox"] {
  transform: scale(1.1);
  accent-color: var(--primary);
}

.terms-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  font-family: "Segoe UI", Roboto, sans-serif;
}

.terms-container h1 {
  text-align: left;
  font-size: 1.2rem;
  color: #111;
  margin-bottom: 1rem;
  font-weight: 600;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.terms-container h2 {
  text-align: left;
  font-size: 0.9rem;
  color: #111;
  margin-top: 0.7rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  border-left: 4px solid #444;
  padding-left: 0.75rem;
}

.terms-container p {
  text-align: left;
  font-size: 0.7rem;
  color: #333;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.terms-container ul {
  margin-left: 1rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.terms-container li {
  font-size: 0.7rem;
  color: #333;
  margin-bottom: 0.7rem;
  line-height: 1.6;
}

.terms-container h2,
.terms-container p,
.terms-container ul {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  clear: both;
}

.terms-container-register {
  max-width: 1000px;
  margin: 0 auto 1.5rem auto;
  padding: 0.5rem;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terms-container-register input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.terms-container-register a {
  color: #4b0082;
  text-decoration: underline;
}

.terms-container-register label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .terms-container {
    padding: 1.5rem 1rem !important;
  }
}

/* Dashboard Styling */
.dashboard-section {
  background: #fefefe;
  padding: 3rem 1rem 4rem;
  position: relative;
}

.dashboard-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      ellipse 600px 400px at 15% 20%,
      rgba(255, 240, 235, 0.015) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 500px 350px at 85% 80%,
      rgba(235, 245, 255, 0.012) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 400px 300px at 50% 50%,
      rgba(250, 235, 240, 0.01) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.dashboard-container h2 {
  font-family: var(--font-secondary);
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.dashboard-container .sub-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-container .action-buttons a {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  max-width: 200px;
  width: auto;
}

/* Job Statistics Cards */
.job-stat-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0 3rem;
}

.job-stat {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(10px);
}

.job-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bg-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.job-stat:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
  text-decoration: none;
}

.job-stat:hover::before {
  transform: scaleX(1);
}

.stat-number {
  font-size: 3rem;
  font-weight: var(--font-bold);
  font-family: var(--font-secondary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  line-height: 1.3;
}

.active-stat .stat-number {
  color: #22c55e;
}

.expired-stat .stat-number {
  color: #ef4444;
}

.active-stat::before {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.expired-stat::before {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Dashboard Action Buttons Spacing */
.profile-card .action-buttons {
  margin: 1rem 0 2.5rem 0;
  text-align: center;
}

.profile-card .job-filter-container {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

input[disabled] {
  background-color: #f5f8ff !important;
  /* soft green background */
  color: var(--neutral) !important;
  /* soft green text */
  opacity: 1 !important;
  /* fixes Safari/Firefox fading */
  cursor: default;
}

/* Help Page Custom Styling */
.help-list {
  list-style-type: none;
  padding: 0;
  margin: 1rem 0;
}

.help-list li {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.help-list a {
  color: var(--primary);
  text-decoration: none;
}

.help-list a:hover {
  text-decoration: underline;
}

.faq-item {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.faq-item h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 1rem;
  color: var(--neutral);
}

/*------------------------------------*/
/* Section Layouts */
/*------------------------------------*/

.section-help {
  background-color: #ffffff;
  width: 100%;
  padding: 4rem 1rem;
}

.section-help .container-help {
  max-width: 900px;
  background-color: #fff;
  margin: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.section-help-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.btn-link-help {
  padding: 0.9rem 2rem;
  font-size: 1.5rem;
  width: auto;
  font-weight: 600;
  text-align: center;
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-link-help:hover {
  background-color: var(--primary-hover);
}

.container-footer {
  background-color: #1e1e1e;
  color: #f0f0f0;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  border-top: 2px solid #333;
}

.container-footer p {
  margin: 0;
}

.forgot-password-form {
  margin-bottom: 1rem;
}

.forgot-link {
  margin-top: 1.5rem;
  color: #333;
  text-decoration: underline;
}

.form-status-message {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  display: none !important; /* Force hide old status messages */
  visibility: hidden;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-status-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.forgot-link-wrapper {
  margin-top: 1.5rem;
}

.phone-flex-group {
  display: flex;
  gap: 1rem;
}

.phone-flex-group select {
  flex: 0.4;
}

.phone-flex-group input {
  flex: 1;
}

/* Improved Styled Slider */
.tick-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
  padding: 0 2px;
}

.styled-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 40px;
  background-color: #ffffff !important;
  border-radius: var(--radius-lg);
  outline: none;
  cursor: pointer;
  margin: 0;
  border: none;
  position: relative;
  z-index: 1;
}

.styled-slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--slider-value, 0%);
  height: 100%;
  background: linear-gradient(to right, #3b82f6, #60a5fa);
  border-radius: var(--radius-lg);
  transition: width 0.1s ease;
  z-index: 2;
}

.styled-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  opacity: 0;
}

.styled-slider::-moz-range-thumb {
  width: 0;
  height: 0;
  opacity: 0;
  border: 0;
}

.styled-slider::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  appearance: none;
  background: transparent !important;
  border: none;
  height: 40px;
}

.styled-slider::-moz-range-track {
  background: transparent !important;
  border: none;
  height: 40px;
}

/* Wrapper */
.autocomplete-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
}

/* Input: fully rounded always */
#companyAddressInput {
  border-radius: 6px;
  position: relative;
  z-index: 2;
  border: 1px solid #ccc;
}

/* Suggestions box: appears on top, fixes double border */
#addressSuggestions {
  position: absolute;
  top: calc(100% - 1px);
  /* eliminate visual gap */
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  border-top: none !important;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1;
  pointer-events: auto;
}

#addressSuggestions:empty {
  border: transparent;
}

/* Suggestion items */
.suggestion {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  border-top: 1px solid #eee;
}

/* First suggestion shouldn't have top border */
.suggestion:first-child {
  border-top: none;
}

/* Last one gets round bottom */
#addressSuggestions .suggestion:last-child {
  border-radius: 0 0 6px 6px;
}

/* Hover state */
.suggestion:hover {
  background-color: #f2f2f2;
}

.required-asterisk {
  color: red;
  margin-left: 4px;
}

/*------------------------------------*/
/* Modern Footer Design */
/*------------------------------------*/
.container-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 0 2rem;
  border-top: 4px solid var(--primary);
  position: relative;
}

.container-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.footer-flex {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-left p {
  margin: 0;
  color: var(--text-light);
  font-size: var(--text-sm);
  opacity: 0.9;
}

.footer-right.horizontal-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-self: center;
}

.footer-right.horizontal-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition);
}

.footer-right.horizontal-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.footer-right.horizontal-links a:hover {
  color: var(--primary);
}

.footer-right.horizontal-links a:hover::after {
  width: 100%;
}

.footer-right.horizontal-links .divider {
  height: 1.5rem;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
  display: inline-block;
}

.footer-lang {
  justify-self: end;
  position: relative;
}

.footer-lang select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-family: var(--font-primary);
  font-weight: var(--font-semibold);
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(15px);
  min-width: 120px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-image: linear-gradient(
      135deg,
      transparent 0%,
      rgba(255, 255, 255, 0.05) 100%
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 0, right 0.75rem center;
  background-size: 100% 100%, 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-lang select:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.footer-lang select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

.footer-lang select option {
  background: var(--gray-800);
  color: var(--text-light);
  padding: 0.75rem 1rem;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border: none;
  border-radius: var(--radius-md);
  line-height: 1.4;
  margin: 0.125rem;
}

/* Language Selector General Styling */
#lang-select {
  color: white !important;
}

#lang-select option {
  color: white !important;
  background: var(--gray-800) !important;
}

#lang-select option:checked {
  background: #3b82f6 !important;
  color: white !important;
  font-weight: 600 !important;
}

#lang-select option:hover {
  background: rgba(59, 130, 246, 0.2) !important;
}

/*------------------------------------*/
/* Modern Help Page Styling */
/*------------------------------------*/

/* Help Hero Section */
.help-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 6rem 0 4rem 0;
  position: relative;
}

.help-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 80%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.help-hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.help-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-bold);
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.help-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Help Contact Section */
.help-contact {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.help-contact h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: var(--font-semibold);
  font-family: var(--font-secondary);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--bg-primary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: white;
  margin-bottom: 1.5rem;
}

.contact-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.contact-link {
  display: inline-block;
  color: var(--primary);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.social-section {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.social-section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: color var(--transition);
}

.social-link:hover {
  color: var(--primary-hover);
}

/* Help FAQ Section */
.help-faq {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.help-faq h2 {
  text-align: center;
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.faq-category {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-category h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-200);
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h4 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: var(--text-sm);
}

.faq-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: var(--font-medium);
}

.faq-item a:hover {
  text-decoration: underline;
}

/* Help CTA Section */
.help-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  color: #1e40af;
}

.cta-content {
  text-align: center;
}

.help-cta h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
  color: #1e40af;
}

.help-cta p {
  font-size: var(--text-lg);
  margin-bottom: 2rem;
  color: #374151;
  opacity: 0.95;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
}

/* Responsive Design */
@media (max-width: 768px) {
  .help-hero {
    padding: 4rem 0 3rem 0;
  }

  .help-contact,
  .help-faq,
  .help-cta {
    padding: 3rem 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card,
  .faq-category {
    padding: 1.5rem;
  }
}

.footer-lang select option:hover {
  background: var(--primary);
  color: var(--text-light);
}

.footer-lang select option:checked {
  background: var(--primary);
  color: var(--text-light);
  font-weight: var(--font-bold);
}

.footer-lang select option:focus {
  background: var(--primary-hover);
  color: var(--text-light);
}

/* Enhanced select dropdown for modern browsers */
.footer-lang select::-webkit-scrollbar {
  width: 6px;
}

.footer-lang select::-webkit-scrollbar-track {
  background: var(--gray-200);
  border-radius: 3px;
}

.footer-lang select::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.footer-lang select::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Enhanced language options with flags and better styling */
.footer-lang select option[value="en"] {
  background-image: linear-gradient(
    90deg,
    rgba(255, 107, 53, 0.1) 0%,
    transparent 100%
  );
}

.footer-lang select option[value="en"]::before {
  content: "🇬🇧  ";
  font-size: 1.1em;
  margin-right: 0.5rem;
}

.footer-lang select option[value="fr"] {
  background-image: linear-gradient(
    90deg,
    rgba(255, 107, 53, 0.1) 0%,
    transparent 100%
  );
}

.footer-lang select option[value="fr"]::before {
  content: "🇫🇷  ";
  font-size: 1.1em;
  margin-right: 0.5rem;
}

.footer-lang select option[value="de"] {
  background-image: linear-gradient(
    90deg,
    rgba(255, 107, 53, 0.1) 0%,
    transparent 100%
  );
}

.footer-lang select option[value="de"]::before {
  content: "🇩🇪  ";
  font-size: 1.1em;
  margin-right: 0.5rem;
}

.footer-lang select option[value="bg"] {
  background-image: linear-gradient(
    90deg,
    rgba(255, 107, 53, 0.1) 0%,
    transparent 100%
  );
}

.footer-lang select option[value="bg"]::before {
  content: "🇧🇬  ";
  font-size: 1.1em;
  margin-right: 0.5rem;
}

/* Enhanced dropdown with better visual feedback */
.footer-lang::before {
  content: "🌐";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1em;
  pointer-events: none;
  opacity: 0.8;
  transition: all var(--transition);
}

.footer-lang:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.footer-lang select {
  padding-left: 2.75rem;
}

.footer-short-text {
  display: none;
}

/*------------------------------------*/
/* Responsive Design */
/*------------------------------------*/

/* Tablet Styles */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .section.steps ol {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .nav-links {
    gap: 1rem;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Header Mobile */
  header {
    padding: 1rem;
  }

  .logo img {
    max-width: 150px;
  }

  /* Hero Mobile */
  .section.hero {
    padding: 5rem 0 4rem;
    min-height: 50vh;
  }

  .section.hero h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
  }

  .hero-description {
    font-size: var(--text-lg);
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* Steps Mobile */
  .section.steps {
    padding: 4rem 0;
  }

  .section.steps ol {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .section.steps ol li {
    padding: 2.5rem 2rem 2rem 3.5rem;
    margin: 0 1rem;
  }

  .section.steps ol li::before {
    width: 45px;
    height: 45px;
    font-size: var(--text-lg);
  }

  /* Buttons Mobile */
  .action-buttons {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0;
    padding: 2rem 2rem 0;
  }

  .btn-link {
    width: 100%;
    max-width: 280px;
    min-height: 52px;
  }

  /* Forms Mobile */
  .form-container {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  /* Footer Mobile */
  .footer-flex {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-left,
  .footer-lang {
    justify-self: center;
  }

  .footer-lang select {
    min-width: 140px;
    padding: 0.875rem 2.75rem 0.875rem 1.25rem;
    font-size: var(--text-base);
  }

  .footer-full-text {
    display: none;
  }

  .footer-short-text {
    display: inline;
  }

  .footer-right.horizontal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .footer-right.horizontal-links .divider {
    height: 1rem;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section.hero h1 {
    font-size: 2rem;
  }

  .section.steps ol li {
    padding: 2rem 1.5rem 1.5rem 3rem;
    margin: 0 0.5rem;
  }

  .section.steps ol li::before {
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
  }

  .auth-card {
    margin: 0 0.125rem;
    padding: 1.75rem 0.875rem;
  }

  .btn-link {
    padding: 0.875rem 1.5rem;
    font-size: var(--text-sm);
  }
}

/*------------------------------------*/
/* Utility Classes */
/*------------------------------------*/
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}

.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}

.hidden {
  display: none !important;
}
.visible {
  display: block !important;
}

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}

.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}

.rounded {
  border-radius: var(--radius);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-xl {
  border-radius: var(--radius-xl);
}

.shadow {
  box-shadow: var(--shadow);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}
.shadow-xl {
  box-shadow: var(--shadow-xl);
}

/*------------------------------------*/
/* Modern Legal Pages Styling */
/*------------------------------------*/

.terms-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 4rem 0;
  position: relative;
}

.terms-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 107, 53, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 184, 77, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.terms-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  font-family: var(--font-primary);
  position: relative;
  z-index: 2;
}

.terms-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.terms-container h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: var(--font-bold);
  background: var(--heading-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.terms-container > p:first-of-type {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: 2rem;
  font-style: italic;
}

.terms-container h2 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
  position: relative;
}

.terms-container h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--bg-gradient);
}

.terms-container h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.terms-container p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
  text-align: justify;
}

.terms-container ul,
.terms-container ol {
  margin: 1rem 0 1.5rem 0;
  padding-left: 1.5rem;
}

.terms-container li {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.terms-container li strong {
  color: var(--text-primary);
  font-weight: var(--font-semibold);
}

.terms-container a {
  color: var(--primary);
  text-decoration: none;
  font-weight: var(--font-medium);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.terms-container a:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
}

.terms-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-primary);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.terms-container th,
.terms-container td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.terms-container th {
  background: var(--bg-secondary);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.terms-container td {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.terms-container blockquote {
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .terms-section {
    padding: 2rem 0;
  }

  .terms-container {
    margin: 0 1rem;
    padding: 2rem 1.5rem;
  }

  .terms-container h1 {
    font-size: 1.75rem;
  }

  .terms-container h2 {
    font-size: var(--text-lg);
    margin-top: 2rem;
  }

  .terms-container p,
  .terms-container li {
    font-size: var(--text-sm);
    text-align: left;
  }

  .terms-container ul,
  .terms-container ol {
    padding-left: 1rem;
  }
}

.terms-container a {
  color: #000;
  text-decoration: underline;
}

.site-switch-bar.full-clickable {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
}

.full-banner-link {
  text-decoration: none !important;
  color: inherit;
}

.full-banner-link .rhomboid-text {
  text-decoration: none !important;
  color: var(--text-light) !important;
  font-family: var(--font-primary) !important;
  font-weight: var(--font-bold) !important;
  font-size: var(--text-xl) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  letter-spacing: 0.3px !important;
}

.full-banner-link .center-hover-text {
  color: var(--text-light) !important;
  font-family: var(--font-primary) !important;
  font-weight: var(--font-bold) !important;
  font-size: var(--text-xl) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  letter-spacing: 0.3px !important;
}

/* Mobile styling index page*/

@media (max-width: 768px) {
  .section.hero .container {
    text-align: center;
  }

  .hero-description {
    padding: 0 1rem;
    text-align: center;
  }
}

.mobile-break {
  display: none;
}

@media (max-width: 768px) {
  .mobile-break {
    display: block;
    height: 0.75rem; /* Adds space */
  }
}

@media (max-width: 768px) {
  .section.hero {
    padding-top: 3rem !important; /* Reduced from 6rem */
  }
}

/*------------------------------------*/
/* Modern Cookie Banner */
/*------------------------------------*/
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-primary);
  border-top: 4px solid var(--primary);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  padding: 1.5rem 2rem;
  display: none;
  z-index: var(--z-modal);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  transition: all var(--transition);
  animation: slideInUp 0.4s ease-out;
}

/* When cookie banner is shown */
.cookie-consent[style*="flex"] {
  display: flex !important;
}

.cookie-consent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bg-gradient);
}

.cookie-consent p {
  margin: 0;
  color: var(--text-primary);
  flex: 1 1 auto;
  font-weight: var(--font-medium);
  line-height: 1.5;
}

.cookie-consent a {
  color: var(--primary);
  text-decoration: none;
  font-weight: var(--font-semibold);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.cookie-consent a:hover {
  border-bottom-color: var(--primary);
  color: var(--primary-hover);
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Cookie Buttons */
.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-sm);
  font-family: var(--font-primary);
  font-weight: var(--font-semibold);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 44px;
  white-space: nowrap;
}

/* Primary Accept Button */
#accept-all {
  background: var(--bg-gradient);
  color: var(--text-light);
  box-shadow: var(--shadow);
}

#accept-all:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Secondary Decline Button */
#decline-all {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--gray-300);
}

#decline-all:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Tertiary Customize Button */
#customize-cookies {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

#customize-cookies:hover {
  background: var(--primary);
  color: var(--text-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: calc(var(--z-modal) + 10);
  animation: fadeIn 0.3s ease-out;
}

.cookie-modal-content {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  font-family: var(--font-primary);
  border: 1px solid var(--gray-200);
  position: relative;
  animation: slideInScale 0.3s ease-out;
  overflow: hidden;
}

.cookie-modal-content::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 4px;
  background: var(--bg-gradient);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInScale {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.cookie-modal-content h2 {
  font-size: var(--text-2xl);
  font-family: var(--font-secondary);
  font-weight: var(--font-bold);
  margin: 0 0 2rem;
  color: var(--text-primary);
  text-align: center;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--gray-100);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.cookie-option:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

.cookie-label {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

/* Modern Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background: var(--gray-300);
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: all var(--transition);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider:before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: var(--bg-primary);
  border-radius: 50%;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.slider:hover {
  background: var(--gray-400);
}

input:checked + .slider {
  background: var(--bg-gradient);
  box-shadow: inset 0 2px 4px rgba(59, 130, 246, 0.2);
}

input:checked + .slider:before {
  transform: translateX(24px);
  box-shadow: var(--shadow);
}

input:focus + .slider {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.slider.round {
  border-radius: 34px;
}

/* Save Button in Modal */
.cookie-buttons.center {
  justify-content: center;
  margin-top: 2rem;
}

.cookie-buttons.center button {
  background: var(--bg-gradient);
  color: var(--text-light);
  border: 2px solid transparent;
  padding: 1rem 2rem;
  font-size: var(--text-base);
  min-width: 160px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cookie-buttons.center button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.cookie-buttons.center button:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

/* Cookie Banner Responsive Design */
@media (max-width: 768px) {
  .cookie-consent {
    padding: 1.25rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cookie-consent p {
    font-size: var(--text-sm);
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
  }

  .cookie-buttons button {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-size: var(--text-xs);
  }

  .cookie-modal-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .cookie-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0.75rem;
  }

  .cookie-option .switch {
    align-self: flex-end;
  }

  .cookie-buttons.center button {
    padding: 1.25rem 2rem;
    font-size: var(--text-base);
    min-height: 48px; /* Ensure minimum touch target size */
    width: 100%;
    max-width: 280px;
    border-radius: var(--radius);
    position: relative;
    z-index: 10;
  }

  #save-cookie-settings {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
}

.dashboard-section-resend-email {
  background-color: #fff;
  padding: 4rem 1rem;
}

.dashboard-container-resend-email {
  max-width: 900px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.dashboard-container-resend-email h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.dashboard-container-resend-email .sub-text {
  text-align: center;
  color: var(--neutral);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.dashboard-container-resend-email .action-buttons a {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  max-width: 200px;
  width: auto;
}

.dashboard-container-resend-email {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Ensure proper spacing under the heading */
.dashboard-container-resend-email h2 {
  margin-bottom: 2.5rem;
}

/* Style instruction paragraphs */
.verification-instruction {
  font-size: 1.15rem;
  color: #444;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

/* Center and style Back to Login */
.back-to-login {
  margin-bottom: 2rem;
}
.back-to-login a {
  color: #274cef;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 2px solid #274cef;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}
.back-to-login a:hover {
  background-color: #274cef;
  color: #fff;
}

.resend-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  margin-top: 1rem;
}

.resend-form input[type="email"] {
  flex: 1 1 350px;
  max-width: 400px;
  min-width: 200px;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  transition: border-color 0.3s ease;
}

.resend-form input[type="email"]:focus {
  border-color: #5c3aff;
  box-shadow: 0 0 0 2px rgba(92, 58, 255, 0.1);
}

.resend-form .resend-button {
  flex: 0 0 auto;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.resend-form .resend-button:hover {
  background-color: var(--primary-hover);
}

/* Auth card resend form styling - ensure input matches button width */
.auth-card .resend-form {
  display: block !important;
  flex-direction: column !important;
  gap: 0 !important;
  max-width: none !important;
  margin-top: 0 !important;
  width: 100%;
}

.auth-card .resend-form .form-group {
  margin-bottom: 1rem;
  width: 100%;
}

.auth-card .resend-form .form-input {
  width: 100% !important;
  max-width: none !important;
  min-width: auto !important;
  flex: none !important;
  box-sizing: border-box;
}

.auth-card .resend-form .btn-full {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  box-sizing: border-box;
}

/* Styling of the footer to not float */
body.footer-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.footer-layout main {
  flex: 1;
}

/* Highlight foreign job cards */
.job-post.foreign-job {
  border: 2px solid #f96922;
  background-color: #f8faff;
}

/* Foreign job label */
.job-post .foreign-label {
  display: inline-block;
  background-color: #f96922;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #f96922;
}

input:checked + .slider:before {
  transform: translateX(18px);
}

.slider.round {
  border-radius: 34px;
}

@media (max-width: 768px) {
  #filter-skill {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #444; /* Softer than black */
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%206%205-6H0z%22%20fill%3D%22%23666%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 10px 6px;
  }

  #filter-skill:focus {
    border-color: #aaa;
    outline: none;
  }
}

@media (max-width: 600px) {
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .action-buttons button {
    width: 80%; /* or 100% if you want full-width buttons */
  }
}

#language-overlay {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  font-family: sans-serif;
}

#language-overlay h1 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.lang-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

button.lang-btn {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 6px;
  background-color: #333;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

button.lang-btn:hover {
  background-color: #555;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  #language-overlay h1 {
    font-size: 1.4rem;
  }

  button.lang-btn {
    font-size: 1rem;
    padding: 0.8rem 1.4rem;
    width: 100%;
    max-width: 200px;
  }
}

/* Location Error Styles */
.location-error {
  text-align: center;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin: 2rem auto;
  max-width: 600px;
  width: 100%;
}

.location-error h3 {
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
  font-family: var(--font-secondary);
}

.location-error p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.location-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.location-options .btn-primary,
.location-options .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: var(--font-semibold);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.location-options .btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.location-options .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.location-options .btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.location-options .btn-secondary:hover {
  background: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.help-text {
  font-size: var(--text-sm) !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
}

.loading-message {
  text-align: center;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin: 2rem auto;
  max-width: 500px;
  width: 100%;
}

.loading-message p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* No Jobs Message Styles */
.no-jobs-message {
  grid-column: 1 / -1;
  justify-self: center;
  text-align: center;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
  margin: 2rem auto;
  max-width: 600px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.no-jobs-message::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bg-gradient);
}

.no-jobs-content h3 {
  color: var(--text-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: 1rem;
  font-family: var(--font-secondary);
}

.no-jobs-content p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.no-jobs-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.no-jobs-actions .btn-primary,
.no-jobs-actions .btn-secondary {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: var(--font-semibold);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-size: var(--text-base);
}

.no-jobs-actions .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
  position: relative;
  overflow: hidden;
}

.no-jobs-actions .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity var(--transition);
}

.no-jobs-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.no-jobs-actions .btn-primary:hover::before {
  opacity: 1;
}

.no-jobs-actions .btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.no-jobs-actions .btn-secondary:hover {
  background: var(--bg-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
  .no-jobs-actions {
    flex-direction: column;
    align-items: center;
  }

  .no-jobs-actions .btn-primary,
  .no-jobs-actions .btn-secondary {
    width: 100%;
    max-width: 280px;
  }

  .no-jobs-message {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
}

/* --- Hero Section Background Options --- */
.bg-hero-white {
  background: #fff !important;
}
.bg-hero-bluegray {
  background: #f4f6fa !important;
}
.bg-hero-gradient {
  background: linear-gradient(135deg, #fff 0%, #fff6f2 100%) !important;
}

/* --- Steps Section Background Options --- */
.bg-steps-beige {
  background: #f7f3ed !important;
}
.bg-steps-orange {
  background: #fff6f2 !important;
}
.bg-steps-neutral {
  background: #f5f3ef !important;
}

/* Example usage in HTML:
<section class="section hero bg-hero-white"> ... </section>
<section class="section steps bg-steps-beige"> ... </section>
*/

/* Job Board Mobile Responsive Design */
@media (max-width: 768px) {
  .dashboard-section {
    padding: 2rem 1rem 3rem;
  }

  .dashboard-container h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .dashboard-container .sub-text {
    font-size: var(--text-base);
    margin-bottom: 2rem;
  }

  #job-listings,
  #job-listings-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  #skill-filter-section {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
  }

  #skill-filter-section #filter-button {
    width: 100%;
    max-width: none;
  }

  .job-card,
  .skill-tag-list {
    padding: 1.5rem;
  }

  .job-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
  }
}

@media (max-width: 480px) {
  .dashboard-section {
    padding: 1.5rem 0.75rem 2rem;
  }

  .job-card,
  .skill-tag-list {
    padding: 1.25rem;
    margin: 0 0.5rem;
  }

  .job-card h3,
  .skill-tag-list h3 {
    font-size: var(--text-lg);
  }

  .job-tag {
    font-size: var(--text-xs);
    padding: 0.25rem 0.625rem;
  }
}
