@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@600;700;800;900&display=swap');

:root {
  /* Light Bio-Tech Palette */
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8FAFC;
  --bg-input: #FFFFFF;
  --border-subtle: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-active: #10B981;
  --border-blue: #0284C7;

  --tech-pillar: #000000;
  --bio-green: #10B981;
  --bio-green-dark: #059669;
  --bio-green-darker: #065F46;
  --bio-green-glow: rgba(16, 185, 129, 0.2);
  --data-blue: #38BDF8;
  --data-blue-dark: #0284C7;
  --data-blue-glow: rgba(56, 189, 248, 0.2);
  --pure-white: #FFFFFF;

  --text-main: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 8px 24px rgba(16, 185, 129, 0.25);
  --shadow-blue-glow: 0 8px 24px rgba(2, 132, 199, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  background-color: var(--bg-white);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #F8FAFC;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16, 185, 129, 0.09), transparent 65%),
    radial-gradient(ellipse 60% 40% at 90% 40%, rgba(56, 189, 248, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(16, 185, 129, 0.05), transparent 50%);
  background-attachment: fixed;
}

/* Headings font */
h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tech-pillar);
}

/* Navbar (Light Theme) */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-svg {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.brand-wrapper:hover .brand-logo-svg {
  transform: scale(1.05) rotate(2deg);
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #000000;
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ECFDF5;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: #065F46;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bio-green);
  box-shadow: 0 0 8px var(--bio-green);
  animation: pulseAnimation 2s infinite ease-in-out;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link-item:hover {
  color: #000000;
}

.admin-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #F0F9FF;
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: var(--radius-full);
  color: #0284C7;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.admin-pill-btn:hover {
  background: #E0F2FE;
  border-color: #0284C7;
  color: #0369A1;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.15);
}

/* Hero Section */
.hero-section {
  padding: 60px 24px 30px;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #F0FDF4;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-full);
  color: #065F46;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: #000000;
}

.text-gradient-green {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #0284C7 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 36px;
  font-weight: 400;
}

/* Feature grid mini */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-feature-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.hero-feature-chip svg {
  color: var(--bio-green-dark);
}

/* ==========================================================================
   PRIMARY GATEWAY SELECTION CARDS (Shown initially - Form hidden until click)
   ========================================================================== */
.gateway-selection-section {
  max-width: 1040px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.gateway-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.gateway-choice-card {
  background: #FFFFFF;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gateway-choice-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.gateway-choice-card.buyer-card::before {
  background: linear-gradient(90deg, #10B981, #34d399);
}

.gateway-choice-card.supplier-card::before {
  background: linear-gradient(90deg, #0284C7, #38BDF8);
}

.gateway-choice-card:hover {
  transform: translateY(-6px);
}

.gateway-choice-card.buyer-card:hover {
  border-color: #10B981;
  box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.2);
}

.gateway-choice-card.supplier-card:hover {
  border-color: #0284C7;
  box-shadow: 0 20px 40px -10px rgba(2, 132, 199, 0.2);
}

.choice-icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.buyer-badge-bg {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.supplier-badge-bg {
  background: #F0F9FF;
  color: #0284C7;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.choice-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #000000;
}

.choice-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.choice-points-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.choice-points-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.choice-points-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.choice-cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.choice-cta-btn.buyer-btn {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}

.choice-cta-btn.buyer-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.choice-cta-btn.supplier-btn {
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: #FFFFFF;
  box-shadow: var(--shadow-blue-glow);
}

.choice-cta-btn.supplier-btn:hover {
  background: linear-gradient(135deg, #0369A1, #075985);
}

/* ==========================================================================
   FORM CONTAINER & DUAL-TRACK SWITCHER (Revealed upon track selection)
   ========================================================================== */
#formContainerWrapper {
  display: none; /* Hidden on initial page load per requirement */
  animation: fadeInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-navigation-bar {
  max-width: 900px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.back-to-selection-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.back-to-selection-btn:hover {
  background: #F1F5F9;
  color: #000000;
}

/* Dual-Track Segmenter Switcher */
.segmenter-wrapper {
  max-width: 780px;
  margin: 0 auto 30px;
  background: #FFFFFF;
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.segmenter-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  gap: 6px;
}

.segmenter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.segmenter-btn:hover {
  color: #000000;
}

.segmenter-btn.active-track-buyer {
  background: #ECFDF5;
  border: 1px solid #10B981;
  color: #065F46;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.segmenter-btn.active-track-buyer svg {
  color: #059669;
}

.segmenter-btn.active-track-supplier {
  background: #F0F9FF;
  border: 1px solid #0284C7;
  color: #0369A1;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2);
}

.segmenter-btn.active-track-supplier svg {
  color: #0284C7;
}

/* Form Shell Card */
.form-shell {
  max-width: 900px;
  margin: 0 auto 60px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.form-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10B981, #0284C7, transparent);
}

.track-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
}

.track-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.buyer-eyebrow { color: #059669; }
.supplier-eyebrow { color: #0284C7; }

.track-main-title {
  font-size: 1.85rem;
  margin-bottom: 8px;
  color: #000000;
}

.track-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Form Sections */
.form-section {
  margin-bottom: 36px;
}

.form-section-title {
  font-size: 1.22rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #000000;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #F1F5F9;
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #0F172A;
}

/* Inputs & Labels */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1E293B;
}

.required-star {
  color: #DC2626;
  margin-left: 3px;
}

.form-control-custom, .form-select-custom {
  width: 100%;
  padding: 13px 16px;
  background-color: #FFFFFF;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: #0F172A;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-control-custom:focus, .form-select-custom:focus {
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  background-color: #FFFFFF;
}

.track-supplier-active .form-control-custom:focus,
.track-supplier-active .form-select-custom:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
  background-color: #FFFFFF;
}

.form-control-custom::placeholder {
  color: #94A3B8;
}

textarea.form-control-custom {
  min-height: 90px;
  resize: vertical;
}

/* Postcode live feedback badge */
.postcode-status-pill {
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  display: none;
  animation: fadeIn 0.25s ease;
}

.postcode-status-pill.core {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ECFDF5;
  border: 1.5px solid #10B981;
  color: #065F46;
}

.postcode-status-pill.extended {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F0F9FF;
  border: 1.5px solid #0284C7;
  color: #0369A1;
}

.postcode-status-pill.out {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFBEB;
  border: 1.5px solid #F59E0B;
  color: #92400E;
}

.postcode-status-pill.invalid {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FEF2F2;
  border: 1.5px solid #DC2626;
  color: #991B1B;
}

/* Variety Option Cards */
.selection-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.variety-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.variety-card:hover {
  background: #F8FAFC;
  border-color: #10B981;
  transform: translateY(-2px);
}

.variety-card.selected {
  background: #ECFDF5;
  border-color: #10B981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.variety-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.variety-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: #000000;
}

.custom-checkbox-indicator {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  background: #FFFFFF;
}

.variety-card.selected .custom-checkbox-indicator {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

.variety-notes {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.variety-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #F1F5F9;
  color: #0284C7;
  width: fit-content;
}

/* Radio Demand Cards */
.demand-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.demand-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.demand-card:hover {
  background: #F8FAFC;
  border-color: #10B981;
}

.demand-card.selected {
  background: #ECFDF5;
  border-color: #10B981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.demand-volume {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 4px;
}

.demand-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Supply Format Buttons */
.format-toggle-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.format-btn {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.format-btn:hover {
  background: #F8FAFC;
}

.format-btn.selected {
  background: #ECFDF5;
  border-color: #10B981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.format-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  color: #000000;
  margin-bottom: 4px;
}

.format-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Checkbox and Toggle Row */
.checkbox-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.checkbox-card:hover {
  background: #F8FAFC;
}

.checkbox-card input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #059669;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.92rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Days Pill Selector */
.days-pill-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.day-pill {
  padding: 8px 18px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.day-pill:hover {
  color: #000000;
  border-color: #10B981;
}

.day-pill.selected {
  background: #10B981;
  color: #FFFFFF;
  border-color: #10B981;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

/* Supplier Category Matrix */
.scope-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.scope-card {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.scope-card:hover {
  background: #F8FAFC;
  border-color: #0284C7;
  transform: translateY(-2px);
}

.scope-card.selected {
  background: #F0F9FF;
  border-color: #0284C7;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.15);
}

.scope-card.selected .custom-checkbox-indicator {
  background: #0284C7;
  border-color: #0284C7;
  color: #FFFFFF;
}

.scope-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.96rem;
  color: #000000;
  margin-bottom: 4px;
}

.scope-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Conditional Compliance Modules */
.conditional-module {
  background: #F8FAFC;
  border: 1.5px solid rgba(2, 132, 199, 0.3);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-top: 20px;
  position: relative;
  display: none;
  animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.conditional-module.active {
  display: block;
}

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

.module-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #E0F2FE;
  border: 1px solid #0284C7;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  color: #0369A1;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.module-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: #000000;
}

/* Submit Buttons */
.submit-btn {
  width: 100%;
  padding: 18px 28px;
  border-radius: var(--radius-full);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.submit-btn-buyer {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.submit-btn-buyer:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.submit-btn-supplier {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}

.submit-btn-supplier:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.45);
  background: linear-gradient(135deg, #0369A1 0%, #075985 100%);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Error Banner */
.form-error-banner {
  background: #FEF2F2;
  border: 1.5px solid #DC2626;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: none;
}

.form-error-banner.visible {
  display: block;
}

.error-banner-title {
  color: #991B1B;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.error-list {
  padding-left: 20px;
  color: #B91C1C;
  font-size: 0.85rem;
}

/* Confirmation Modal */
.modal-backdrop-custom {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop-custom.active {
  display: flex;
}

.modal-dialog-custom {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 40px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ECFDF5;
  border: 2px solid #10B981;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #000000;
}

.modal-message {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
}

.modal-ref-pill {
  display: inline-block;
  padding: 8px 16px;
  background: #F1F5F9;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: #0284C7;
  margin-bottom: 28px;
}

.modal-close-btn {
  padding: 13px 32px;
  background: #000000;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: #1E293B;
  transform: translateY(-2px);
}

/* Crop Roster Preview Showcase */
.crop-preview-section {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.section-header-centered {
  text-align: center;
  margin-bottom: 40px;
}

.crop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.crop-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.crop-card:hover {
  border-color: #10B981;
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.12);
}

.crop-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.crop-card-title {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: #000000;
}

.crop-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.crop-spec-list {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

/* Admin Portal Styles */
.admin-container {
  max-width: 1380px;
  margin: 30px auto 60px;
  padding: 0 24px;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #10B981;
}

.stat-card.blue::after { background: #0284C7; }
.stat-card.amber::after { background: #F59E0B; }

.stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #000000;
}

.stat-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-table-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 40px;
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.custom-table th {
  padding: 13px 16px;
  background: #F8FAFC;
  color: var(--text-secondary);
  font-weight: 700;
  border-bottom: 2px solid var(--border-subtle);
  white-space: nowrap;
}

.custom-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.custom-table tr:hover td {
  background: #F8FAFC;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.in-zone {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #10B981;
}

.status-badge.out-zone {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #F59E0B;
}

.status-badge.pending {
  background: #F0F9FF;
  color: #0369A1;
  border: 1px solid #0284C7;
}

/* Footer (Light Theme) */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #FFFFFF;
  padding: 50px 24px 30px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* ==========================================================================
   ORIGIN & FOUNDER STORY SECTION
   ========================================================================== */
.origin-section {
  max-width: 1280px;
  margin: 80px auto;
  padding: 0 24px;
}

.origin-container {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.origin-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10B981, #38BDF8);
}

.origin-header {
  margin-bottom: 36px;
}

.origin-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #000000;
  margin-top: 14px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.origin-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 860px;
}

.origin-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.origin-text-block p {
  color: var(--text-main);
  font-size: 0.96rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.origin-highlight-quote {
  border-left: 4px solid #10B981;
  padding: 16px 22px;
  margin: 26px 0;
  background: #F0FDF4;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #065F46;
  line-height: 1.6;
}

.origin-sidebar-card {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
}

.founder-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.founder-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: #000000;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #10B981;
}

.founder-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #000000;
}

.founder-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0284C7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.bridge-infographic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.bridge-pillar {
  flex: 1;
  text-align: center;
}

.bridge-pillar-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.bridge-pillar-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #000000;
}

.bridge-pillar-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

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

.enterprise-status-box {
  background: #FFFFFF;
  border-left: 3px solid #0284C7;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.status-box-header {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0284C7;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

/* ==========================================================================
   R&D THREE-PHASE ROADMAP SECTION
   ========================================================================== */
.roadmap-section {
  max-width: 1280px;
  margin: 90px auto;
  padding: 0 24px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.roadmap-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.roadmap-phase-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  align-self: flex-start;
}

.phase-tag-1 {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #10B981;
}

.phase-tag-2 {
  background: #F0F9FF;
  color: #0369A1;
  border: 1px solid #0284C7;
}

.phase-tag-3 {
  background: #FAF5FF;
  color: #6B21A8;
  border: 1px solid #A855F7;
}

.phase-card-1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #10B981;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.phase-card-2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #0284C7;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.phase-card-3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #A855F7;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.roadmap-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #000000;
  margin-bottom: 12px;
  line-height: 1.3;
}

.roadmap-card-lead {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.roadmap-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roadmap-feature-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.92rem;
  color: #000000;
}

.roadmap-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
}

.bullet-1 { background: #ECFDF5; color: #065F46; }
.bullet-2 { background: #F0F9FF; color: #0369A1; }
.bullet-3 { background: #FAF5FF; color: #6B21A8; }

.roadmap-feature-body {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 28px;
}

@media (max-width: 860px) {
  .gateway-cards-grid {
    grid-template-columns: 1fr;
  }
  .form-shell {
    padding: 24px 16px;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .origin-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
  .origin-container {
    padding: 28px 20px;
  }
  .nav-status-badge {
    display: none;
  }
}