:root {
  /* Brand Colors */
  --primary-red: #ee3024;
  --primary-hover: #d02318;
  /* Dark Theme Neutrals */
  --bg-black: #000000;
  --bg-section: #0a0a0c;
  --bg-card: #121216;
  --border-card: #222228;
  /* Light Theme Neutrals */
  --bg-light: #f8f9fa;
  --bg-alt: #f1f1f1;
  --bg-gray: #f7f7f7;
  --border-light: #f0f0f0;
  --border-dark: #dddddd;
  /* Text Colors */
  --text-white: #ffffff;
  --text-grey: #808083;
  --text-black: #000000;
  --text-dark: #111111;
  --text-base: #333333;
  --text-muted: #555555;
  --text-light: #888888;
  /* Utilities */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Typography - Font Families */
  --font-primary: Poppins, sans-serif;
  /* Typography - Font Sizes (Desktop) */
  --text-size-h1: 40px;
  --text-size-h2: 32px;
  --text-size-h3: 28px;
  --text-size-h4: 24px;
  --text-size-h5: 20px;
  --text-size-body: 16px;
  --text-size-small: 14px;
  /* Typography - Line Heights */
  --line-height-heading: 1.3;
  --line-height-body: 1.5;
}

/* Responsive CSS Variables */
@media (max-width: 768px) {
  :root {
    --text-size-h1: 32px;
    --text-size-h2: 28px;
    --text-size-h3: 24px;
    --text-size-h4: 20px;
    --text-size-h5: 18px;
    --text-size-body: 15px;
    --line-height-heading: 1.2;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #000000;
  color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  padding-top: 80px;
}

/* Typography exact rules */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Sizing and Typography display-1 to display-5 classes */
.display_1,
.display-1 {
  font-size: 42px !important;
  font-weight: 600;
  line-height: 56px !important;
  letter-spacing: -0.03em;
}

.display_2,
.display-2 {
  font-size: 40px !important;
  font-weight: 600;
  line-height: 52px !important;
  letter-spacing: -0.02em;
}

.display_3,
.display-3 {
  font-size: 32px !important;
  font-weight: 600;
  line-height: 44px !important;
  letter-spacing: -0.01em;
}

.display_4,
.display-4 {
  font-size: 24px !important;
  font-weight: 600;
  line-height: 33px !important;
}

.display_5,
.display-5 {
  font-size: 20px !important;
  font-weight: 600;
  line-height: 28px !important;
}

/* Responsive adjustments for display sizes */
@media (max-width: 1024px) {
  .display_1,
  .display-1 {
    font-size: 36px;
    line-height: 50px;
  }
  .display_2,
  .display-2 {
    font-size: 32px;
    line-height: 44px;
  }
  .display_3,
  .display-3 {
    font-size: 28px;
    line-height: 39px;
  }
  .display_4,
  .display-4 {
    font-size: 24px;
    line-height: 33px;
  }
  .display_5,
  .display-5 {
    font-size: 20px;
    line-height: 28px;
  }
}
@media (max-width: 768px) {
  .display_1,
  .display-1 {
    font-size: 38px;
    line-height: 49px;
  }
  .display_2,
  .display-2 {
    font-size: 32px;
    line-height: 41px;
  }
  .display_3,
  .display-3 {
    font-size: 28px;
    line-height: 39px;
  }
  .display_4,
  .display-4 {
    font-size: 20px;
    line-height: 28px;
  }
  .display_5,
  .display-5 {
    font-size: 18px;
    line-height: 25px;
  }
}
@media (max-width: 320px) {
  .display_1,
  .display-1 {
    font-size: 32px;
    line-height: 41px;
  }
  .display_2,
  .display-2 {
    font-size: 28px;
    line-height: 36px;
  }
  .display_3,
  .display-3 {
    font-size: 24px;
    line-height: 33px;
  }
  .display_4,
  .display-4 {
    font-size: 20px;
    line-height: 28px;
  }
  .display_5,
  .display-5 {
    font-size: 18px;
    line-height: 25px;
  }
}
/* --- MODAL OVERLAY EXACT STYLE --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #121216;
  border: 1px solid var(--primary-red);
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  padding: 40px 32px;
  position: relative;
  transform: scale(0.95);
  transition: var(--transition);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(238, 48, 36, 0.2);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #808083;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary-red);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.modal-desc {
  color: #808083;
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 21px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #1a1a20;
  border: 1px solid #2a2a32;
  border-radius: 6px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  background: #202028;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--primary-red);
  color: #ffffff;
}

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

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #3a3a44;
}

.btn-secondary:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
}

/* ==================== WYSIWYG/CKEDITOR RICH TEXT LIST STYLING ==================== */
/* General layout restoration for lists in rich text containers */
.highlight-content ul,
.content-col ul,
.content-desc ul,
.timeline-text ul,
.superhero-form-desc ul,
.superhero-quote-desc ul,
.spotlight-copy ul,
.punch-cards-desc ul,
.punch-cards-action ul,
.careers-why-content ul,
.wysiwyg-content ul {
  list-style-type: disc !important;
  padding-left: 24px !important;
  margin-top: 12px !important;
  margin-bottom: 16px !important;
}

.highlight-content ol,
.content-col ol,
.content-desc ol,
.timeline-text ol,
.superhero-form-desc ol,
.superhero-quote-desc ol,
.spotlight-copy ol,
.punch-cards-desc ol,
.punch-cards-action ol,
.careers-why-content ol,
.wysiwyg-content ol {
  list-style-type: decimal !important;
  padding-left: 24px !important;
  margin-top: 12px !important;
  margin-bottom: 16px !important;
}

.highlight-content li,
.content-col li,
.content-desc li,
.timeline-text li,
.superhero-form-desc li,
.superhero-quote-desc li,
.spotlight-copy li,
.punch-cards-desc li,
.punch-cards-action li,
.careers-why-content li,
.wysiwyg-content li {
  margin-bottom: 8px !important;
  line-height: 1.6 !important;
  display: list-item !important;
  list-style: inherit !important;
}

/* Center and Right alignment support for lists (aligns bullet/number markers along with the text) */
.has-text-align-center,
.text-align-center,
.align-center,
*[style*="text-align: center"],
*[style*="text-align:center"] {
  text-align: center !important;
}

.has-text-align-right,
.text-align-right,
.align-right,
*[style*="text-align: right"],
*[style*="text-align:right"] {
  text-align: right !important;
}

.has-text-align-center ul,
.has-text-align-center ol,
.text-align-center ul,
.text-align-center ol,
.align-center ul,
.align-center ol,
*[style*="text-align: center"] ul,
*[style*="text-align: center"] ol,
*[style*="text-align:center"] ul,
*[style*="text-align:center"] ol,
ul.has-text-align-center,
ol.has-text-align-center,
ul.text-align-center,
ol.text-align-center,
ul.align-center,
ol.align-center {
  list-style-position: inside !important;
  padding-left: 0 !important;
}

.has-text-align-right ul,
.has-text-align-right ol,
.text-align-right ul,
.text-align-right ol,
.align-right ul,
.align-right ol,
*[style*="text-align: right"] ul,
*[style*="text-align: right"] ol,
*[style*="text-align:right"] ul,
*[style*="text-align:right"] ol,
ul.has-text-align-right,
ol.has-text-align-right,
ul.text-align-right,
ol.text-align-right,
ul.align-right,
ol.align-right {
  list-style-position: inside !important;
  padding-left: 0 !important;
  padding-right: 20px !important;
}

/* ==================== WYSIWYG/CKEDITOR LIST STYLING FOR ADMIN EDITOR & PREVIEWS ==================== */
/* Style lists inside the Gutenberg editor wrapper and block previews to restore bullets/numbers */
.editor-styles-wrapper ul,
.acf-block-preview ul,
.acf-field-wysiwyg ul,
.acf-field ul {
  list-style-type: disc !important;
  padding-left: 24px !important;
  margin-top: 12px !important;
  margin-bottom: 16px !important;
}

.editor-styles-wrapper ol,
.acf-block-preview ol,
.acf-field-wysiwyg ol,
.acf-field ol {
  list-style-type: decimal !important;
  padding-left: 24px !important;
  margin-top: 12px !important;
  margin-bottom: 16px !important;
}

.editor-styles-wrapper li,
.acf-block-preview li,
.acf-field-wysiwyg li,
.acf-field li {
  margin-bottom: 8px !important;
  line-height: 1.6 !important;
  display: list-item !important;
  list-style: inherit !important;
}

/* --- Gravity Forms Global Overrides --- */
.gfield {
  /* margin-bottom: 20px !important; */
}

.gfield_label {
  font-family: "Poppins", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #808083 !important;
  margin-bottom: 8px !important;
  display: block !important;
}

.gform_wrapper input[type=text],
.gform_wrapper input[type=email],
.gform_wrapper input[type=tel],
.gform_wrapper input[type=url],
.gform_wrapper input[type=number],
.gform_wrapper select,
.gform_wrapper textarea {
  background-color: #f2f2f2 !important;
  border: 2px solid #f2f2f2 !important;
  border-radius: 4px !important;
  padding: 24px 12px !important;
  font-family: "Poppins", sans-serif !important;
  font-size: 15px !important;
  color: #333333 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: border-color 0.3s ease, background-color 0.3s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.gform_wrapper select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 12px auto !important;
  padding-right: 40px !important;
}

.gform_wrapper textarea {
  resize: vertical !important;
  min-height: 120px !important;
}

.gform_wrapper input[type=text]:focus,
.gform_wrapper input[type=email]:focus,
.gform_wrapper input[type=tel]:focus,
.gform_wrapper input[type=url]:focus,
.gform_wrapper input[type=number]:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus {
  outline: none !important;
  border-color: #ee3024 !important;
  background-color: #ffffff !important;
}

/* --- Dark Theme Form Overrides --- */
.theme-dark .gfield_label {
  color: #aaaaaa !important;
}

.theme-dark .gform_wrapper input[type=text],
.theme-dark .gform_wrapper input[type=email],
.theme-dark .gform_wrapper input[type=tel],
.theme-dark .gform_wrapper input[type=url],
.theme-dark .gform_wrapper input[type=number],
.theme-dark .gform_wrapper select,
.theme-dark .gform_wrapper textarea {
  background-color: #f2f2f2 !important;
  border-color: #1c1c24 !important;
  color: #000000 !important;
}

/* Revert select dropdown arrow to black for dark theme since bg is now white */
.theme-dark .gform_wrapper select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
}

.theme-dark .gform_wrapper input[type=text]:focus,
.theme-dark .gform_wrapper input[type=email]:focus,
.theme-dark .gform_wrapper input[type=tel]:focus,
.theme-dark .gform_wrapper input[type=url]:focus,
.theme-dark .gform_wrapper input[type=number]:focus,
.theme-dark .gform_wrapper select:focus,
.theme-dark .gform_wrapper textarea:focus {
  border-color: #ee3024 !important;
  background-color: #111115 !important;
  color: #ffffff !important;
}

.gform_required_legend {
  display: none !important;
}
