.contact-page {
  overflow-x: clip;
  background: linear-gradient(180deg, #f9f9ff 0 52%, #08192f 52% 100%);
}

.contact-section {
  padding: 2rem 0 3rem;
  background: #f1f3ff;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  border: 1px solid rgba(117, 119, 127, 0.15);
  border-radius: 2rem;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-ambient);
}

.contact-panel {
  position: relative;
  min-width: 0;
}

.contact-panel-left {
  padding: 2.25rem;
  color: #fff;
  background: var(--primary);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.contact-glow-top {
  left: -8rem;
  top: -8rem;
  width: 18rem;
  height: 18rem;
  background: rgba(254, 120, 95, 0.1);
  filter: blur(40px);
}

.contact-glow-bottom {
  right: -5rem;
  bottom: -5rem;
  width: 14rem;
  height: 14rem;
  background: rgba(163, 56, 38, 0.16);
  filter: blur(32px);
}

.contact-panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.contact-brand-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.contact-brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-panel-left h1 {
  margin: 1.4rem 0 0;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.contact-panel-left p,
.contact-link-label,
.contact-link-value,
.contact-tagline {
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel-left > .contact-panel-inner > p {
  margin: 1rem 0 0;
  max-width: 31rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.contact-links {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.contact-link-item,
.contact-response-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.contact-link-copy {
  min-width: 0;
}

.contact-link-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-link-value {
  display: block;
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-word;
}

.contact-icon-box {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-icon {
  position: relative;
  display: inline-block;
  width: 1rem;
  height: 1rem;
}

.contact-icon-wrench,
.contact-icon-briefcase,
.contact-icon-help,
.contact-icon-message,
.contact-send-icon,
.contact-refresh-icon {
  color: var(--secondary-2);
}

.contact-icon-wrench::before,
.contact-icon-briefcase::before,
.contact-icon-help::before,
.contact-icon-message::before,
.contact-send-icon::before,
.contact-refresh-icon::before {
  /* content: ""; */
  position: absolute;
  inset: 0;
  /* background: currentColor; */
}

.contact-icon-wrench::before {
  clip-path: polygon(0 30%, 25% 30%, 35% 0, 60% 0, 60% 35%, 100% 75%, 75% 100%, 35% 60%, 0 60%);
}

.contact-icon-briefcase::before {
  border-radius: 0.22rem;
}

.contact-icon-briefcase::after {
  content: "";
  position: absolute;
  left: 28%;
  top: -18%;
  width: 44%;
  height: 22%;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 0.45rem 0.45rem 0 0;
}

.contact-icon-help::before {
  border-radius: 999px;
}

.contact-icon-help::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.contact-icon-message::before {
  border-radius: 0.28rem;
}

.contact-icon-message::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  bottom: -0.18rem;
  width: 0.35rem;
  height: 0.35rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.contact-tagline {
  margin-top: 2.25rem;
  font-size: 0.95rem;
}

.contact-panel-right {
  padding: 2rem;
  background: var(--surface-low);
}

.contact-form-card {
  height: 100%;
  padding: 0.5rem;
}

.contact-form-heading h2 {
  margin: 0;
  color: var(--primary);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
}

.contact-form-heading p {
  margin: 0.4rem 0 0;
  color: var(--text-muted);
}

.contact-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

.contact-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-field {
  min-width: 0;
}

.contact-field label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 600;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(117, 119, 127, 0.2);
  border-radius: 0.95rem;
  background: #fff;
  color: var(--foreground);
  font: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(68, 71, 78, 0.58);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: rgba(254, 120, 95, 0.55);
  box-shadow: 0 0 0 4px rgba(254, 120, 95, 0.1);
}

.contact-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.contact-captcha-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact-captcha-text {
  color: var(--foreground);
  font-size: 0.95rem;
}

.contact-captcha-text strong {
  color: var(--secondary);
}

.contact-refresh {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  cursor: pointer;
}

.contact-spinner {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: contact-spin 0.6s linear infinite;
  margin-right: 0.4rem;
}

@keyframes contact-spin {
  to { transform: rotate(360deg); }
}

.contact-refresh-icon {
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
}

.contact-refresh-icon::after {
  content: "";
  position: absolute;
  right: -0.05rem;
  top: 0.02rem;
  width: 0.28rem;
  height: 0.28rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.contact-submit {
  justify-self: start;
  gap: 0.55rem;
}

.contact-send-icon {
  position: relative;
  width: 0.9rem;
  height: 0.9rem;
}

.contact-send-icon::before {
  clip-path: polygon(0 0, 100% 50%, 0 100%, 18% 50%);
}

@media (max-width: 1100px) {
  .contact-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .contact-panel-left,
  .contact-panel-right {
    padding: 1.5rem;
  }

  .contact-grid-two {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    width: 100%;
    justify-self: stretch;
  }

  .contact-submit.btn {
    width: 100%;
  }
}