/* Codnixy — contact: info strip + glass form panel */

.contact-section {
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px;
}
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 90%);
  pointer-events: none;
}
.contact-section::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 600px;
  background:
    radial-gradient(ellipse 50% 55% at 50% 50%, rgba(120, 165, 255, 0.18), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.contact-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
  position: relative;
}
.contact-head .eyebrow {
  justify-content: center;
  text-align: center;
}
.contact-head h2 {
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0 0 22px;
}
.contact-head h2 em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: #cad6ff;
}
.contact-head p {
  color: var(--ink-dim);
  font-size: 16px;
  max-width: 56ch;
  margin: 0 auto;
}

.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 900px;
  margin: 0 auto 48px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}
.contact-strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.contact-strip-item:last-child { border-right: 0; }
.contact-strip-item .ic {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(120, 150, 255, 0.12);
  color: #cad6ff;
}
.contact-strip-item .info { line-height: 1.3; }
.contact-strip-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.contact-strip-item span {
  color: var(--ink-faint);
  font-size: 12px;
}

.contact-panel {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(14, 22, 44, 0.7) 0%, rgba(8, 12, 24, 0.85) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 44px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.contact-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(120, 150, 255, 0.5) 30%,
    rgba(180, 200, 255, 0.8) 50%,
    rgba(120, 150, 255, 0.5) 70%,
    transparent 100%
  );
}
.contact-panel::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(58, 92, 255, 0.22), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: span 2;
}
.field.half { grid-column: span 3; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(230, 235, 255, 0.6);
}
.field input,
.field select,
.field textarea {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(230, 235, 255, 0.32);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(120, 150, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(58, 92, 255, 0.12);
}
.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 120, 120, 0.45);
}
.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
  font-family: inherit;
}
.field-hint {
  display: block;
  margin-top: 2px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(230, 235, 255, 0.4);
  text-transform: uppercase;
}
.field-hint #cf-message-count { color: rgba(230, 235, 255, 0.7); }
.field-hint.over #cf-message-count { color: #ff7878; }
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23a8b4d8' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field select option { background: #0a1232; color: var(--ink); }

.form-actions {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.form-actions small {
  color: rgba(230, 235, 255, 0.5);
  font-size: 12px;
  max-width: 40ch;
  line-height: 1.45;
}
.form-actions button {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5170ff 0%, #2c47e6 100%);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  font-family: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 12px 36px rgba(58, 92, 255, 0.4);
  transition: transform .2s, box-shadow .2s;
}
.form-actions button:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 16px 46px rgba(58, 92, 255, 0.55);
}
.form-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.form-actions button .arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 14px;
}
.form-thanks {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(111, 224, 164, 0.1);
  border: 1px solid rgba(111, 224, 164, 0.28);
  color: #b8f0d0;
  font-size: 14px;
  display: none;
}
.form-thanks.show { display: block; }
