/* ==========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================== */
:root {
  /* Primary Brand Colors */
  --color-primary: #dc2626;
  --color-primary-light: #ef4444;
  --color-primary-dark: #b91c1c;
  --color-primary-50: #fef2f2;
  --color-primary-100: #fee2e2;
  --color-primary-200: #fecaca;
  --color-primary-500: #ef4444;
  --color-primary-600: #dc2626;
  --color-primary-700: #b91c1c;
  --color-primary-900: #7f1d1d;

  /* Secondary Colors */
  --color-secondary: #1f2937;
  --color-secondary-light: #374151;
  --color-secondary-dark: #111827;

  /* Success Colors */
  --color-success: #10b981;
  --color-success-light: #34d399;
  --color-success-dark: #047857;
  --color-success-50: #ecfdf5;
  --color-success-100: #d1fae5;

  /* Warning Colors */
  --color-warning: #f59e0b;
  --color-warning-light: #fbbf24;
  --color-warning-dark: #d97706;

  /* Error Colors */
  --color-error: #ef4444;
  --color-error-light: #f87171;
  --color-error-dark: #dc2626;

  /* Neutral Colors */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* Background Colors */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8fafc;
  --color-bg-tertiary: #f1f5f9;

  /* Border Colors */
  --color-border-light: #e5e7eb;
  --color-border-medium: #d1d5db;
  --color-border-dark: #9ca3af;

  /* Text Colors */
  --color-text-primary: #1f2937;
  --color-text-secondary: #6b7280;
  --color-text-tertiary: #9ca3af;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* roboto-condensed-100 - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 100;
  src: url('fonts/roboto-condensed-v30-latin-100.woff2') format('woff2');
}
/* roboto-condensed-100italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: italic;
  font-weight: 100;
  src: url('fonts/roboto-condensed-v30-latin-100italic.woff2') format('woff2');
}
/* roboto-condensed-200 - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 200;
  src: url('fonts/roboto-condensed-v30-latin-200.woff2') format('woff2');
}
/* roboto-condensed-200italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: italic;
  font-weight: 200;
  src: url('fonts/roboto-condensed-v30-latin-200italic.woff2') format('woff2');
}
/* roboto-condensed-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/roboto-condensed-v30-latin-300.woff2') format('woff2');
}
/* roboto-condensed-300italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: italic;
  font-weight: 300;
  src: url('fonts/roboto-condensed-v30-latin-300italic.woff2') format('woff2');
}
/* roboto-condensed-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/roboto-condensed-v30-latin-regular.woff2') format('woff2');
}
/* roboto-condensed-italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/roboto-condensed-v30-latin-italic.woff2') format('woff2');
}
/* roboto-condensed-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/roboto-condensed-v30-latin-500.woff2') format('woff2');
}
/* roboto-condensed-500italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: italic;
  font-weight: 500;
  src: url('fonts/roboto-condensed-v30-latin-500italic.woff2') format('woff2');
}
/* roboto-condensed-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/roboto-condensed-v30-latin-600.woff2') format('woff2');
}
/* roboto-condensed-600italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/roboto-condensed-v30-latin-600italic.woff2') format('woff2');
}
/* roboto-condensed-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/roboto-condensed-v30-latin-700.woff2') format('woff2');
}
/* roboto-condensed-700italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: italic;
  font-weight: 700;
  src: url('fonts/roboto-condensed-v30-latin-700italic.woff2') format('woff2');
}
/* roboto-condensed-800 - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 800;
  src: url('fonts/roboto-condensed-v30-latin-800.woff2') format('woff2');
}
/* roboto-condensed-800italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: italic;
  font-weight: 800;
  src: url('fonts/roboto-condensed-v30-latin-800italic.woff2') format('woff2');
}
/* roboto-condensed-900 - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 900;
  src: url('fonts/roboto-condensed-v30-latin-900.woff2') format('woff2');
}
/* roboto-condensed-900italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Roboto Condensed';
  font-style: italic;
  font-weight: 900;
  src: url('fonts/roboto-condensed-v30-latin-900italic.woff2') format('woff2');
}

:root {
  --color-primary: #c10a27;
  --color-secondary: #69727d;
  --color-black: #000;
  --color-white: #fff;
}

body, button, input, textarea {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400; /* Use the 'regular' weight */
}

/* Prevent horizontal scroll on mobile */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Ensure form wrapper doesn't cause overflow */
.page-template-default main,
.single main,
.page main {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700; /* Use the 'bold' weight */
}

.some-light-text {
    font-weight: 300; /* Use the 'light' weight */
}

/* Loader */
.flick-loader {
  display: none;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  height: 60px;
}

.flick-loader.active {
  display: flex;
}

.flick-spinner {
  width: 48px;
  height: 48px;
  border: 5px solid var(--color-secondary);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: flick-spin 1s linear infinite;
}

@keyframes flick-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hide the container initially */
#form-step-container.hidden-on-init {
  display: none !important;
}

#form-step-container.loading {
  display: none !important;
}


/* Logo */
.flick-form-logo {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.flick-form-logo img {
  max-width: 180px;
  height: auto;
  display: inline-block;
}

/* Wrapper */
.flick-form-head {
  max-width: 900px;
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
}

/* Sticky progress bar */
.flick-progress-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.3s ease;
}

.flick-progress-sticky.visible {
  opacity: 1;
  transform: translateY(0);
  padding: 1rem;
}

.flick-progress-sticky .flick-progress {
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 0;
  padding: 0 20px;
}

.flick-progress-sticky .flick-step .label {
  font-size: 0.8rem;
}

.flick-progress-sticky .flick-step .circle {
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
}

.flick-progress-sticky .line {
  height: 1px;
}

#multi-step-form-wrapper {
  max-width: 600px;
  width: 100%;
  margin: 3em auto;
  padding: 0 15px; /* Add horizontal padding for mobile */
  font-family: 'Roboto Condensed', sans-serif;
  box-sizing: border-box;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Form Fields */
#multi-step-form-wrapper label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5em;
}

/* Visual feedback for complete verification code */
#flick-code.code-complete,
#flick-login-code.code-complete {
  border-color: var(--color-success);
  background-color: #f0fdf4;
}

/* Pulse animation for ready button */
@keyframes pulse-ready {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.verify-button.pulse-ready,
#check-code-button.pulse-ready,
#verify-login-code-button.pulse-ready {
  animation: pulse-ready 2s infinite;
  background-color: var(--color-success);
  border-color: var(--color-success);
}

#multi-step-form-wrapper input:not([type=checkbox]):not([type=radio]),
#multi-step-form-wrapper select {
  width: 100%;
  height: 48px;
  padding: 0.75em;
  margin-bottom: 1em;
  border: 1px solid var(--color-secondary);
  border-radius: 10px;
  font-size: 1rem;
  box-sizing: border-box;
  background: var(--color-white);
  color: var(--color-black);
}

#multi-step-form-wrapper input:focus,
#multi-step-form-wrapper select:focus {
  border-color: var(--color-primary);
  outline: none;
}

/* Select2 Styling */
.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
  height: 48px !important;
  padding: 0 1em !important;
  border-radius: 10px !important;
  border: 1px solid var(--color-secondary) !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  background: var(--color-white) !important;
}

span.select2-search.select2-search--inline{
  width: 100%!important;
}

.select2-container .select2-search--inline .select2-search__field {
  margin-top: 0!important;
  margin-left: 0!important;
}

/* ==========================================================================
   Unified Styles for Single & Multiple Select2 Dropdowns
   ========================================================================== */

/* --- 1. SHARED STYLES (Apply to both Single and Multiple) --- */

/* Base container for both single and multiple */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1px solid var(--color-secondary)!important;
    border-radius: 10px !important;
    height: 50px !important; /* Set a consistent height */
    background-color: white !important;
}

/* Focus state for both */
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default .select2-selection--single:focus {
    border-color: var(--color-primary) !important;
    outline: none !important;
}

/* Style for the rendered text/selection area */
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: var(--color-black) !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Clear "x" button for both */
.select2-container--default .select2-selection--single .select2-selection__clear,
.select2-container--default .select2-selection--multiple .select2-selection__clear {
	display: none!important;
	color: var(--color-secondary);
    font-weight: bold;
    padding-right: 0.5rem;
    margin-right: 10px; /* Add space between clear and arrow */
	height: 48px!important;
}

/* Disabled state for both */
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #f8f8f8 !important;
    color: var(--color-secondary) !important;
    cursor: not-allowed !important;
}

/* Highlighted option in the dropdown results for both */
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--color-primary) !important;
    color: white !important;
}

/* --- 2. MULTI-SELECT ONLY STYLES --- */

/* Style for the selected "pills" */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: auto !important;
    margin-bottom: auto !important;
    margin-left: 0 !important;
    margin-right: 0.5rem;
    padding: 5px 5px 5px 20px !important;
    border: none !important;
    background-color: #e4e4e4 !important; /* Example color */
    border-radius: 4px !important;
}

/* The "x" on a selected pill */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right: 0 !important;
    padding: 5px 5px 5px 8px !important;
}


/* --- 3. SINGLE-SELECT ONLY STYLES --- */

/* Adjust padding for the rendered text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0.75rem !important;
    padding-right: 1.5rem !important; /* Make space for the arrow */
}

/* The arrow for the single-select */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important; /* Use 100% to match the container height */
    top: 0 !important;
    right: 5px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent !important;
    border-width: 6px 5px 0 5px !important;
}

/* Progress bar */
.progress-bar {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--color-primary);
  width: 0;
  transition: width 0.3s ease;
}

/* Visual stepper */
.flick-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2em;
  gap: 0.5em;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.flick-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-secondary);
  flex: 1 1 0;
  text-align: center;
  min-width: 80px;
}

.flick-step .circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 0.5em;
  color: var(--color-secondary);
}

.flick-step.active .circle {
  border-color: var(--color-primary);
  color: white;
  background: var(--color-primary);
}

.flick-step.active .label {
  font-weight: bold;
  color: var(--color-primary);
}

/* Completed step styles */
.flick-step.completed .circle {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
}

.flick-step.completed .label {
  color: var(--color-primary);
  opacity: 0.8;
}

.flick-step .label {
  font-size: 0.9rem;
  white-space: nowrap;
}

.line {
  height: 2px;
  background: #e0e0e0;
  width: 20px;
  flex-shrink: 0;
  position: relative;
  transition: background-color 0.3s ease;
}

.line.completed {
  background: var(--color-primary);
}

/* Modern progress bar below steps */
.flick-progress-bar-container {
  position: relative;
  width: 100%;
  max-width: 900px; 
  margin-left: auto;
  margin-right: auto;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-top: 20px;
  overflow: hidden;
}

.flick-progress-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark, #2563eb) 100%);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

/* Mobile override: hide labels & lines, tighten gaps */
@media (max-width: 600px) {
  .flick-progress {
    gap: 0;         /* small gap between steps */
    padding: 0 1em;     /* optional horizontal padding */
    justify-content: space-around;
  }

  .flick-step {
    min-width: auto;    /* allow them to shrink to circle size */
    flex: 0 0 auto;     /* no growing or shrinking beyond content */
    margin: 0;          /* reset any margins */
  }

  .flick-step .label,
  .line {
    display: none !important;
  }

  .flick-step .circle {
    margin-bottom: 0;  /* no extra bottom margin */
  }
}

/* Navigation buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1em;
}

/* Navigation wrapper hidden while loading */
.form-navigation.loading {
  display: none !important;
}

/* Navigation layout: two buttons, each 50% width with gap */
.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1em;
  width: 100%;
}

.form-navigation button {
  flex: 1 1 50%;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.7em 1.4em;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

#next-button {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 0.7em 1.4em;
  border-radius: 10px;
  cursor: pointer;
}

#back-button {
  background: var(--color-secondary);
  color: var(--color-white);
  border: none;
  padding: 0.7em 1.4em;
  border-radius: 10px;
  cursor: pointer;
}

.form-navigation button:disabled {
  background: #ccc !important;
  cursor: not-allowed;
}

.verify-button, #check-code-button {
  font-size: 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 0.7em 1.4em;
  border-radius: 10px;
  cursor: pointer;
}

.primary-btn {
  font-size: 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 0.7em 1.4em;
  border-radius: 10px;
  cursor: pointer;
}

.remove-btn {
  margin-top: 1rem;
  font-size: 1rem;
  background: black;
  color: var(--color-white);
  border: none;
  padding: 0.7em 1.4em;
  border-radius: 10px;
  cursor: pointer;
}

#email-input-block input {
	margin-bottom: 0.5em!important;
}

#email-input-block small {
    margin-bottom: 1rem;
    display: block;
    color: green;
}

.ust-status-message {
  display: none;
  padding: 1rem;
  background: #f3f3f3;
  border-radius: 10px;
  font-weight: bold;
  border: 1px solid #cdcdcd;
  margin-bottom: 1rem;
}

.ust-status-message.valid {
	background: #0080001a;
    border: 1px solid green;
}

.ust-status-message.invalid {
	background: #ff00000a;
    border: 1px solid #c10a27;
}

.email-confirmation-code {
  padding: 1rem 1rem 0rem;
  background: #f1f1f1;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.email-confirmation-code div {
	display: flex;
	gap: 5px;
	align-items: center;
}

.email-confirmation-code div svg {
   fill: orange;
   margin-bottom: 0.55rem;
}

.email-confirmation-detail p {
   color: var(--color-secondary);
	font-style: italic;
}

p.resend-email-confirmation .active {
	color: black;
}

.resend-link-wrapper a {
    color: var(--color-primary);
}

/* FLICK COMPANY */
.flick-company input {
	margin-bottom: 0;
}

.flick-company-detail {
    padding: 1rem;
    border-radius: 1rem;
    background: #f9f9f9;
}

.flick-company-detail p {
	font-size: 0.9rem;
	margin-top: 0;
}

.flick-company-detail p:last-child {
	margin-bottom: 0;
}

.age-validation-hint-container div {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.age-validation-hint strong {
    color: var(--color-primary);
}

.address-input-wrapper {
  position: relative;
  width: 100%;
}

.address-input-wrapper input {
  border-radius: 10px;
}

.address-input-icon {
  position: absolute;
  top: 37%;
  left: 12px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none; /* Make the icon non-interactive */
}

/* Add padding to the input to make space for the icon */
#flick-company-address {
  margin-bottom: 1rem;
}

.flick-company-address {
  margin-top: 1rem;
}

.flick-private-address-checkbox {
  padding-top: 1rem;
}

.flick-private-address-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
}

.flick-private-address-checkbox input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  margin: 0;
  margin-right: 0.5rem;
  border: 2px solid #888!important;
  border-radius: 4px!important;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
}

.flick-private-address-checkbox span {
  display: inline-block;
  line-height: 1.4;
}

.form-flex {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap to the next line */
  gap: 1rem; /* Gap between flex items */
}

.form-flex > div {
  flex: 1 1 calc(50% - 0.5rem); /* For two columns: 50% width minus half the gap */
  /*
   * flex-grow: 1 - Allows items to grow and take available space
   * flex-shrink: 1 - Allows items to shrink if necessary
   * flex-basis: calc(50% - 0.5rem) - Sets the initial size to roughly 50%
   * (0.5rem is subtracted to account for half of the 1rem gap on each side when there are two elements)
   */
}

/* Mobile responsiveness */
@media (max-width: 768px) { /* Adjust breakpoint as needed for "mobile" */
  .form-flex {
    flex-direction: column; /* Stack items vertically on smaller screens */
	gap: 0;
  }

  .form-flex > div {
    flex: 1 1 100%; /* Take full width on mobile */
  }
}

/* FILE: flick-form.css */
/*
 * ===================================================================
 * STYLING FOR GOOGLE PLACES AUTOCOMPLETE DROPDOWN
 * ===================================================================
 */

/* The main container for the dropdown results */
.pac-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
    z-index: 9999!important; /* Ensure it appears above other elements */
    font-family: inherit; /* Use your theme's font */
}

/* Each individual suggestion/row in the dropdown */
.pac-item {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-top: 1px solid #f0f0f0;
}
.pac-item:first-child {
    border-top: none;
}

/* The hover state when a user mouses over a suggestion */
.pac-item:hover {
    background-color: #f5f5f5;
}

/* The small "pin" icon next to each address */
.pac-icon {
    margin-top: 5px;
}

/* The part of the suggestion that matches the user's input (e.g., "Berl" in "Berlin") */
.pac-item-query {
    font-weight: bold;
    color: #333;
}

/* The "Powered by Google" logo at the bottom */
.hdpi.pac-logo:after {
    margin: 10px 12px;
}

/* Modern Upload Field Styling */

.flick-upload-wrapper label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.flick-upload-detail p {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
    line-height: 1.5;
}

#flick-id-front-preview-container, #flick-id-back-preview-container {
    display: flex;
}

.flick-id-upload-field {
    margin-bottom: 1rem;
}

/* Modern ID Upload Fields */
.flick-id-upload-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
}

.flick-id-upload-field input[type="file"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.flick-id-upload-field input[type="file"]:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-primary);
}

.flick-id-upload-field input[type="file"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-100);
}

/* Modern Drag-and-Drop Area */
.flick-file-drop-area {
    position: relative;
    width: auto;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    background: linear-gradient(135deg, #fafafa 0%, #f9fafb 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide file input elements but keep them functional */
.flick-file-drop-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.flick-file-drop-area:hover {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.flick-file-drop-area.dragover {
    border-color: var(--color-success);
    background: linear-gradient(135deg, var(--color-success-50) 0%, var(--color-success-100) 100%);
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
}

.flick-file-drop-area .flick-file-msg {
    color: var(--color-text-secondary);
    font-size: 16px;
    font-weight: 500;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.flick-file-drop-area .flick-file-msg p {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 16px;
    color: var(--color-text-primary);
    pointer-events: none;
}

.flick-file-drop-area .flick-file-msg small {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 400;
    pointer-events: none;
}

/* Make all file uploads clickable across entire drop area */
#flick-company-doc-upload,
#flick-id-front-upload,
#flick-id-back-upload {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
    pointer-events: auto !important;
}

/* Ensure ID drop areas are positioned correctly */
.flick-id-drop-area {
    position: relative !important;
}

/* Modern File Preview Container */
#flick-file-preview-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.flick-file-preview {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.flick-file-preview:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.flick-file-preview .file-icon {
    margin-right: var(--spacing-lg);
    color: var(--color-primary);
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flick-file-preview .file-info {
    flex-grow: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    color: #1f2937;
}

.flick-file-preview .file-remove {
    margin-left: 12px;
    color: #ef4444;
    cursor: pointer;
    font-weight: 600;
    border: none;
    background: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 16px;
    line-height: 1;
}

.flick-file-preview .file-remove:hover {
    background: var(--color-primary-50);
    color: var(--color-primary-dark);
    transform: scale(1.1);
}

/* Modern Error Styling */
#flick-upload-errors {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
}

#flick-upload-errors:empty {
    display: none;
}

.flick-file-drop-area.error {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fef7f7 100%);
}

#flick-existing-id-files .existing-file-item {
    width: auto;
}

#flick-existing-id-files h4, #flick-existing-company-docs h4 {
	margin-bottom: 0.5rem;
}

#flick-existing-uploads-summary ul {
	margin-top: 0.5rem;
	padding: 0;
}

#flick-existing-id-files li, #flick-existing-company-docs li {
   list-style-type: none;
   background: #fcfcfc;
   padding: 0.5rem;
   border-radius: 5px;
   border: 1px dashed green;
   margin-bottom: 0.5rem;
}

/* Form response messages container */
#form-response-messages {
  margin: 20px 0;
  position: relative;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
}

/* When inside form-step-container, inherit its width */
#form-step-container #form-response-messages {
  max-width: 100%;
  margin-top: 20px;
}

/* Styling for the AJAX response boxes */
.response-box {
  display: flex;
  align-items: flex-start;
  padding: 15px;
  margin: 20px 0;
  border-radius: 15px;
  border: 1px solid transparent;
  width: 100%;
  box-sizing: border-box;
}

.response-box .response-icon {
  margin-right: 15px;
  flex-shrink: 0;
}

.response-box .response-icon svg {
  width: 24px;
  height: 24px;
}

.response-box .response-content {
  flex-grow: 1;
}

.response-box .response-title {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 1.1rem;
  font-weight: bold;
}

.response-box .response-body {
  margin: 0;
}

/* Optional: Styling for raw JSON data */
.response-box .response-data {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: monospace;
  font-size: 0.85em;
  display: none; /* Hidden by default */
}

/* Success variant */
.response-box.success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}
.response-box.success .response-icon {
  color: #28a745;
}
.response-box.success .response-data {
  background-color: #cce8d2;
  border: 1px solid #b8dfc2;
}

/* Error variant */
.response-box.error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}
.response-box.error .response-icon {
  color: #dc3545;
}
.response-box.error .response-data {
  background-color: #f4c2c7;
  border: 1px solid #efaeb3;
}

/* Style for input fields that have a validation error */
.form-step-container input.error,
.form-step-container select.error,
.form-step-container .select2-container.error .select2-selection--single,
.form-step-container .select2-container.error .select2-selection--multiple {
    border: 1px solid #D94F4F !important;
}

/* Enhanced error styling for verification code inputs */
#flick-code.error,
#flick-login-code.error {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Style for the error message text displayed under the field */
.flick-error-message {
    color: black;
    font-size: 0.875rem;
    font-weight: bold;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: #ffdfdf;
    border-radius: 10px;
    border: 1px solid #D94F4F;
}

/* =========================================================================
   Modern Toggle Switch Styling
   ========================================================================= */

/* 1. The main container for the switch.
   This establishes a positioning context for the label. */
.flick-toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px; /* Width of the switch track */
  height: 34px; /* Height of the switch track */
  vertical-align: middle; /* Aligns switch nicely with its label text */
}

/* 2. Hide the default HTML checkbox from view.
   Its checked/unchecked state will be used to control the style of the visible label. */
.flick-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* 3. Style the <label> to look like the track of the switch. */
.flick-toggle-switch label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc; /* Default background color when OFF */
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px; /* Fully rounded ends */
}

/* 4. Create the handle/thumb of the switch using the ::before pseudo-element. */
.flick-toggle-switch label:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 8px;
  bottom: 4px;
  background-color: white; /* Color of the handle */
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%; /* Makes the handle a perfect circle */
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 5. Define the styles for when the switch is ON (i.e., when the input is checked). */
.flick-toggle-switch input:checked + label {
  background-color: var(--color-primary); /* Green background when ON (you can change this to your primary color) */
}

/* 6. Move the handle to the right when the switch is turned ON. */
.flick-toggle-switch input:checked + label:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* 7. Optional: Add a subtle focus ring for keyboard navigation accessibility. */
.flick-toggle-switch input:focus + label {
  box-shadow: 0 0 2px var(--color-primary);
}

/* Styles for Checkbox Group */
.flick-checkbox-group label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.5;
    cursor: pointer;
    padding-left: 0; /* Reset default padding if any */
}

.flick-checkbox-group input[type="checkbox"] {
    vertical-align: bottom;
	margin-right: 10px;
    margin-top: 4px; /* Align checkbox with text */
    flex-shrink: 0; /* Prevent checkbox from shrinking */
    width: 20px; /* Make checkbox larger */
    height: 20px;
}

.flick-checkbox-group label.error input[type="checkbox"] {
    border: 2px solid #e74c3c; /* Red border for unchecked required checkboxes */
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

.flick-checkbox-group label a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Styles for Signature Pad */
.signature-pad-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.signature-canvas {
    width: 100%;
    height: 200px; /* Fixed height, adjust as needed */
    background-color: #f8f8f8; /* Light background for the drawing area */
    border-bottom: 1px dashed #ccc; /* Visual separation from buttons */
}

.signature-canvas.error {
    border: 2px solid #e74c3c; /* Highlight canvas on error */
}

.signature-actions {
    padding: 15px;
    text-align: left;
}

.signature-actions .flick-button-secondary {
    background-color: #f39c12;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.signature-actions .flick-button-secondary:hover {
    background-color: #e67e22;
}

/* Inline Progress Bar Styles */
.inline-progress-container {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    padding: 0;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-medium);
    max-height: 0;
    overflow: hidden;
}

.inline-progress-container.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 80px;
    padding: var(--spacing-md);
}

.flick-upload-wrapper .inline-progress-container {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    background-color: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-sm);
    transition: width var(--transition-slow);
    position: relative;
}

.progress-fill.success {
    background: linear-gradient(90deg, var(--color-success), var(--color-success-dark));
}

.progress-fill.error {
    background: linear-gradient(90deg, var(--color-error), var(--color-error-dark));
}

.progress-text {
    position: absolute;
    top: -24px;
    right: 0;
    color: var(--color-text-secondary);
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
    white-space: nowrap;
}

.inline-progress-container .progress-text {
    position: static;
    display: block;
    text-align: right;
    margin-bottom: var(--spacing-sm);
    font-size: 13px;
}

.progress-fill.success + .progress-text,
.inline-progress-container .progress-fill.success ~ .progress-text {
    color: var(--color-success);
}

.progress-fill.error + .progress-text,
.inline-progress-container .progress-fill.error ~ .progress-text {
    color: var(--color-error);
}

.progress-fill.uploading + .progress-text,
.inline-progress-container .progress-fill.uploading ~ .progress-text {
    color: var(--color-primary);
}

/* Modern upload animation */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-fill.uploading {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    position: relative;
    overflow: hidden;
}

.progress-fill.uploading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

/* Modern Existing Uploads Section */
#flick-existing-uploads-summary {
    margin: 32px 0;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

#flick-existing-uploads-summary h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

#flick-existing-id-files h4, 
#flick-existing-company-docs h4 {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

#flick-existing-uploads-summary ul {
    margin-top: 8px;
    padding: 0;
    list-style: none;
}

#flick-existing-id-files li, 
#flick-existing-company-docs li {
    list-style-type: none;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4b5563;
    display: flex;
    align-items: center;
}

#flick-existing-id-files li:before, 
#flick-existing-company-docs li:before {
    content: '\f123';
    font-family: 'dashicons';
    margin-right: 8px;
    color: var(--color-primary);
    font-size: 16px;
}

/* Modern Upload Page Layout */
.upload-page-header {
    margin-bottom: 2rem;
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

.upload-page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
    letter-spacing: -0.03em;
}

.upload-description {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.upload-section {
    margin-bottom: 2rem;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.upload-section:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.upload-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flick-company-detail {
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.flick-company-detail p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.flick-company-detail strong {
    color: #1f2937;
}

.flick-company-detail a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.flick-company-detail a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Modern form flex layout */
.form-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .upload-section {
        padding: 20px;
        margin-bottom: 32px;
    }

    .upload-page-header {
        padding: 24px 20px;
    }

    .upload-page-header h1 {
        font-size: 28px;
    }

    .form-flex {
        grid-template-columns: 1fr;
        gap: 16px;
    }

}

/* Existing Files Section */
.flick-existing-files-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--color-background);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.flick-existing-files-section h3 {
    margin-top: 0;
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.existing-files-grid {
    display: grid;
    gap: 1.5rem;
}

.existing-files-group h4 {
    margin: 0 0 1rem 0;
    color: var(--color-text-dark);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.existing-file-item {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: border-color 0.2s ease;
    padding: 10px;
}

#flick-existing-company-docs .existing-file-item {
    width: auto;
}

.existing-file-item:hover {
    border-color: var(--color-primary-light);
}

.existing-file-item .file-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.existing-file-item .file-thumbnail:hover {
    transform: scale(1.05);
}

.existing-file-item .file-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.existing-file-item .thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.existing-file-item .pdf-icon {
    font-size: 32px;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px!important;
    height: 60px;
    background: white;
    border-radius: 4px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.existing-file-item .pdf-icon:hover {
    transform: scale(1.05);
}

/* Make new upload previews clickable */
.preview-new-upload {
    cursor: pointer !important;
}

.preview-new-upload:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.existing-file-item .file-icon {
    color: var(--color-primary);
    width: 2rem;
    text-align: center;
    flex-shrink: 0;
}

.existing-file-item .file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.existing-file-item .file-info strong {
    color: var(--color-text-dark);
    font-size: 0.9rem;
    display: block;
}

.existing-file-item .file-info small {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    display: block;
}

.existing-file-item .file-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.delete-file-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.delete-file-btn:hover {
    background: var(--color-primary-dark);
}

.delete-file-btn:disabled {
    background: var(--color-muted);
    cursor: not-allowed;
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
    display: inline-block;
    margin-top: -3px;
    margin-left: 8px;
    vertical-align: middle;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    transition: background-color 0.2s ease;
}

.tooltip-icon:hover {
    background: var(--color-primary);
    color: white;
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1000;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    max-width: calc(100vw - 40px); /* Prevent horizontal overflow */
    padding: 12px 16px;
    background: #333;
    color: white;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* Responsive adjustments for tooltip */
@media (max-width: 600px) {
    /* Make the parent form field container position relative */
    .flick-corporate-fashion,
    div:has(> label > .tooltip-container) {
        position: relative;
    }

    .tooltip-container {
        position: static;
        display: inline-block;
    }

    .tooltip-content {
        position: absolute;
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        min-width: auto;
        font-size: 12px;
        left: 50%;
        right: auto;
        bottom: auto;
        top: 100%;
        margin-top: 10px;
        transform: translateX(-50%);
        z-index: 1000;
    }

    .tooltip-content::after {
        left: 50%;
        top: -6px;
        bottom: auto;
        transform: translateX(-50%) rotate(180deg);
    }
}

/* Prevent tooltip from overflowing on small screens or near edges */
@media (max-width: 768px) and (min-width: 601px) {
    .tooltip-content {
        max-width: calc(100vw - 40px);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* Additional fallback: Ensure tooltip never exceeds container on larger screens */
@media (min-width: 601px) and (max-width: 1024px) {
    .tooltip-content {
        max-width: min(320px, calc(100vw - 40px));
    }
}

/* Lightbox Styles */
.flick-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.flick-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.flick-lightbox-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

.flick-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.flick-lightbox-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.flick-lightbox-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.flick-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.flick-lightbox-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.flick-lightbox-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-background);
    text-align: center;
}

/* AGB Accept Button */
.flick-btn {
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.flick-btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flick-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.flick-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* AGB Content Styling */
.flick-lightbox-body h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

.flick-lightbox-body h3:first-child {
    margin-top: 0;
}

.flick-lightbox-body p {
    margin: 0.75rem 0;
    line-height: 1.7;
    color: var(--color-text);
    text-align: justify;
}

.flick-lightbox-body ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.flick-lightbox-body ol li {
    margin: 0.5rem 0;
    line-height: 1.7;
    color: var(--color-text);
    text-align: justify;
}

.flick-lightbox-body ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.5rem;
}

.flick-lightbox-body ol ol li {
    margin: 0.25rem 0;
}


.location-detail {
    flex: 1;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    background: #f8fafc;
}

.location-detail p {
    margin-top: 0;
}

.location-detail h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.pdf-content-section {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.pdf-content-section::-webkit-scrollbar {
    width: 8px;
}

.pdf-content-section::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.pdf-content-section::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.pdf-content-section::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.important-notes h4 {
    margin: 0 0 1rem 0;
    color: #d97706;
    font-size: 1.1rem;
}

.important-notes ul {
    margin: 0;
    padding-left: 1.5rem;
}

.important-notes li {
    margin-bottom: 0.5rem;
    color: #92400e;
    line-height: 1.4;
}

.pdf-download-section {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-background);
    border-radius: 8px;
    border: 2px dashed var(--color-border);
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.pdf-download-btn:hover {
    background: var(--color-primary-dark);
    color: white;
    text-decoration: none;
}

.pdf-download-btn:before {
    content: '\f123';
    font-family: 'dashicons';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.company-requirements-link {
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.company-requirements-link:hover {
    color: var(--color-primary-dark);
    text-decoration: none;
}

/* Lightbox Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .flick-lightbox-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .flick-lightbox-header {
        padding: 1rem 1.5rem;
    }
    
    .flick-lightbox-header h2 {
        font-size: 1.25rem;
    }
    
    .flick-lightbox-body {
        padding: 1.5rem;
    }
    
    .flick-lightbox-footer {
        padding: 1rem 1.5rem;
    }
    
    .requirement-section {
        padding: 1rem;
    }

    .location-details-container {
        flex-direction: column;
    }
}

/* =========================================================================
   Landing Page (Step 0) Styling
   ========================================================================= */

/* Reset WordPress default margins and styling for landing page */
body.page .flick-landing-page,
body.home .flick-landing-page,
body.logged-in .flick-landing-page {
    margin: 0 !important;
    padding: 0 !important;
}

.flick-landing-page {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.flick-landing-page * {
    box-sizing: border-box;
}

/* Override WordPress theme container margins */
.flick-landing-page .wp-site-blocks {
    margin: 0 !important;
    padding: 0 !important;
}

.flick-landing-page .wp-block-group {
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset any WordPress content width constraints */
.flick-landing-page .has-global-content-size,
.flick-landing-page .wp-block-group__inner-container {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

.flick-landing-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--color-bg-primary);
    margin: 0 !important;
    padding: 0 !important;
    width: 100%; /* Changed from 100vw to prevent horizontal scroll */
    position: relative;
    /* Removed the viewport width trick that can cause overflow */
}

.flick-landing-content {
    display: contents;
}

.flick-landing-left {
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.flick-landing-text {
    max-width: 450px;
}

.flick-landing-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.flick-landing-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.flick-landing-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.flick-landing-primary-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-align: center;
    width: 100%;
}

.flick-landing-primary-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.flick-landing-secondary-btn {
    background: transparent;
    color: var(--color-text-secondary);
    border: 2px solid var(--color-border-medium);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-align: center;
    width: 100%;
}

.flick-landing-secondary-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-50);
}

.flick-landing-support {
    text-align: center;
}

.flick-landing-support p {
    font-size: 0.9rem;
    color: var(--color-text-tertiary);
    margin: 0;
}

.flick-landing-support .support-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.flick-landing-support .support-link:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.flick-landing-right {
    position: relative;
    overflow: hidden;
}

.flick-landing-hero {
    position: relative;
    width: 100%;
    height: 100%;
}

.flick-landing-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.flick-landing-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 2rem 4rem;
    width: auto;
}

.flick-logo-image {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Keep the old text styles as fallback in case image doesn't load */
.flick-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flick-logo-main {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-text-primary);
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
}

.flick-logo-sub {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Mobile responsiveness for landing page */
@media (max-width: 768px) {
    .flick-landing-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .flick-landing-content {
        display: block;
    }
    
    .flick-landing-left {
        padding: 2rem 1.5rem;
    }
    
    .flick-landing-text h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .flick-landing-description {
        margin-bottom: 2rem;
    }
    
    .flick-landing-description p {
        font-size: 1rem;
    }
    
    .flick-landing-right {
        height: 300px;
    }
    
    .flick-landing-logo {
        padding: 1.5rem 3rem;
    }
    
    .flick-logo-main {
        font-size: 2rem;
    }
    
    .flick-logo-sub {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .flick-landing-left {
        padding: 1.5rem 1rem;
    }
    
    .flick-landing-text h1 {
        font-size: 1.8rem;
    }
    
    .flick-landing-actions {
        gap: 0.8rem;
    }
    
    .flick-landing-primary-btn,
    .flick-landing-secondary-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Opening Hours Info Section */
.flick-opening-hours-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.flick-opening-hours-info h3 {
    color: #DC2626;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.flick-locations-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Primary red link styling */
.flick-primary-link {
    color: #DC2626;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.flick-primary-link:hover {
    color: #B91C1C;
    text-decoration: underline;
}

.location-info {
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.location-info h4 {
    color: #DC2626;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.location-info p {
    margin: 8px 0;
    line-height: 1.5;
    font-size: 14px;
}

.location-info p strong {
    color: #333;
}

/* Success Actions styling */
.flick-success-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1em;
    width: 100%;
}

.flick-success-actions .button-link {
    flex: 1 1 50%;
    text-decoration: none;
}

.flick-success-actions .form-button {
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.7em 1.4em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flick-success-actions .button-link:first-child .form-button {
    background: var(--color-secondary);
    color: var(--color-white);
}

.flick-success-actions .form-button:last-child {
    background: var(--color-primary);
    color: var(--color-white);
    flex: 1 1 50%;
}

.flick-success-actions .form-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flick-locations-info {
        gap: 15px;
    }
    
    .flick-opening-hours-info {
        padding: 15px;
        margin: 15px 0;
    }
    
    /* Logo adjustments for mobile */
    .flick-form-logo {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .flick-form-logo img {
        max-width: 100px;
    }
    
    /* Stack success action buttons on mobile */
    .flick-success-actions {
        flex-direction: column;
    }
    
    .flick-success-actions .button-link,
    .flick-success-actions .form-button {
        width: 100%;
    }
}

/* ===================================
   Prerequisites Lightbox Styles
   =================================== */

/* Material Icons support */
.material-icons-round {
    font-family: 'Material Icons Round';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

.flick-prerequisites-content {
    max-width: 600px;
}

.prerequisites-check-content {
    padding: 20px 0;
}

.prerequisites-intro {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.prerequisites-intro p {
    margin: 10px 0;
    line-height: 1.6;
}

.prerequisites-main {
    margin-bottom: 25px;
}

.prerequisites-main h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

.prerequisites-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prerequisites-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.prerequisites-list li:before {
    content: "check_circle";
    font-family: 'Material Icons Round';
    position: absolute;
    left: 0;
    top: 11px;
    color: #28a745;
    font-weight: normal;
    font-size: 20px;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

.prerequisites-note {
    background-color: #f8f9fa;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.prerequisites-note p:last-child {
    margin-bottom: 0;
}

.prerequisites-note a {
    color: var(--color-primary);
    text-decoration: none;
}

.prerequisites-note a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.info-note {
    margin: 0;
    line-height: 1.6;
}

/* Field Info Notice - for informational messages below form labels */
.field-info-notice {
    margin: var(--spacing-sm) 0 var(--spacing-md) 0;
    padding: var(--spacing-md);
    background-color: #E8F4F8;
    border-left: 4px solid #0073aa;
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.field-info-notice strong {
    color: #005177;
    font-weight: 600;
}

.prerequisites-details-link {
    margin: 20px 0;
    text-align: center;
}

.details-link {
    color: #007bff;
    text-decoration: underline;
    font-weight: 500;
}

.details-link:hover {
    color: #0056b3;
}

.prerequisites-confirmation {
    margin: 30px 0 20px;
    padding: 20px;
    background-color: #f0f8ff;
    border-radius: 5px;
}

.prerequisites-confirmation .checkbox-label {
    font-weight: 600;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label {
    flex: 1;
    line-height: 1.5;
    color: #333;
}

.prerequisites-error {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    animation: shake 0.3s ease-in-out;
    display: none; /* Hidden by default */
}

.prerequisites-error.show {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-message {
    color: #721c24;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

.flick-lightbox-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

/* Button disabled state */
.primary-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Lightbox states */
.flick-lightbox {
    display: none;
}

.flick-lightbox.show {
    display: flex !important;
}

@media (max-width: 768px) {
    .flick-prerequisites-content {
        max-width: 95%;
        margin: 20px;
    }
    
    .flick-lightbox-footer {
        flex-direction: column;
    }
    
    .primary-btn {
        width: 100%;
    }
}

/* Document Preview Lightbox */
.document-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.document-lightbox.show {
    display: block;
}

.document-lightbox .lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.document-lightbox .lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.document-lightbox .lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.document-lightbox .lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.document-lightbox .lightbox-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.document-lightbox .lightbox-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.document-lightbox .lightbox-body {
    padding: 20px;
    min-width: 300px; /* Reduced from 400px for mobile */
    max-width: calc(100vw - 40px); /* Prevent overflow */
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.document-lightbox #preview-loading {
    text-align: center;
    color: #666;
}

.document-lightbox #preview-image {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
}

.document-lightbox #preview-error {
    text-align: center;
    color: #dc2626;
    padding: 20px;
}

.document-lightbox #preview-error p {
    margin: 0;
}