/* ==========================================================================
   TBS Co. Global Layout, Header & Footer Design System (Vanilla CSS3)
   ========================================================================== */

:root {
  /* Decided Corporate Color Tokens (Official TBS Co. Brand) */
  --color-primary-base: #193763;
  --color-primary-deep: #0E1E36;
  --color-primary-medium: #2C4C7C;
  --color-primary-light: #D3DFEE;
  --color-primary-tint: #F0F4F8;

  --color-secondary-base: #EB7E24;
  --color-secondary-text: #B54F0D;
  --color-secondary-deep: #C56314;
  --color-secondary-light: #FDEDE0;

  --color-accent-base: #00A8CC;
  --color-accent-text: #007E9A;
  --color-accent-deep: #00607A;
  --color-accent-light: #E0F6FA;

  /* Overrides for existing tokens to map dynamically */
  --color-navy: var(--color-primary-base);
  --color-teal: var(--color-accent-text);
  --color-orange: var(--color-secondary-base);
  --color-teal-light: rgba(0, 126, 154, 0.1);
  --color-teal-glow: rgba(0, 126, 154, 0.15);
  --color-orange-light: rgba(235, 126, 36, 0.1);
  --color-orange-glow: rgba(235, 126, 36, 0.15);
  --color-white: #FFFFFF;
  --color-slate-bg: #F8FAFC;
  --color-green-indicator: #4ADE80;

  /* Neutral scale used by shared layout, RFQ controls, and page modules */
  --color-slate-50: #F8FAFC;
  --color-slate-100: #F1F5F9;
  --color-slate-200: #E2E8F0;
  --color-slate-300: #CBD5E1;
  --color-slate-400: #94A6B8;
  --color-slate-500: #64748B;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1E293B;
  --color-slate-900: #0F172A;

  /* Typography */
  --font-sans: Arial, Helvetica, sans-serif;
  --font-display: "Times New Roman", Times, serif;
  --font-arabic: Arial, Helvetica, sans-serif;
  --font-mono: "Courier New", Courier, monospace;

  /* Typography scale */
  --fs-h1: clamp(2rem, 1.33rem + 2.8vw, 3rem);
  --fs-h2: clamp(1.625rem, 1.125rem + 2.1vw, 2.375rem);
  --fs-h3: clamp(1.3125rem, 0.93rem + 1.6vw, 1.875rem);
  --fs-h4: clamp(1.125rem, 0.875rem + 1.1vw, 1.5rem);
  --fs-body: clamp(1rem, 0.92rem + 0.35vw, 1.125rem);
  --fs-body-secondary: clamp(0.9375rem, 0.8575rem + 0.35vw, 1.0625rem);
  --fs-body-tertiary: clamp(0.875rem, 0.795rem + 0.35vw, 1rem);
  --fs-caption: clamp(0.75rem, 0.72rem + 0.15vw, 0.875rem);
  --fs-caption-small: clamp(0.6875rem, 0.6575rem + 0.15vw, 0.8125rem);

  /* Layout */
  --container-max-width: 1280px;

  /* Motion */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);

  /* Elevation */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-teal: 0 10px 15px -3px rgba(0, 126, 154, 0.2);

  /* Browser default font size is 16px */
  font-size: 16px; 
}

/* Shared reset and primitives. Page CSS files may override these, but global
   must own them so non-home pages do not depend on style.css. */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--color-slate-200);
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-slate-bg);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(0, 126, 154, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(235, 126, 36, 0.02) 0%, transparent 40%);
  color: var(--color-navy);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-navy);
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
  background: transparent;
  outline: none;
}

button {
  cursor: pointer;
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-custom {
  50% { opacity: 0.5; }
}

@keyframes ping-custom {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-spin-slow {
  animation: spin-slow 40s linear infinite;
}

.animate-pulse {
  animation: pulse-custom 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-ping {
  animation: ping-custom 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.py-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid-cols-1 {
  display: grid;
  grid-template-columns: 1fr;
}

.hidden {
  display: none;
}

.rtl-right {
  direction: rtl;
  text-align: right;
}

.font-sans {
  font-family: var(--font-sans);
}

.font-arabic {
  font-family: var(--font-arabic);
}

.font-arabic-tag,
.font-arabic-large {
  font-family: var(--font-arabic);
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

.bg-radial-glow {
  background-color: var(--color-white);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(0, 126, 154, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(235, 126, 36, 0.02) 0%, transparent 40%);
}

.text-brandNavy {
  color: var(--color-navy);
}

.text-teal {
  color: var(--color-teal);
}

.text-orange {
  color: var(--color-orange);
}

.text-slate-500 {
  color: var(--color-slate-500);
}

.text-white {
  color: var(--color-white);
}

@media (min-width: 640px) {
  .sm\:inline {
    display: inline;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-teal);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.875rem 1.5rem;
  border-radius: 0.375rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md), var(--shadow-teal);
  border-bottom: 2px solid var(--color-orange);
  text-align: center;
}

.btn-primary:hover {
  background-color: var(--color-primary-medium);
  box-shadow: var(--shadow-lg), var(--shadow-teal);
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-teal);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  border-radius: 0.375rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xl), var(--shadow-teal);
  border-bottom: 4px solid var(--color-orange);
  text-align: center;
}

.btn-primary-large:hover {
  background-color: var(--color-primary-medium);
  box-shadow: var(--shadow-2xl);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-navy);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  border-radius: 0.375rem;
  transition: all var(--transition-normal);
  text-align: center;
}

.btn-outline:hover {
  background-color: rgba(25, 55, 99, 0.05);
}

h1 {
  /* Mobile: 32px | Scales dynamically | Desktop: 48px */
  font-size: var(--fs-h1);
  line-height: 1.1;
  margin-bottom: 0.5em;
}

h2 {
  /* Mobile: 26px | Scales dynamically | Desktop: 38px */
  font-size: var(--fs-h2);
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h3 {
  /* Mobile: 21px | Scales dynamically | Desktop: 30px */
  font-size: var(--fs-h3);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h4 {
  /* Mobile: 18px | Scales dynamically | Desktop: 24px */
  font-size: var(--fs-h4);
  line-height: 1.4;
  margin-bottom: 0.5em;
}

p {
  /* Mobile: 16px | Scales dynamically | Desktop: 18px */
  font-size: var(--fs-body);
  line-height: 1.6;
  margin-bottom: 1em;
}

span {
  /* Mobile: 12px | Scales dynamically | Desktop: 14px */
  font-size: var(--fs-caption);
}

h1 span, h2 span, h3 span, h4 span, h5 span, h6 span, 
p span, a span, li span, button span, label span,
.stat-number span {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Ensure all buttons use the body font (Arial) and have a font weight of 600 */
button,
.btn-primary, .btn-primary-large, .btn-outline, .btn-b2b-primary, .btn-b2b-outline, .btn-receipt-reset, .btn-receipt-print,
.lang-toggle-btn, .carousel-nav-btn, .mobile-menu-btn, .details-rfq-btn,
.btn-outline-navy, .btn-outline-white, [class*="btn-"] {
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
}

input, select, textarea {
  font-family: var(--font-sans) !important;
}

html[lang="ar"] button,
html[lang="ar"] .btn-primary,
html[lang="ar"] .btn-primary-large,
html[lang="ar"] .btn-outline,
html[lang="ar"] .btn-b2b-primary,
html[lang="ar"] .btn-b2b-outline,
html[lang="ar"] .btn-receipt-reset,
html[lang="ar"] .btn-receipt-print,
html[lang="ar"] .lang-toggle-btn,
html[lang="ar"] .carousel-nav-btn,
html[lang="ar"] .mobile-menu-btn,
html[lang="ar"] .details-rfq-btn,
html[lang="ar"] .btn-outline-navy,
html[lang="ar"] .btn-outline-white,
html[lang="ar"] [class*="btn-"] {
  font-family: var(--font-arabic) !important;
  font-weight: 600 !important;
}

html[lang="ar"] input,
html[lang="ar"] select,
html[lang="ar"] textarea {
  font-family: var(--font-arabic) !important;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-primary-light);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  height: 2.5rem; /* Specific height to fit inside the header */
  width: auto;    /* Width auto so it don't squeezes itself and looks bad */
  display: block;
}

/* Maintain fallback styles for square logo if referenced by legacy code */
.logo-icon-wrapper {
  position: relative;
  height: 2.5rem;
  width: auto;
  background-color: var(--color-primary-deep);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--color-primary-medium);
  box-shadow: var(--shadow-sm);
}

.logo-icon-wrapper svg {
  height: 100%;
  width: auto;
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0;
  line-height: 1;
  color: var(--color-primary-base);
}

.logo-title span {
  color: var(--color-secondary-base);
}

.logo-subtitle {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate-500);
  margin-top: 0.125rem;
  line-height: 1;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.desktop-nav a {
  color: var(--color-primary-base);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-secondary-base);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-normal);
}

.desktop-nav a:hover {
  color: var(--color-secondary-base);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.desktop-nav a.active {
  color: var(--color-secondary-base);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions .btn-primary {
  display: none;
}

@media (min-width: 1024px) {
  .header-actions .btn-primary {
    display: inline-flex;
  }
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--color-primary-base);
  transition: background-color var(--transition-fast);
  border: 1px solid var(--color-primary-light);
}

.mobile-menu-btn:hover {
  background-color: var(--color-primary-tint);
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Drawer Menu */
.mobile-menu-drawer {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 72px;
  background-color: var(--color-white);
  border-bottom: 2px solid var(--color-primary-light);
  box-shadow: var(--shadow-2xl);
  padding: 2rem 1.5rem;
  z-index: 40;
  transform: translateY(-1rem);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.mobile-menu-drawer.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 1rem;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-slate-100);
  color: var(--color-primary-base);
  transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-secondary-base);
  padding-left: 0.5rem;
}

.mobile-nav-link span.index {
  color: var(--color-secondary-base);
  font-size: 0.75rem;
  font-family: monospace;
}

.mobile-menu-drawer .btn-primary {
  margin-top: 1rem;
  display: block;
  text-align: center;
  padding: 0.875rem;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.main-footer {
  background-color: var(--color-primary-deep);
  color: var(--color-slate-200); /* Lighter slate (#E2E8F0) to pass WCAG AA vs Deep Navy (#0E1E36) */
  border-top: 2px solid var(--color-secondary-base); /* High-end brand colored top border */
  padding-top: 5rem;
  padding-bottom: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 4fr 3fr 2fr 3fr;
    gap: 4rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-company {
  gap: 1.5rem;
}

.footer-logo-link {
  display: inline-block;
  text-decoration: none;
}

.footer-logo {
  height: 2.5rem; /* Specific height to fit inside the footer */
  width: auto;    /* Width auto so it don't squeezes itself and looks bad */
  display: block;
}

/* Maintain fallback styles for legacy square footer logo */
.footer-logo-square {
  position: relative;
  width: 2rem;
  height: 2rem;
  background-color: var(--color-secondary-base);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-square span {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-white);
  font-size: 1rem;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-white);
  font-size: 1.25rem;
  letter-spacing: 0;
}

.footer-company-desc {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.625;
  max-width: 24rem;
  color: var(--color-slate-300); /* High-contrast text */
}

.footer-company-meta {
  font-family: monospace;
  font-size: 11px;
  color: var(--color-slate-500);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  border-left: 3px solid var(--color-secondary-base);
  padding-left: 0.75rem;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-slate-300);
}

.footer-links-list a {
  color: var(--color-slate-300);
  display: inline-block;
  transition: color var(--transition-normal), transform var(--transition-normal);
}

.footer-links-list a:hover {
  color: var(--color-accent-light) !important; /* Light Cyan */
  transform: translateX(4px); /* Move 4px on X axis */
}

.footer-address-box {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--color-slate-300);
}

.footer-address-block strong {
  display: block;
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer-communications {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.communication-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.communication-item a {
  color: var(--color-slate-300);
  transition: color var(--transition-fast);
}

.communication-item a:hover {
  color: var(--color-secondary-base);
}

.communication-item .val-mono {
  font-family: monospace;
}

/* Footer Bottom Strip */
.footer-bottom {
  border-top: 1px solid var(--color-primary-medium);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copyright {
  font-family: monospace;
  font-size: 11px;
  color: var(--color-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-copyright {
    text-align: left;
  }
}

.footer-credit {
  margin-top: 0.5rem;
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--color-slate-400);
}

.vision-2030-shield {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--color-primary-deep);
  border: 1px solid var(--color-primary-medium);
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  border-radius: 0.75rem;
}

.vision-2030-logo {
  width: 3.25rem;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.vision-2030-shield-text {
  display: flex;
  flex-direction: column;
}

.vision-2030-shield-text .title {
  font-size: 8px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.05em;
  line-height: 1;
}

.vision-2030-shield-text .sub {
  font-size: 7px;
  color: var(--color-slate-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.125rem;
  line-height: 1;
}

/* ==========================================================================
   Floating Action Button (FAB)
   ========================================================================== */
.floating-action-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--color-secondary-base);
  color: var(--color-white);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-2xl);
  transition: all var(--transition-fast);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-action-button:hover {
  transform: scale(1.1);
  background-color: var(--color-secondary-deep);
}

.floating-action-button:active {
  transform: scale(0.95);
}

.fab-ping {
  position: absolute;
  inset: 0;
  background-color: var(--color-secondary-base);
  border-radius: 9999px;
  animation: ping-custom 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.25;
  transition: opacity var(--transition-fast);
}

.floating-action-button:hover .fab-ping {
  opacity: 0.4;
}

.fab-icon {
  position: relative;
  z-index: 10;
  font-size: 1.25rem;
  font-weight: 700;
  transition: transform var(--transition-normal);
}

.floating-action-button:hover .fab-icon {
  transform: rotate(12deg);
}

/* 8. Consolidated RFQ Form, Dropdown & Success Modal System */

.contact-main-section {
  padding-top: 4rem;
  padding-bottom: 6rem;
  scroll-margin-top: 95px;
}

/* Two-Column Layout Grid */
.rfq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .rfq-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.rfq-col,
.channels-column {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* The RFQ Card Wrapper */
.rfq-card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .rfq-card {
    padding: 2.5rem;
  }
}

.rfq-form {
  margin: 0;
}

.rfq-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--color-primary-base);
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.rfq-subtitle {
  font-size: 0.95rem;
  color: var(--color-slate-600);
  margin-top: 0;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Form Fields & Fieldsets */
.rfq-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.rfq-legend {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary-text);
  border-bottom: 1px solid var(--color-slate-200);
  width: 100%;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .input-row {
    grid-template-columns: 1fr 1fr;
  }
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-slate-700);
  display: flex;
  justify-content: space-between;
}

.form-label .required {
  color: #dc2626;
  margin-left: 0.25rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--color-slate-300);
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-slate-900);
  background: var(--color-white);
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--color-primary-base);
  box-shadow: 0 0 0 3px rgba(0, 126, 154, 0.15);
  outline: none;
}

.form-input.input-error {
  border-color: #dc2626 !important;
  background-color: rgba(220, 38, 38, 0.02) !important;
}

.error-message {
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.error-message.hidden {
  display: none !important;
}

/* Custom Select Dropdowns */
.custom-select-container {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--color-slate-300);
  border-radius: 0.5rem;
  background: var(--color-white);
  color: var(--color-slate-700);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.custom-select-trigger-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-trigger:focus {
  border-color: var(--color-primary-base);
  box-shadow: 0 0 0 3px rgba(0, 126, 154, 0.15);
  outline: none;
}

.custom-select-container.input-error .custom-select-trigger {
  border-color: #dc2626 !important;
  background-color: rgba(220, 38, 38, 0.02) !important;
}

.custom-select-arrow {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: 0.5rem;
  width: 1rem;
  height: 1rem;
}

.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  margin-top: 0.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  max-height: 280px;
  overflow-y: auto;
  display: none;
  box-sizing: border-box;
}

.custom-select-container.active .custom-select-options {
  display: block;
}

.custom-select-container.active .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-helper-text {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  color: var(--color-secondary-text);
  background-color: rgba(235, 126, 36, 0.03);
  border-bottom: 1px solid rgba(235, 126, 36, 0.1);
  font-weight: 600;
}

.custom-select-group-header {
  background-color: var(--color-slate-50);
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary-base);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-slate-200);
}

.custom-select-option {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-bottom: 1px solid var(--color-slate-100);
  box-sizing: border-box;
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background-color: var(--color-primary-tint);
}

.custom-select-option.selected {
  background-color: var(--color-secondary-light);
}

.custom-select-option.multiple {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.custom-select-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-secondary-base);
  pointer-events: none;
}

/* Submit Action */
.submit-btn-wrapper {
  margin-top: 2rem;
  width: 100%;
}

.submit-btn {
  width: 100%;
  padding: 1.125rem 2rem;
  background: var(--color-primary-base);
  color: var(--color-white);
  border: none;
  border-radius: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 6px -1px rgba(0, 126, 154, 0.15);
  box-sizing: border-box;
}

.submit-btn:hover {
  background: var(--color-primary-medium);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 126, 154, 0.25);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-slate-500);
  line-height: 1.4;
}

.form-disclaimer-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--color-teal);
  margin-top: 0.15rem;
}

/* Verifiable Corporate Channels Column */
.channels-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-sizing: border-box;
}

.channel-card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .channel-card {
    padding: 2rem;
  }
}

.channel-card:hover {
  border-color: var(--color-primary-base);
  box-shadow: 0 10px 20px -5px rgba(0, 126, 154, 0.08);
}

.channel-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  background: var(--color-primary-tint);
  color: var(--color-primary-base);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-content {
  display: flex;
  flex-direction: column;
  font-style: normal;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.channel-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--color-secondary-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: block;
}

.channel-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.channel-text {
  font-size: 0.9rem;
  color: var(--color-slate-600);
  margin: 0;
  line-height: 1.5;
}

.channel-phone-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.channel-phone-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-slate-600);
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.phone-num,
.mail-link {
  font-family: var(--font-mono);
  color: var(--color-primary-base);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.phone-num:hover,
.mail-link:hover {
  color: var(--color-secondary-base);
}

.channel-phone-row.divider-row {
  border-top: 1px solid var(--color-slate-200);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.phone-label {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--color-slate-500);
}

/* Compliance Section */
.trust-section {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

@media (min-width: 576px) {
  .trust-section {
    padding: 2rem;
  }
}

.trust-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.trust-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0;
  line-height: 1.2;
}

.trust-title-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--color-teal);
  flex-shrink: 0;
}

.capacity-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.capacity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-slate-600);
  border-bottom: 1px solid var(--color-slate-100);
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.capacity-label {
  font-size: var(--fs-body-secondary);
  color: var(--color-slate-600);
}

.capacity-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.capacity-value {
  font-weight: 700;
  color: var(--color-primary-base);
}

/* Success Modal System */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.success-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.success-modal-card {
  background: var(--color-white);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 32rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.success-modal.active .success-modal-card {
  transform: scale(1);
}

.success-modal-strip {
  height: 6px;
  background: linear-gradient(90deg, var(--color-primary-base) 0%, var(--color-secondary-base) 100%);
}

.success-modal-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 576px) {
  .success-modal-body {
    padding: 3rem 2.5rem;
  }
}

.success-icon-box {
  width: 4rem;
  height: 4rem;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.success-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.success-modal-desc {
  font-size: 0.95rem;
  color: var(--color-slate-600);
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.ticket-badge {
  background: var(--color-primary-tint);
  border: 1px dashed var(--color-primary-medium);
  padding: 1rem;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.ticket-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ticket-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-base);
}

.modal-sla-box {
  font-size: 0.85rem;
  color: var(--color-secondary-text);
  font-weight: 700;
  margin-bottom: 2rem;
}

.modal-close-btn {
  width: 100%;
  padding: 0.875rem 2rem;
  background: var(--color-slate-100);
  color: var(--color-slate-700);
  border: none;
  border-radius: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.modal-close-btn:hover {
  background: var(--color-slate-200);
  color: var(--color-slate-900);
}

/* RTL Additions for Custom Select & Form */
html[lang="ar"] .custom-select-trigger {
  text-align: right;
  flex-direction: row-reverse;
}

html[lang="ar"] .custom-select-arrow {
  margin-left: 0;
  margin-right: 0.5rem;
}

html[lang="ar"] .channel-card {
  flex-direction: row-reverse;
}

html[lang="ar"] .channel-phone-row,
html[lang="ar"] .capacity-row {
  flex-direction: row-reverse;
}

html[lang="ar"] .form-label {
  flex-direction: row-reverse;
}

html[lang="ar"] .form-label .required {
  margin-left: 0;
  margin-right: 0.25rem;
}

/* ==========================================================================
   Bilingual Language Switcher & RTL Styling
   ========================================================================== */
.lang-toggle-btn {
  background: none;
  border: 1px solid var(--color-primary-light);
  border-radius: 0.375rem;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  color: var(--color-primary-base);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  transition: all var(--transition-fast);
  margin-right: 0.5rem;
}

.lang-toggle-btn:hover {
  background-color: var(--color-primary-tint);
  border-color: var(--color-primary-medium);
}

.lang-icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-primary-base);
  flex-shrink: 0;
}

.lang-label {
  display: inline-block;
}

/* Multi-language content toggling */
html[lang="en"] .lang-ar {
  display: none !important;
}

html[lang="ar"] .lang-en {
  display: none !important;
}

/* RTL layout adjustment for Arabic */
html[lang="ar"] {
  direction: rtl;
}

html[lang="ar"] body {
  text-align: right;
}

/* Ensure key layout elements shift directions correctly under RTL */
html[lang="ar"] .main-header .container,
html[lang="ar"] .header-actions,
html[lang="ar"] .logo-container,
html[lang="ar"] .desktop-nav,
html[lang="ar"] .hero-switcher-bar,
html[lang="ar"] .footer-grid,
html[lang="ar"] .hero-v1-grid,
html[lang="ar"] .hero-v2-grid,
html[lang="ar"] .hero-v3-grid {
  flex-direction: row-reverse;
}

html[lang="ar"] .hero-tag {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

html[lang="ar"] .hero-tag .dot {
  margin-left: 0.5rem;
  margin-right: 0;
}

html[lang="ar"] .lang-toggle-btn {
  margin-left: 0.5rem;
  margin-right: 0;
}

html[lang="ar"] .desktop-nav {
  gap: 2rem;
}

html[lang="ar"] .desktop-nav a {
  margin-left: 2rem;
  margin-right: 0;
}

html[lang="ar"] .hud-status {
  flex-direction: row-reverse;
}

html[lang="ar"] .hud-status-dot {
  margin-left: 0.5rem;
  margin-right: 0;
}

html[lang="ar"] .hud-console {
  border-left: none;
  border-right: 2px solid var(--color-accent-base);
}

html[lang="ar"] .report-stat-row {
  flex-direction: row-reverse;
}

html[lang="ar"] .trust-id-card {
  border-left: 1px solid var(--color-slate-200);
  border-right: 5px solid var(--color-primary-base);
}

html[lang="ar"] .trust-id-card.secondary-line {
  border-right-color: var(--color-secondary-base);
}

html[lang="ar"] .sandbox-toggle-btn {
  flex-direction: row-reverse;
  justify-content: center;
}

html[lang="ar"] .sandbox-info-panel {
  border-left: none;
  border-right: 3px solid var(--color-primary-base);
}

html[lang="ar"] .footer-col-title {
  border-left: none;
  border-right: 3px solid var(--color-secondary-base);
  padding-left: 0;
  padding-right: 0.75rem;
}

/* ==========================================================================
   Global Typography Normalization
   ========================================================================== */
.rfq-title {
  font-size: var(--fs-h3);
}

.channel-title,
.success-modal-title {
  font-size: var(--fs-h4);
}

.footer-col-title,
.trust-title {
  font-size: var(--fs-body-secondary);
}

.rfq-subtitle,
.channel-text,
.success-modal-desc {
  font-size: var(--fs-body);
}
