:root {
  --contact-us-bg: #060809;
  --contact-us-text: #ffffff;
  --contact-us-accent: #cc1303;
  --contact-us-texture-image: url("../Images/noiseEffect%20Frame%202.png");
}

body {
  background: var(--contact-us-bg);
  color: var(--contact-us-text);
}

.contact-us-main {
  min-width: 0;
  background: var(--contact-us-bg);
  color: #ffffff;
}

.contact-inquiry {
  scroll-margin-top: 80px;
}

.contact-hero {
  padding: 0;
  min-width: 0;
}

/* Hero padding: ≤613.6px use half of desktop (same convention as products hero). */
.contact-hero-highlight {
  --contact-hero-pad-top: 113.6px;
  --contact-hero-pad-bottom: 151.2px;
  --contact-hero-pad-x: max(var(--ca-site-gutter-x), calc((100% - var(--ca-site-content-max)) / 2));
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: var(--contact-hero-pad-top) var(--contact-hero-pad-x) var(--contact-hero-pad-bottom);
  isolation: isolate;
  background: var(--contact-us-bg);
}

@media (max-width: 613.6px) {
  .contact-hero-highlight {
    --contact-hero-pad-top: 56.8px;
    --contact-hero-pad-bottom: 75.6px;
  }
}

.contact-hero-highlight: :before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image: var(--contact-us-texture-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  pointer-events: none;
}

.contact-hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  line-height: 0;
}

.contact-hero-bottom-fade-svg {
  display: block;
  width: 100%;
  height: clamp(144px, 22.4vw, 256px);
}

.contact-hero-inner {
  position: relative;
  z-index: 2;
  /* Content stays in front */
  width: min(1234.4px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

@media (min-width: 819.2px) {
  .contact-hero-inner {
    padding-right: min(612px, 40vw);
  }
}

.contact-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(32px, 4.8vw, 52px);
  min-width: 0;
  width: 100%;
}

.contact-hero-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12.8px, 2vw, 22.4px);
}

.contact-hero-eyebrow {
  font-family: inherit;
  font-weight: 500;
  font-size: clamp(8.8px, 0.88vw, 11.2px);
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
}

.contact-hero-title {
  margin: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08em;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(1.8rem, 5.2vw, 57.6px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.contact-hero-title-line {
  display: block;
}

.contact-hero-cta {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  width: fit-content;
}

.contact-hero-cta-arrow {
  flex: none;
  width: 48.8px;
  height: 48.8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 0 30.5px 30.5px 30.5px;
}

.contact-hero-cta-arrow svg {
  display: block;
}

.contact-hero-cta-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142.4px;
  height: 48px;
  padding: 14.4px 35.2px;
  box-sizing: border-box;
  background: var(--contact-us-accent);
  border-radius: 100px;
  font-family: inherit;
  font-weight: 400;
  font-size: 14.4px;
  line-height: 19.2px;
  color: #ffffff;
}

.contact-hero-visual {
  pointer-events: none;
}

@media (min-width: 819.2px) {
  .contact-hero-visual {
    position: absolute;
    right: calc(-1 * var(--contact-hero-pad-x));
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    /* Circuit behind content */
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .contact-hero-circuit {
    display: block;
    width: min(612px, 41.6vw);
    height: auto;
    max-height: min(56vh, 416px);
    object-fit: contain;
    object-position: right center;
  }
}

@media (max-width: 818.4px) {
  .contact-hero-inner {
    padding-right: 0;
  }

  .contact-hero-visual {
    position: absolute;
    right: 0;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
    /* Background behind text */
    display: flex;
    justify-content: center;
    width: 100%;
    opacity: 0.2;
    /* Subtler circuit on mobile for better text clarity */
  }

  .contact-hero-circuit {
    display: block;
    width: 150%;
    /* Larger on mobile to act as atmospheric background */
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }
}

/* —— Contact inquiry / form (light section) —— */
.contact-inquiry {
  --contact-inquiry-pad-y: 168px;
  background: #ffffff;
  color: #030303;
  padding: var(--contact-inquiry-pad-y) max(var(--ca-site-gutter-x), calc((100% - var(--ca-site-content-max)) / 2));
  box-sizing: border-box;
}

@media (max-width: 613.6px) {
  .contact-inquiry {
    --contact-inquiry-pad-y: 84px;
  }
}

.contact-inquiry-inner {
  width: min(1261.6px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
}

.contact-inquiry-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 70.4px;
}

.contact-inquiry-copy {
  flex: 1 1 0;
  min-width: 0;
  max-width: 551.2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30.4px;
}

.contact-inquiry-copy-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11.2px;
  width: 100%;
}

.contact-inquiry-pill {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px;
  min-height: 20px;
  background: rgba(204, 19, 3, 0.11);
  border: 1px solid rgba(204, 19, 3, 0.69);
  border-radius: 32px;
  font-family: inherit;
  font-weight: 400;
  font-size: 9.6px;
  line-height: 11.2px;
  color: #cc1303;
}

.contact-inquiry-title {
  margin: 0;
  max-width: 100%;
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(1.6rem, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: capitalize;
  color: #030303;
}

.contact-inquiry-lede {
  margin: 0;
  max-width: min(431.2px, 100%);
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(14.4px, 1.76vw, 19.2px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #030303;
}

.contact-inquiry-form-wrap {
  flex: 1 1 0;
  min-width: 0;
  max-width: 640px;
  width: 100%;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

.contact-inquiry-form {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28.8px;
}

.contact-inquiry-fields {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 30.2px;
  width: 100%;
}

.contact-inquiry-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(19.2px, 3.2vw, 38.4px);
  width: 100%;
}

.contact-inquiry-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13.4px;
  min-width: 0;
}

.contact-inquiry-field--full {
  flex: 1 1 100%;
  min-width: 0;
}

.contact-inquiry-label {
  font-family: inherit;
  font-weight: 500;
  font-size: 15.3px;
  line-height: 18.4px;
  color: #000000;
}

.contact-inquiry-input,
.contact-inquiry-textarea {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  font-family: inherit;
  font-weight: 300;
  font-size: 14.4px;
  line-height: 17.6px;
  color: #030303;
  background: #ffffff;
  border: 2.09974px solid rgba(0, 0, 0, 0.11);
  outline: none;
}

.contact-inquiry-input: :placeholder,
.contact-inquiry-textarea::placeholder {
  color: #5d5d5d;
}

.contact-inquiry-input {
  min-height: 56.8px;
  padding: 16.8px 16.8px;
  border-radius: 67.1916px;
}

.contact-inquiry-input:focus-visible,
.contact-inquiry-textarea:focus-visible,
.contact-inquiry-select:focus-visible {
  border-color: rgba(0, 0, 0, 0.28);
  box-shadow: 0 0 0 3px rgba(204, 19, 3, 0.15);
}

.contact-inquiry-textarea {
  min-height: 139.4px;
  padding: 16.8px 16.8px;
  border-radius: 32.7559px;
  resize: vertical;
}

.contact-inquiry-select-wrap {
  position: relative;
  width: 100%;
  isolation: isolate;
}

.contact-inquiry-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 41.6px;
}

.contact-inquiry-select-icon {
  position: absolute;
  right: 14.4px;
  top: 50%;
  transform: translateY(-50%);
  width: 19.2px;
  height: 19.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.contact-inquiry-select-icon svg {
  display: block;
}

.contact-inquiry-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.contact-inquiry-submit {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 14.4px 35.2px;
  min-width: 118.4px;
  height: 48px;
  max-height: 48px;
  background: #000000;
  border: none;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 400;
  font-size: 14.4px;
  line-height: 19.2px;
  color: #ffffff;
  cursor: pointer;
}

.contact-inquiry-submit:hover {
  opacity: 0.92;
}

.contact-inquiry-call {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 13.6px 36px;
  min-height: 55.3px;
  border: 2.09974px solid #030303;
  border-radius: 9999px;
  font-family: inherit;
  font-weight: 400;
  font-size: clamp(14.4px, 2vw, 22.7px);
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: #030303;
  text-decoration: none;
  cursor: pointer;
}

.contact-inquiry-call:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* --- Dynamic Form Enhancements --- */
.contact-inquiry-call {
  transition: all 0.3s ease;
}

.contact-inquiry-call.active {
  background: var(--contact-us-accent);
  color: #ffffff;
  border-color: var(--contact-us-accent);
  box-shadow: 0 4px 15px rgba(204, 19, 3, 0.3);
}

#phone-field-container {
  animation: slideDown 0.4s ease forwards;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success Feedback Styling */
.success-feedback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  width: 100%;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.success-icon-wrapper {
  width: 64px;
  height: 64px;
  margin-bottom: 19.2px;
}

.checkmark-svg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #cc1303;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #cc1303;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #cc1303;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {

  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px rgba(204, 19, 3, 0.05);
  }
}

.success-title {
  font-family: inherit;
  font-weight: 700;
  font-size: 25.6px;
  color: #030303;
  margin-bottom: 12.8px;
}

.success-text {
  font-family: inherit;
  font-size: 14.4px;
  line-height: 1.6;
  color: #555;
  max-width: 400px;
}

.field-error {
  font-weight: 500;
  min-height: 1.2em;
}

@media (max-width: 818.4px) {
  .contact-inquiry-row {
    flex-direction: column;
    gap: clamp(38.4px, 6.4vw, 57.6px);
  }

  .contact-inquiry-copy {
    max-width: 100%;
  }

  .contact-inquiry-form-wrap {
    margin-left: 0;
    justify-content: flex-start;
    max-width: 100%;
  }

  .contact-inquiry-field-row {
    grid-template-columns: 1fr;
  }

  .contact-inquiry-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-inquiry-submit,
  .contact-inquiry-call {
    justify-content: center;
    width: 100%;
    margin-inline: auto;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-hero-cta {
    transform: scale(0.9);
    transform-origin: left center;
  }

  .contact-inquiry-input {
    min-height: 48px;
    padding: 12.8px 14.4px;
  }

  .contact-inquiry-textarea {
    min-height: 112px;
    padding: 12.8px 14.4px;
  }