/* Font Face Declarations */
@font-face {
  font-family: 'Nunito Sans';
  src: url('art/fonts/Nunito_Sans/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Sans';
  src: url('art/fonts/Nunito_Sans/NunitoSans-Italic-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* CSS Variables for consistent theming */
:root {
  --primary-color: #1B365D;
  --secondary-color: #1EA653;
  --accent-color: #64FFDA;
  --background-primary: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  --background-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --background-card: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #1B365D;
  --glass-blur: blur(10px);
  --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.37);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.2);
  --border-glass: 1px solid rgba(255, 255, 255, 0.18);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base styles with modern background */
body {
  font-family: 'Nunito Sans', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--background-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Modern glassmorphism navigation */
nav {
  background: rgba(27, 54, 93, 0.1);
  backdrop-filter: var(--glass-blur);
  border-bottom: var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-light);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  position: absolute;
  right: 2rem;
}

.nav-logo .logo {
  height: 50px;
  width: auto;
}

/* Hide logo on smaller screens to prevent overlap */
@media (max-width: 1400px) {
  .nav-logo {
    display: none;
  }
}

.navbar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.navbar li {
  margin: 0;
}

.navbar a {
  display: block;
  color: #ffffff !important;
  padding: 20px 32px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
  position: relative;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.05), rgba(30, 166, 83, 0.05));
  border-radius: 8px 8px 0 0;
  margin: 0 2px;
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.navbar a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.navbar a:hover::before,
.navbar a.active::before {
  width: 80%;
}

.navbar a:hover,
.navbar a.active {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.15), rgba(30, 166, 83, 0.15));
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2);
  text-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
  font-weight: 700;
}

/* Modern main container */
main {
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Enhanced section styling with glassmorphism */
section {
  background: var(--background-card);
  backdrop-filter: var(--glass-blur);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  border: var(--border-glass);
  margin-bottom: 30px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  color: var(--text-primary);
}

/* Special override for RoO container to allow dropdown overflow */
section#roo-container {
  overflow: visible;
}

/* Ensure all text elements in sections use white color */
section h1,
section h2,
section h3,
section h4,
section h5,
section h6,
section p,
section div,
section span,
section label {
  color: #ffffff !important;
}

section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  opacity: 0;
  transition: var(--transition-smooth);
  border-radius: 20px 20px 0 0;
  z-index: 1;
}

section:hover::before {
  opacity: 1;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

/* Exclude roo-container from hover transform to prevent breaking fixed positioning of modal */
section#roo-container:hover {
  transform: none;
}

/* Make sure RoO section stripe respects the rounded borders */
section#roo-container::before {
  border-radius: 25px 25px 0 0;
  left: 0;
  right: 0;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

/* Enhanced RoO container with modern styling */
section#roo-container {
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.1) 0%, rgba(42, 82, 152, 0.05) 100%);
  backdrop-filter: var(--glass-blur);
  color: var(--text-primary);
  min-height: 600px;
  padding: 40px;
  border-radius: 25px;
  box-shadow: var(--shadow-heavy);
  border: var(--border-glass);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#roo-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#roo-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.roo-row {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
}

/* Modern form styling */
#roo-input {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--glass-blur);
  color: var(--text-primary);
  padding: 30px;
  margin-bottom: 30px;
  border: none;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  position: relative;
  transition: var(--transition-smooth);
}

#roo-input h1 {
  color: var(--text-primary);
  margin-bottom: 30px;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
}

/* Enhanced form field group */
.roo-field-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
  border: var(--border-glass);
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  min-height: auto;
  height: auto;
  transition: var(--transition-smooth);
  overflow: visible;
  position: relative;
  box-sizing: border-box;
  z-index: 1000;
}

.roo-field-group:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.roo-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  justify-content: flex-start;
  position: relative;
  overflow: visible;
  z-index: 1;
  box-sizing: border-box;
}

/* Specific field widths for better layout control */
.roo-field:nth-child(1) { /* FTA Partner field */
  flex: 0 0 auto;
  min-width: 100px;
  max-width: 120px;
}

.roo-field:nth-child(2) { /* HS Code field */
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 250px;
  z-index: 999999 !important;
  transform: translateZ(0);
}

.roo-field:nth-child(3) { /* Description field */
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  z-index: -1;
}

.roo-field:nth-child(4) { /* Toggle switch field */
  flex: 0 0 auto;
  min-width: 200px;
  max-width: 250px;
  z-index: 10;
}

.roo-field label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Modern input styling */
input[type="text"] {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
  border: var(--border-glass);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-weight: 500;
  transition: var(--transition-smooth);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus {
  outline: none;
  border: 2px solid var(--accent-color);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
  transform: scale(1.02);
}

input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#roo-eu {
  width: 80px !important;
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
  background: rgba(255, 255, 255, 0.2);
}

#roo-number {
  width: 100% !important;
  max-width: 200px;
  min-width: 150px;
  text-align: center;
  font-weight: bold;
  font-size: 1.1em;
}

/* Enhanced description box */
.hs-description-box {
  width: 100%;
  max-width: 600px;
  min-width: 300px;
  min-height: 50px;
  max-height: none;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
  border: var(--border-glass);
  border-radius: 10px;
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Nunito Sans', Arial, sans-serif;
  line-height: 1.5;
  display: block;
  overflow: hidden;
  word-wrap: break-word;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
  box-sizing: border-box;
  position: relative;
  z-index: -1;
}

.hs-description-box:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* HS Code Mode Toggle Switch Styling */
.hs-mode-toggle-container {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
  flex-wrap: nowrap;
}

/* Toggle labels will be controlled by JavaScript */
.toggle-label {
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  opacity: 0.7;
  white-space: nowrap;
  flex-shrink: 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  cursor: pointer;
  z-index: 10;
}

.toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-light);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  top: 2px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  border-radius: 50%;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toggle-switch:hover .toggle-slider {
  background: rgba(100, 255, 218, 0.2);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(30, 166, 83, 0.3);
  border-color: var(--secondary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(30px);
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

/* Tooltip positioning for toggle */
.toggle-wrapper .tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(27, 54, 93, 0.95);
  backdrop-filter: var(--glass-blur);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  border: var(--border-glass);
  box-shadow: var(--shadow-light);
  z-index: 1000;
}

.toggle-wrapper:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Description Mode Toggle Styles - matches hs-mode-toggle structure */
#description-mode-toggle-container {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

#description-mode-toggle-container .toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  width: auto;
  justify-content: center;
  box-sizing: border-box;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

#description-mode-toggle-container .toggle-label {
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  opacity: 0.7;
  white-space: nowrap;
  flex-shrink: 0;
}

#description-mode-toggle-container .toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  cursor: pointer;
  z-index: 10;
}

#description-mode-toggle-container .toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

#description-mode-toggle-container .toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-light);
}

#description-mode-toggle-container .toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  top: 2px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  border-radius: 50%;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#description-mode-toggle-container .toggle-switch:hover .toggle-slider {
  background: rgba(100, 255, 218, 0.2);
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

#description-mode-toggle-container .toggle-switch input:checked + .toggle-slider {
  background: rgba(30, 166, 83, 0.3);
  border-color: var(--secondary-color);
}

#description-mode-toggle-container .toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(30px);
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

#description-mode-toggle-container .toggle-wrapper .tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 12px;
  background: rgba(27, 54, 93, 0.98);
  backdrop-filter: var(--glass-blur);
  color: var(--text-primary);
  padding: 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: normal;
  word-wrap: break-word;
  max-width: 345px;
  width: max-content;
  min-width: 287px;
  min-height: 60px;
  text-align: left;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  border: var(--border-glass);
  box-shadow: var(--shadow-light);
  z-index: 9999;
}

#description-mode-toggle-container .toggle-wrapper:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Add arrow pointer to description mode tooltip */
#description-mode-toggle-container .toggle-wrapper .tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: rgba(27, 54, 93, 0.98);
  z-index: 9999;
}

/* Disabled state for description mode toggle */
#description-mode-toggle-container.disabled {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(100%);
}

#description-mode-toggle-container.disabled .toggle-switch {
  cursor: not-allowed;
}

#description-mode-toggle-container.disabled .toggle-slider {
  background: rgba(100, 100, 100, 0.2) !important;
  border-color: rgba(150, 150, 150, 0.3) !important;
}

#description-mode-toggle-container.disabled .toggle-slider:before {
  background: rgba(120, 120, 120, 0.6) !important;
}

#description-mode-toggle-container.disabled .toggle-label {
  color: rgba(150, 150, 150, 0.6) !important;
}

/* Selected HS Codes Display */
.selected-hs-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.selected-hs-code-item {
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid var(--accent-color);
  border-radius: 15px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.selected-hs-code-item:hover {
  background: rgba(100, 255, 218, 0.2);
  transform: translateY(-1px);
}

.selected-hs-code-item .remove-hs-code {
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.selected-hs-code-item .remove-hs-code:hover {
  background: rgba(255, 107, 107, 0.2);
  color: #ff4757;
}

/* HS Code Suggestions with Checkboxes */
.hs-suggestion-item.with-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
}

.hs-suggestion-item.with-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-color);
  cursor: pointer;
  margin: 0;
}

.hs-suggestion-item.with-checkbox .suggestion-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hs-suggestion-item.with-checkbox.invalid {
  opacity: 0.5;
  cursor: not-allowed;
}

.hs-suggestion-item.with-checkbox.invalid input[type="checkbox"] {
  cursor: not-allowed;
  pointer-events: none;
}

.hs-suggestion-item.invalid-hs-hint {
  color: #ff6b6b;
  font-style: italic;
  padding: 8px 15px;
  font-size: 0.85rem;
}

/* Expandable HS Description Styles */
.hs-description-container {
  position: relative;
}

.view-full-description {
  display: flex;
  align-items: center;
  user-select: none;
  font-weight: 500;
}

.view-full-description:hover {
  color: #ff6b6b !important;
  transform: translateY(-1px);
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 0.7rem;
  font-weight: bold;
}

.full-description {
  overflow: hidden;
  transition: all 0.3s ease-out;
  border-left: 3px solid var(--accent-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.full-description.expanding {
  animation: expandDown 0.3s ease-out forwards;
}

.full-description.collapsing {
  animation: collapseUp 0.3s ease-out forwards;
}

@keyframes expandDown {
  0% {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }
}

@keyframes collapseUp {
  0% {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
}

/* Navigation styles for hierarchical HS code selection */
.hs-suggestion-item.navigable {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.1) 0%, rgba(30, 166, 83, 0.1) 100%);
  border-left: 3px solid var(--secondary-color);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.hs-suggestion-item.navigable:hover {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.2) 0%, rgba(30, 166, 83, 0.2) 100%);
  transform: translateX(5px);
}

.navigable-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navigation-arrow {
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2rem;
  margin-left: auto;
  transition: var(--transition-smooth);
}

.hs-suggestion-item.navigable:hover .navigation-arrow {
  transform: translateX(3px);
  color: var(--accent-color);
}

/* Multiple HS Codes Mode Adjustments */
.multiple-hs-mode .hs-code-selected {
  min-height: 60px;
}

.multiple-hs-mode #roo-number {
  margin-bottom: 0;
}

/* Agreement filter restrictions in multiple HS mode - fixed to allow selection */
.agreement-restricted .multiselect-option:not(.select-all) input[type="checkbox"]:not(:checked) {
  /* Removed pointer-events: none to allow selection */
  /* Keep visual indication that only one should be selected */
  opacity: 0.8;
}

.agreement-restricted .multiselect-option.select-all {
  display: none;
}

/* Hide contracting partner option in multiple HS mode */
.multiple-hs-active .contracting-partner-option {
  display: none !important;
}

/* Greyed out filters when no agreement selected */
.filter-disabled {
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(100%);
}

/* Countries filter greyed out in multiple HS mode */
.countries-disabled {
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(50%);
}

/* Tooltip Styling */
.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: normal;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 8px;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.checkbox-label:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

/* Modern button styling */
#roo-input button {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: var(--text-primary);
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  margin: 25px 0 0 25px;
  transition: var(--transition-smooth);
  font-family: 'Nunito Sans', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
  display: block;
}

/* NEW SEARCH button positioned under FTA partner */
.under-fta-button {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: var(--text-primary);
  border: none;
  padding: 10px 20px;
  border-radius: 15px;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  margin: 10px 0 0 0;
  transition: var(--transition-smooth);
  font-family: 'Nunito Sans', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
  display: block;
  width: auto;
  align-self: flex-start;
}

.under-fta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-smooth);
}

.under-fta-button:hover::before {
  left: 100%;
}

.under-fta-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-heavy);
}

.under-fta-button:active {
  transform: translateY(-1px) scale(1.01);
}

/* Second row for buttons within the green container */
.roo-button-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  padding: 15px 25px 20px 25px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.roo-button-row button {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: var(--text-primary);
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
  transition: var(--transition-smooth);
  font-family: 'Nunito Sans', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
  display: block;
}

/* NEW SEARCH button gets the reversed gradient */
.roo-button-row #new-search-btn {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.roo-button-row button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-smooth);
}

.roo-button-row button:hover::before {
  left: 100%;
}

.roo-button-row button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-heavy);
}

.roo-button-row button:active {
  transform: translateY(-1px) scale(1.02);
}

/* Button row container for New Search button inside first container */
.roo-field-group .roo-field .button-row {
  display: flex;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}

.roo-field-group .roo-field .button-row button {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: var(--text-primary);
  border: none;
  padding: 12px 30px;
  border-radius: 20px;
  font-size: 0.95em;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
  transition: var(--transition-smooth);
  font-family: 'Nunito Sans', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
  display: block;
}

.roo-field-group .roo-field .button-row button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-smooth);
}

.roo-field-group .roo-field .button-row button:hover::before {
  left: 100%;
}

.roo-field-group .roo-field .button-row button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-heavy);
}

.roo-field-group .roo-field .button-row button:active {
  transform: translateY(-1px) scale(1.01);
}

/* Button row container for New Search button in first container */
.roo-row .button-row {
  display: flex;
  justify-content: flex-start;
  margin: 20px 0 0 0;
  padding: 0 25px;
}

/* Button row container for Search and New Search buttons in second container */
.button-row {
  display: flex;
  gap: 20px;
  margin: 25px 0 0 25px;
  align-items: center;
}

.button-row button {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: var(--text-primary);
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  margin: 0;
  transition: var(--transition-smooth);
  font-family: 'Nunito Sans', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
  display: block;
}

/* New Search button specific styling */
#new-search-btn {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

#roo-input button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-smooth);
}

.button-row button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-smooth);
}

#roo-input button:hover::before {
  left: 100%;
}

.button-row button:hover::before {
  left: 100%;
}

#roo-input button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-heavy);
}

.button-row button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-heavy);
}

#roo-input button:active {
  transform: translateY(-1px) scale(1.02);
}

.button-row button:active {
  transform: translateY(-1px) scale(1.02);
}

/* Header container for title only */
.roo-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

.roo-header h1 {
  margin: 0;
  text-align: center;
}

/* Container footer with buttons at the bottom of the container */
.container-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 25px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
}

/* Fields row styling - updated to fill the container */
.fields-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
  padding: 25px 25px 15px 25px;
  flex: 1;
}

/* New Search Button - Small and subtle blue styling */
.new-search-button {
  background: rgba(70, 130, 180, 0.8) !important;
  color: #e8f4fd !important;
  border: 1px solid rgba(100, 149, 237, 0.6) !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-size: 0.75em !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-family: 'Nunito Sans', Arial, sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  position: static !important;
  overflow: visible !important;
  display: inline-block !important;
  transform: none !important;
  backdrop-filter: blur(5px) !important;
}

/* Disable any sweep effects for new search button */
.new-search-button::before {
  display: none !important;
  content: none !important;
}

.new-search-button:hover {
  background: rgba(100, 149, 237, 0.9) !important;
  color: #ffffff !important;
  border-color: rgba(135, 206, 250, 0.8) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.new-search-button:active {
  background: rgba(65, 105, 225, 0.9) !important;
  color: #f0f8ff !important;
  transform: translateY(0px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Instructions Button - Small and sharp gray with !important overrides */
.instructions-button {
  background: #666666 !important;
  color: #cccccc !important;
  border: 1px solid #777777 !important;
  border-radius: 6px !important;
  padding: 2px 5px !important;
  font-size: 0.8em !important;
  font-weight: 400 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-family: 'Nunito Sans', Arial, sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  position: static !important;
  overflow: visible !important;
  display: inline-block !important;
  transform: none !important;
}

/* Disable the sweep effect for instructions button */
.instructions-button::before {
  display: none !important;
  content: none !important;
}

.instructions-button:hover {
  background: #777777 !important;
  color: #ffffff !important;
  border-color: #888888 !important;
  transform: none !important;
  box-shadow: none !important;
}

.instructions-button:active {
  background: #555555 !important;
  color: #aaaaaa !important;
  transform: none !important;
}

/* Instructions Modal */
.instructions-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  padding-top: 40px;
  z-index: 10000 !important;
  overflow-y: auto;
}

.modal-wrapper {
  background: rgba(25, 45, 75, 0.98);
  border: 1px solid rgba(100, 255, 218, 0.4);
  border-radius: 16px;
  max-width: 900px;
  max-height: calc(100vh - 80px);
  height: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  margin-bottom: 40px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(100, 255, 218, 0.2);
  background: rgba(100, 255, 218, 0.05);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  color: var(--accent-color);
  font-size: 2.1rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.35rem;
  color: #ff4444;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10001;
}

.modal-close:hover {
  background: rgba(255, 68, 68, 0.2);
  color: #ff6666;
  transform: scale(1.1);
}

.modal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 30px 40px 30px;
  color: #ffffff !important;
  line-height: 1.65;
  font-size: 0.95rem;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

/* Override any parent color inheritance for modal content */
.modal-body h1,
.modal-body h2,
.modal-body h3,
.modal-body h4,
.modal-body h5,
.modal-body h6,
.modal-body p,
.modal-body div,
.modal-body span,
.modal-body li {
  color: #ffffff !important;
}

.intro-section {
  margin-top: 0;
  margin-bottom: 25px;
  padding: 18px 20px;
  background: rgba(100, 255, 218, 0.08);
  border: 1px solid rgba(100, 255, 218, 0.25);
  border-radius: 10px;
}

.intro-section p {
  font-size: 0.98rem;
  color: #ffffff !important;
  margin: 0 0 12px 0;
  opacity: 1;
  text-align: left;
  font-weight: 400;
}

.guide-section {
  margin-bottom: 25px;
}

.guide-section h3 {
  color: var(--accent-color);
  font-size: 1.18rem;
  margin: 18px 0 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(100, 255, 218, 0.25);
}

.guide-section h3::before {
  content: '🔍';
  font-size: 1.2em;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 10px 0 18px 0;
  transition: var(--transition-smooth);
  border-bottom: 1px dashed rgba(255,255,255,0.10);
}

.step:hover {
  transform: translateX(5px);
}

.step-number {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 90%);
  color: #082538;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(100,255,218,0.22);
}

.step-content h4 {
  color: #ffffff !important;
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.step-content p {
  margin: 0;
  color: #ffffff !important;
  font-size: 0.92rem;
  line-height: 1.5;
}

.examples-section {
  margin-bottom: 25px;
}

.examples-section h3 {
  color: var(--secondary-color);
  font-size: 1.18rem;
  margin: 26px 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.examples-section h3::before {
  content: '💡';
  font-size: 1.1em;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.example-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 16px 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.example-item:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.example-code {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1rem;
}

.example-description {
  color: #d9edf7;
  font-size: 0.82rem;
}

.modes-section {
  margin-bottom: 25px;
}

.modes-section h3 {
  color: var(--secondary-color);
  font-size: 1.3em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modes-section h3::before {
  content: '⚙️';
  font-size: 1.2em;
}

.modes-section > p {
  color: #ffffff !important;
  margin-bottom: 18px;
  font-style: italic;
}

.mode-card {
  margin-bottom: 15px;
}

.mode-card h4 {
  color: var(--secondary-color);
  margin: 0 0 10px 0;
  font-size: 1rem;
  font-weight: 600;
}

.mode-card p {
  color: #ffffff !important;
  margin: 0 0 12px 0;
  line-height: 1.5;
  font-size: 0.92rem;
}

.mode-card ul {
  color: #ffffff !important;
  margin: 10px 0 0 20px;
  font-size: 0.88rem;
}

.mode-card li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.description-mode-section {
  margin-bottom: 25px;
}

.description-mode-section h3 {
  color: var(--secondary-color);
  font-size: 1.3em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.description-mode-section h3::before {
  content: '🎯';
  font-size: 1.2em;
}

.description-mode-section p {
  color: #ffffff !important;
  margin: 0 0 8px 0;
  line-height: 1.5;
  font-size: 0.92rem;
}

.important-note-section h3 {
  color: var(--accent-color);
  font-size: 1.15rem;
  margin: 26px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.important-note-section h3::before {
  content: '⚠️';
  font-size: 1.2em;
}

.note-card {
  margin-bottom: 20px;
}

.note-card p {
  margin: 0;
  color: #ffffff !important;
  line-height: 1.5;
  font-size: 0.92rem;
}

/* Responsive design for modal */
@media (max-width: 768px) {
  .modal-wrapper {
    max-height: calc(80vh - 20px);
    margin: 5px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .step {
    flex-direction: column;
    gap: 15px;
  }
  
  .step-number {
    width: 30px;
    height: 30px;
    font-size: 1em;
  }
  
  .examples-grid {
    grid-template-columns: 1fr;
  }
  
  .button-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .instructions-button {
    margin: 0;
  }
  
  /* Make header responsive */
  .roo-header {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .roo-header h1 {
    text-align: center;
  }
  
  /* Make container footer responsive */
  .container-footer {
    flex-direction: column;
    gap: 8px;
    padding: 8px 20px;
    align-items: center;
  }
  
  /* Make fields row responsive */
  .fields-row {
    flex-direction: column;
    gap: 15px;
    padding: 20px 20px 15px 20px;
  }
}

/* Modern filter container - integrated into form */
#roo-filter-container {
  margin: 20px 0 80px 0;
  padding: 0;
  background: none;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* HS Code Input Styled as Custom Select */
.hs-code-input-container {
  width: 100% !important;
  max-width: 220px !important;
  min-width: 150px !important;
  position: relative !important;
  box-sizing: border-box;
  z-index: 999999 !important;
  transform: translateZ(0);
}

.hs-code-selected {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
  border: var(--border-glass);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-weight: 500;
  transition: var(--transition-smooth);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  position: relative;
  z-index: 999999 !important;
  transform: translateZ(0);
}

.hs-code-selected:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.hs-code-selected input {
  text-align: left;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
}

.hs-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(27, 54, 93, 0.95);
  backdrop-filter: var(--glass-blur);
  border: var(--border-glass);
  border-radius: 8px;
  box-shadow: var(--shadow-heavy);
  z-index: 999999 !important;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 4px;
  width: 100%;
  box-sizing: border-box;
  transform: translateZ(0);
}

.hs-suggestion-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}

.hs-suggestion-item:hover {
  background: rgba(100, 255, 218, 0.2);
}

.hs-suggestion-item:last-child {
  border-bottom: none;
}

.hs-suggestion-code {
  font-weight: bold;
  color: var(--text-primary);
  font-size: 15px;
}

.hs-suggestion-count {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.hs-suggestion-item.highlighted {
  background: rgba(0, 123, 255, 0.15) !important;
  backdrop-filter: blur(15px) !important;
}

.filter-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
  border: var(--border-glass);
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  padding: 25px;
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  height: auto;
  transition: var(--transition-smooth);
  overflow: visible;
  position: relative;
  box-sizing: border-box;
  z-index: 100;
}

.filter-section:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.filter-controls {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}

.filter-controls-left {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.filter-field-description {
  flex-shrink: 0;
  white-space: nowrap;
}

.filter-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
  flex: 0 0 auto;
  margin: 0;
  justify-content: flex-start;
  position: relative;
  overflow: visible;
  z-index: 1;
  box-sizing: border-box;
}

/* Filter fields will have specific widths to fit in one line */
.filter-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0px;
  flex: 0 0 auto;
  margin: 0;
  justify-content: flex-start;
  position: relative;
  overflow: visible;
  z-index: auto;
  box-sizing: border-box;
  width: auto;
  max-width: 300px;
}

/* Specific widths for each filter field to fit in one line */
.filter-field:nth-child(1) { /* Display Rules of Origin By */
  flex: 1;
  min-width: 220px;
  z-index: 1300 !important; /* Highest - leftmost */
}

.filter-field:nth-child(2) { /* Select Agreements */
  flex: 1;
  min-width: 220px;
  z-index: 1200 !important; /* Medium - middle */
}

.filter-field:nth-child(3) { /* Select Countries */
  flex: 1;
  min-width: 220px;
  z-index: 1100 !important; /* Lowest - rightmost */
}

.filter-field label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Modern select dropdown styling - compact for form integration */
select {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
  border: var(--border-glass);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-weight: 500;
  transition: var(--transition-smooth);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  text-align: left;
  font-size: 0.9rem;
  box-sizing: border-box;
}

select:focus {
  outline: none;
  border: 2px solid var(--accent-color);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
  transform: scale(1.02);
}

select:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Style select options */
select option {
  background: rgba(27, 54, 93, 0.95);
  color: var(--text-primary);
  padding: 10px;
  border: none;
  font-family: 'Nunito Sans', Arial, sans-serif;
}

/* Multi-select agreement filter styling */
#agreement-filter {
  min-width: 250px;
  max-width: 300px;
  min-height: 120px !important;
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
}

#agreement-filter option {
  padding: 8px 12px;
  margin: 2px 0;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

#agreement-filter option:checked {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: var(--primary-color);
  font-weight: 600;
}

#agreement-filter option:hover {
  background: rgba(100, 255, 218, 0.2);
}

#agreement-filter option[value="all"] {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 5px;
  font-weight: 600;
}

/* Custom multiselect dropdown styling */
.custom-multiselect {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 1000;
}

/* Descending z-index for parent containers - left to right */
.filter-field:nth-child(1) .custom-select,
.filter-field:nth-child(1) .custom-multiselect {
  z-index: 1300; /* Highest - leftmost container */
}

.filter-field:nth-child(2) .custom-multiselect {
  z-index: 1200; /* Medium - middle container */
}

.filter-field:nth-child(3) .custom-multiselect {
  z-index: 1100; /* Lowest - rightmost container */
}

.multiselect-selected {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
  border: var(--border-glass);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-weight: 500;
  transition: var(--transition-smooth);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.multiselect-selected::after {
  content: "▼";
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.multiselect-selected.open::after {
  transform: rotate(180deg);
}

.multiselect-selected:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.multiselect-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(27, 54, 93, 0.95);
  backdrop-filter: var(--glass-blur);
  border: var(--border-glass);
  border-radius: 8px;
  box-shadow: var(--shadow-heavy);
  z-index: 100000;
  display: none;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 4px;
}

.multiselect-dropdown.show {
  display: block;
  animation: dropdownSlide 0.3s ease-out;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.multiselect-option {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.multiselect-option:last-child {
  border-bottom: none;
}

.multiselect-option:hover {
  background: rgba(100, 255, 218, 0.2);
}

.multiselect-option input[type="checkbox"] {
  margin-right: 10px;
  accent-color: var(--accent-color);
  transform: scale(1.2);
}

.multiselect-option label {
  color: var(--text-primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  flex: 1;
  margin: 0;
}

.multiselect-option.select-all {
  border-bottom: 2px solid rgba(100, 255, 218, 0.3);
  font-weight: 600;
}

/* Custom select dropdown styling (for single selection dropdowns) */
.custom-select {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 1000;
}

.select-selected {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur);
  border: var(--border-glass);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-weight: 500;
  transition: var(--transition-smooth);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.select-selected::after {
  content: "▼";
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.select-selected.open::after {
  transform: rotate(180deg);
}

.select-selected:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(27, 54, 93, 0.95);
  backdrop-filter: var(--glass-blur);
  border: var(--border-glass);
  border-radius: 8px;
  box-shadow: var(--shadow-heavy);
  z-index: 100000;
  display: none;
  margin-top: 4px;
}

/* Descending z-index for dropdowns - left to right */
.filter-field:nth-child(1) .select-dropdown,
.filter-field:nth-child(1) .multiselect-dropdown {
  z-index: 130000; /* Highest - leftmost dropdown */
}

.filter-field:nth-child(2) .multiselect-dropdown {
  z-index: 120000; /* Medium - middle dropdown */
}

.filter-field:nth-child(3) .multiselect-dropdown {
  z-index: 110000; /* Lowest - rightmost dropdown */
}

.select-dropdown.show {
  display: block;
  animation: dropdownSlide 0.3s ease-out;
}

.select-option {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.select-option:last-child {
  border-bottom: none;
}

.select-option:hover {
  background: rgba(100, 255, 218, 0.2);
}

.select-option.selected {
  background: rgba(100, 255, 218, 0.15);
  color: var(--accent-color);
  font-weight: 600;
}

.select-option label {
  color: var(--text-primary);
  font-family: 'Nunito Sans', Arial, sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  flex: 1;
  margin: 0;
}

.select-option.selected label {
  color: var(--accent-color);
}

/* Modern results section */
#roo-results {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--glass-glur);
  padding: 30px;
  border: none;
  border-radius: 20px;
  min-height: 120px;
  box-shadow: var(--shadow-light);
}

#roo-results #hs-results {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

/* Ultra-modern table styling with unified layout */
.roo-table {
  width: 100%;
  table-layout: fixed; /* Force fixed layout to respect column widths */
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--glass-blur);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  border: var(--border-glass);
  font-size: 0.95rem;
}

.roo-table th {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-primary);
  padding: 20px 15px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  position: relative;
  width: 18%; /* Equal width for all columns (5 FTA columns = 18% each, 10% for labels) */
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 0; /* Force table layout algorithm to respect width */
  box-sizing: border-box;
}

.roo-table th:first-child {
  width: auto; /* Let it be flexible based on content and available space */
  min-width: 120px; /* Ensure minimum readable width */
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.roo-table td {
  padding: 18px 15px;
  text-align: justify;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-glass);
  border-width: 0 0 1px 1px;
  transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  vertical-align: middle;
  min-height: 60px;
  width: 18%; /* Equal width for all data columns */
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.4;
  text-justify: inter-word;
  font-size: 1rem;
  font-family: 'Nunito Sans', Arial, sans-serif;
  max-width: 0; /* Force table layout algorithm to respect width */
  box-sizing: border-box;
}

.roo-table td:first-child {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.2), rgba(30, 166, 83, 0.2));
  font-weight: 700;
  text-align: left;
  padding-left: 20px;
  width: auto; /* Let it be flexible based on content and available space */
  min-width: 120px; /* Ensure minimum readable width */
  color: var(--accent-color);
  width: 10%; /* Smaller width for row labels */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.roo-table tr:last-child td {
  border-bottom: none;
}

.roo-table td:last-child {
  border-right: none;
}

.roo-table tr:hover td {
  background: rgba(100, 255, 218, 0.1);
}

.roo-table tr:hover td:first-child {
  background: linear-gradient(135deg, rgba(100, 255, 218, 0.3), rgba(30, 166, 83, 0.3));
}

/* Enhanced hover effects for table cells */
.roo-table td:not(:first-child):hover {
  background: rgba(100, 255, 218, 0.2) !important;
  color: #ffffff !important;
  /* Keep original subtle glass borders; no accent-colored borders on hover */
}

/* Force text properties to remain static - but allow white color on hover */
.roo-table td:not(:first-child),
.roo-table tr:hover td:not(:first-child) {
  font-size: 1rem !important;
  font-weight: inherit !important;
  line-height: 1.4 !important;
  transform: none !important;
  font-family: 'Nunito Sans', Arial, sans-serif !important;
}

/* Default color for non-first column cells */
.roo-table td:not(:first-child) {
  color: var(--text-primary) !important;
}

/* White text on hover for non-first column cells */
.roo-table td:not(:first-child):hover,
.roo-table tr:hover td:not(:first-child) {
  color: #ffffff !important;
}

/* Keep first column styling as original */
.roo-table td:first-child {
  font-weight: 700 !important;
  color: var(--accent-color) !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  transform: none !important;
  font-family: 'Nunito Sans', Arial, sans-serif !important;
}

.roo-table td:first-child:hover {
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  transform: none !important;
  font-family: 'Nunito Sans', Arial, sans-serif !important;
}

.roo-table tr:hover td:first-child {
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  transform: none !important;
  font-family: 'Nunito Sans', Arial, sans-serif !important;
}

/* Make the AGREEMENT row (first data row) cyan color - the row with country/agreement names */
.roo-table tbody tr:first-child td {
  color: #64FFDA !important;
  font-weight: 600 !important;
}

.roo-table tbody tr:first-child td:hover,
.roo-table tbody tr:first-child:hover td {
  color: #64FFDA !important;
  font-weight: 600 !important;
}

/* Responsive design improvements */
@media (max-width: 1200px) {
  .roo-table th,
  .roo-table td {
    padding: 15px 10px;
    font-size: 0.9rem;
  }
  
  .roo-field-group {
    max-width: 100%;
    padding: 20px;
    gap: 15px;
  }
  
  .hs-description-box {
    max-width: 500px;
    min-width: 250px;
  }
  
  .filter-controls {
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .filter-field:nth-child(1) {
    flex: 1;
    min-width: 250px;
  }
  
  .filter-field:nth-child(2) {
    flex: 1;
    min-width: 250px;
  }
  
  .filter-field:nth-child(3) {
    flex: 1;
    min-width: 250px;
    max-width: 200px;
  }
  
  .filter-field label {
    font-size: 0.8rem;
    letter-spacing: 0.3px;
  }
  
  select {
    min-width: 160px;
  }
  
  /* Description mode toggle for medium screens */
  #description-mode-toggle-container {
    width: auto;
    align-items: center;
  }
}

@media (max-width: 768px) {
  main {
    padding: 20px 10px;
  }
  
  section {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .roo-field-group {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    gap: 15px;
  }
  
  .roo-field {
    width: 100%;
    min-width: auto;
    max-width: none;
  }
  
  /* Reset specific field widths for mobile */
  .roo-field:nth-child(1),
  .roo-field:nth-child(2),
  .roo-field:nth-child(3),
  .roo-field:nth-child(4) {
    flex: none;
    min-width: auto;
    max-width: none;
    width: 100%;
  }
  
  .hs-description-box {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    min-height: 50px;
  }
  
  .hs-code-input-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
  }
  
  .navbar a {
    padding: 15px 20px;
    font-size: 1rem;
  }
  
  #roo-input h1 {
    font-size: 2rem;
  }
  
  .roo-table {
    font-size: 0.8rem;
  }
  
  .roo-table th,
  .roo-table td {
    padding: 12px 8px;
  }
  
  /* Mobile responsive column widths: 30% criteria + 70% result */
  .roo-table th:first-child,
  .roo-table td:first-child {
    width: 30% !important;
  }
  
  .roo-table th:not(:first-child),
  .roo-table td:not(:first-child) {
    width: 70% !important;
  }
  
  #roo-filter-container {
    padding: 0;
  }
  
  .filter-section {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    gap: 15px;
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    justify-content: flex-start;
  }
  
  .filter-controls-left {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-field-description {
    white-space: normal;
    flex-shrink: 1;
  }
  
  .filter-field {
    width: 100%;
    min-width: auto;
    max-width: none;
  }
  
  .filter-field:nth-child(1),
  .filter-field:nth-child(2),
  .filter-field:nth-child(3) {
    min-width: auto !important;
    max-width: none !important;
    width: 100% !important;
    flex: none !important;
  }
  
  /* Description mode toggle responsive */
  #description-mode-toggle-container {
    width: auto !important;
    align-items: center;
  }
  
  #description-mode-toggle-container .toggle-wrapper {
    margin-left: 0;
    margin-right: auto;
    width: auto;
  }

  select {
    width: 100%;
    max-width: 100%;
    font-size: 0.9rem;
  }
  
  .hs-mode-toggle-container {
    width: 100%;
    align-items: center;
  }
  
  .toggle-wrapper {
    justify-content: center;
    gap: 8px;
  }
  
  .toggle-label {
    font-size: 0.75rem;
  }
  
  /* Make dropdowns push content down instead of overlaying on narrow screens */
  .multiselect-dropdown,
  .select-dropdown {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: 8px !important;
    margin-bottom: 15px !important;
  }
}

@media (max-width: 600px) {
  .roo-table th,
  .roo-table td {
    padding: 10px 5px;
    font-size: 0.75rem;
  }
  
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .navbar a {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  
  select {
    width: 100%;
    max-width: 100%;
    font-size: 0.85rem;
  }
  
  .filter-field label {
    font-size: 0.8rem;
  }
  
  .roo-field-group {
    padding: 15px;
    gap: 12px;
  }
  
  .roo-field {
    width: 100%;
  }
  
  /* Reset specific field widths for small mobile */
  .roo-field:nth-child(1),
  .roo-field:nth-child(2),
  .roo-field:nth-child(3),
  .roo-field:nth-child(4) {
    flex: none;
    min-width: auto;
    max-width: none;
    width: 100%;
  }
  
  .hs-description-box {
    width: 100%;
    min-width: auto;
    font-size: 0.9em;
    padding: 10px 12px;
  }
  
  #roo-number {
    width: 100% !important;
    min-width: auto !important;
  }
  
  .hs-code-input-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
  }
  
  .hs-mode-toggle-container {
    margin-top: 10px;
  }
  
  .toggle-wrapper {
    gap: 6px;
  }
  
  .toggle-label {
    font-size: 0.7rem;
  }
  
  .filter-section {
    padding: 15px;
    gap: 12px;
    min-height: 250px;
  }
  
  .filter-field {
    width: 100%;
    min-width: auto;
  }
  
  .filter-field:nth-child(1),
  .filter-field:nth-child(2),
  .filter-field:nth-child(3) {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
  
  .filter-controls {
    flex-direction: column;
    gap: 12px;
  }
}

/* Loading animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 2s infinite;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* ===== HOME SECTION STYLING ===== */
/* Home section inherits general section styling but with specific customizations */

.home-hero {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-welcome-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.home-welcome-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(31, 38, 135, 0.5);
}

.welcome-logo-container {
  position: absolute;
  top: 20px;
  left: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-logo {
  max-width: 188px;
  max-height: 125px;
  width: auto;
  height: auto;
  opacity: 1;
  transition: var(--transition-smooth);
  filter: contrast(1.1) saturate(1.2) brightness(1.1);
}

.welcome-logo:hover {
  opacity: 1;
  transform: scale(1.05);
  filter: contrast(1.2) saturate(1.3) brightness(1.2);
}

.home-title {
  font-size: 2.5rem;
  margin: 0 0 15px 0;
  font-weight: 700;
  color: var(--text-primary);
}

.title-highlight {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
}

.home-subtitle {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 0;
  opacity: 0.9;
  font-weight: 300;
}

.home-intro-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
}

.home-intro-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(31, 38, 135, 0.4);
}

.intro-icon {
  /* Updated for transparent PNG icon */
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0 auto 10px auto;
}

.intro-icon img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: transparent !important;
}

.icon { width: 24px; height: 24px; display: inline-block; }

.home-intro-card h2 {
  color: var(--accent-color) !important;
  margin: 0 0 20px 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.home-intro-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-primary) !important;
  margin: 0;
}

.home-features-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

@media (max-width: 768px) {
  .home-features-section {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
}

.featured-tool {
  border: 2px solid var(--accent-color);
  background: rgba(100, 255, 218, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(31, 38, 135, 0.4);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.feature-icon {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  width: auto;
  height: auto;
  display: inline-block;
  font-size: 28px;
  line-height: 1;
}

.feature-header h3 {
  color: var(--accent-color) !important;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  flex: 1;
}

.feature-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary) !important;
  margin-bottom: 20px;
}

.key-advantage {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(100, 255, 218, 0.1);
  border-left: 4px solid var(--accent-color);
  padding: 18px;
  border-radius: 12px;
  margin: 20px 0;
}

.advantage-icon { background: none !important; border: none !important; box-shadow: none !important; width: auto; height: auto; display: inline-block; font-size: 20px; line-height: 1; }

.advantage-text {
  color: var(--text-primary) !important;
  line-height: 1.5;
  font-size: 1rem;
}

.cta-container {
  margin-top: 25px;
  text-align: center;
}

.home-cta-button {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  color: var(--primary-color);
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.3);
}

.home-cta-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.4);
}

.cta-arrow { display: inline-flex; align-items: center; transition: transform 0.3s ease; }

.home-cta-button:hover .cta-arrow {
  transform: translateX(5px);
}

.future-plans-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.future-plans-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(31, 38, 135, 0.4);
}

.future-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.future-icon { background: none !important; border: none !important; box-shadow: none !important; width: auto; height: auto; display: inline-block; font-size: 26px; line-height: 1; }

.future-header h3 {
  color: var(--secondary-color) !important;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.roadmap-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary) !important;
  font-size: 0.95rem;
  line-height: 1.4;
}

.roadmap-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.home-footer-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.home-footer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(31, 38, 135, 0.4);
}

.services-cta h3 {
  color: var(--accent-color) !important;
  margin: 0 0 15px 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.services-cta p {
  color: var(--text-primary) !important;
  margin: 0 0 20px 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

.secondary-cta-button {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.secondary-cta-button:hover {
  background: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(100, 255, 218, 0.3);
}

/* Mobile responsiveness for home section */
@media (max-width: 768px) {
  .home-hero {
    gap: 20px;
  }
  
  .home-welcome-card {
    padding: 25px;
  }
  
  .home-title {
    font-size: 2rem;
  }
  
  .home-subtitle {
    font-size: 1.1rem;
  }
  
  .feature-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* Contact Section Styles */
.home-contact-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.home-contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(31, 38, 135, 0.4);
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-icon { background: none !important; border: none !important; box-shadow: none !important; width: auto; height: auto; display: inline-block; font-size: 40px; line-height: 1; margin-bottom: 10px; }

.contact-cta h3 {
  color: var(--accent-color) !important;
  margin: 0 0 15px 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.contact-cta p {
  color: var(--text-primary) !important;
  margin: 0 0 25px 0;
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  width: 100%;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.method-icon { background: none !important; border: none !important; box-shadow: none !important; width: auto; height: auto; flex-shrink: 0; display: inline-block; font-size: 22px; line-height: 1; }

.method-info {
  text-align: left;
}

.method-info strong {
  color: var(--accent-color);
  display: block;
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: 600;
}

.method-info p {
  color: var(--text-primary) !important;
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Dedicated Contact Page Styles */
.contact-hero {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-welcome-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  position: relative;
}

.contact-logo-container {
  position: absolute;
  top: 30px;
  left: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-logo {
  max-width: 188px;
  max-height: 125px;
  width: auto;
  height: auto;
  opacity: 1;
  transition: var(--transition-smooth);
  filter: contrast(1.1) saturate(1.2) brightness(1.1);
}

.contact-logo:hover {
  opacity: 1;
  transform: scale(1.05);
  filter: contrast(1.2) saturate(1.3) brightness(1.2);
}

.contact-title {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 20px 0;
  background: linear-gradient(135deg, #ffffff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin: 0;
  opacity: 0.9;
  font-weight: 400;
}

.contact-info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info-card,
.contact-form-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s ease;
}

.contact-info-card:hover,
.contact-form-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(31, 38, 135, 0.4);
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 60px;
  margin-top: 60px
}

.contact-large-icon { background: none !important; border: none !important; box-shadow: none !important; width: auto; height: auto; display: inline-block; font-size: 28px; line-height: 1; }

.contact-header h2 {
  color: var(--accent-color);
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.detail-icon { background: none !important; border: none !important; box-shadow: none !important; width: auto; height: auto; margin-top: 0; flex-shrink: 0; display: inline-block; font-size: 20px; line-height: 1; }

.detail-content h3 {
  color: var(--accent-color);
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.detail-content p {
  color: var(--text-primary);
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
}

.detail-content a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.detail-content a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.form-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.form-icon { background: none !important; border: none !important; box-shadow: none !important; width: auto; height: auto; display: inline-block; font-size: 22px; line-height: 1; }

.form-header h3 {
  color: var(--accent-color);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 15px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.contact-submit-button {
  background: linear-gradient(135deg, var(--secondary-color), #22c55e);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.contact-submit-button:hover {
  background: linear-gradient(135deg, #22c55e, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 166, 83, 0.3);
}

.submit-arrow {
  transition: transform 0.3s ease;
}

.contact-submit-button:hover .submit-arrow {
  transform: translateX(3px);
}

/* Bounce animation for contact icon */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Mobile responsiveness for contact section */
@media (max-width: 768px) {
  .contact-info-section {
    grid-template-columns: 1fr;
  }
  
  .contact-methods {
    grid-template-columns: 1fr;
  }
  
  .contact-title {
    font-size: 2.2rem;
  }
  
  .contact-subtitle {
    font-size: 1.1rem;
  }
  
  .contact-hero {
    padding: 20px 10px;
  }
  
  .contact-welcome-card,
  .contact-info-card,
  .contact-form-card {
    padding: 20px;
  }
}

/* ==================== DESCRIPTION SELECTION MODAL ==================== */

/* ======= ABOUT SECTION ======= */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: 24px; backdrop-filter: blur(10px); }
.about-card h2, .about-card h3 { margin: 0 0 12px 0; color: var(--accent-color); }
.about-card p { margin: 0 0 12px 0; }
.about-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.about-highlight { background: linear-gradient(135deg, rgba(100,255,218,0.08), rgba(30,166,83,0.08)); }

/* ======= SERVICES SECTION ======= */
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(31, 38, 135, 0.4); }
.service-card h3 { margin: 0; color: var(--accent-color); text-decoration: underline; }
.service-card p { margin: 0; }
.service-card p { text-align: justify; }
.service-icon { background: none !important; border: none !important; box-shadow: none !important; width: auto; height: auto; display: inline-block; font-size: 26px; line-height: 1; }

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

.modal-container {
  background: rgba(30, 50, 82, 0.95);
  border: 1px solid rgba(100, 255, 218, 0.3);
  border-radius: 16px;
  max-width: 800px;
  max-height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid rgba(100, 255, 218, 0.2);
  background: rgba(100, 255, 218, 0.05);
}

.modal-header h2 {
  margin: 0;
  color: var(--accent-color);
  font-size: 1.4rem;
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.modal-options-container {
  padding: 20px 25px;
}

.modal-instructions {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(100, 255, 218, 0.05);
  border: 1px solid rgba(100, 255, 218, 0.2);
  border-radius: 8px;
}

.modal-instructions h3 {
  margin: 0 0 10px 0;
  color: var(--accent-color);
  font-size: 1.2rem;
}

.modal-instructions p {
  margin: 0;
  color: var(--text-primary);
  opacity: 0.9;
  line-height: 1.5;
}

.description-group-header h4 {
  color: var(--accent-color);
  margin: 20px 0 10px 0;
  font-size: 1.1rem;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(100, 255, 218, 0.3);
}

.description-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.description-option:hover {
  background: rgba(100, 255, 218, 0.05);
  border-color: rgba(100, 255, 218, 0.3);
  transform: translateY(-1px);
}

.description-option.selected {
  background: rgba(100, 255, 218, 0.1);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.description-option input[type="checkbox"] {
  margin-top: 2px;
  min-width: 16px;
  min-height: 16px;
  accent-color: var(--accent-color);
}

.description-content {
  flex: 1;
}

.description-text {
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
}

.description-meta {
  font-size: 0.85rem;
  color: var(--text-primary);
  opacity: 0.7;
  line-height: 1.3;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 25px;
  border-top: 1px solid rgba(100, 255, 218, 0.2);
  background: rgba(100, 255, 218, 0.02);
}

.modal-btn {
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.modal-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.modal-btn-primary {
  background: var(--accent-color);
  color: var(--bg-dark);
  font-weight: 600;
}

.modal-btn-primary:hover {
  background: #5ae6b8;
  transform: translateY(-1px);
}

.modal-btn-primary:disabled {
  background: rgba(100, 255, 218, 0.3);
  color: rgba(20, 35, 55, 0.5);
  cursor: not-allowed;
  transform: none;
}

/* Responsive modal styles */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 10px;
  }
  
  .modal-container {
    max-height: 95vh;
  }
  
  .modal-header,
  .modal-options-container,
  .modal-footer {
    padding: 15px;
  }
  
  .description-option {
    padding: 12px;
  }
  
  .modal-btn {
    padding: 12px 16px;
  }
}

/* Hide welcome and contact logos on smaller screens to prevent overlap */
@media (max-width: 1400px) {
  .welcome-logo-container {
    display: none;
  }
  
  .contact-logo-container {
    display: none;
  }
}
