/* =========================================================
   MVSS STUDIO — contact.css
   Contact page styles
========================================================= */

/* Active nav link */
.nav-link-active { color: var(--wh) !important; }
.nav-link-active::after { width: 100% !important; }

/* =========================================================
   CONTACT PAGE LAYOUT
========================================================= */
.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 160px 64px 120px;
  position: relative;
}

/* Subtle background glow */
.contact-page::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 60%, rgba(0,230,62,.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.contact-header {
  text-align: center;
  margin-bottom: 72px;
  position: relative; z-index: 1;
}

.contact-h1 {
  font-family: var(--fd);
  font-size: clamp(64px, 9vw, 130px);
  line-height: .91; letter-spacing: .025em; text-transform: uppercase;
  color: var(--wh);
  margin: 24px 0 20px;
}
.contact-h1 .g { color: var(--g); }

.contact-sub {
  font-size: 15px; color: var(--lg);
  line-height: 1.7; max-width: 400px; margin: 0 auto;
}

/* =========================================================
   CONTACT PILLS
========================================================= */
.contact-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
  position: relative; z-index: 1;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--bd);
  background: rgba(255,255,255,.03);
  color: var(--gr);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
}

.contact-pill:hover {
  border-color: var(--g);
  color: var(--g);
  background: rgba(0,230,62,.05);
  box-shadow: 0 0 18px rgba(0,230,62,.1);
}

.contact-pills-divider {
  width: 1px;
  height: 28px;
  background: var(--bd);
  margin: 0 4px;
  flex-shrink: 0;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--bd);
  background: rgba(255,255,255,.03);
  color: var(--gr);
  text-decoration: none;
  cursor: none;
  flex-shrink: 0;
  transition: border-color .2s, color .2s, background .2s, box-shadow .2s;
}

.contact-social-btn:hover {
  border-color: var(--g);
  color: var(--g);
  background: rgba(0,230,62,.05);
  box-shadow: 0 0 18px rgba(0,230,62,.1);
}

/* =========================================================
   FORM
========================================================= */
.contact-form {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative; z-index: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-group--full { grid-column: 1 / -1; }

label {
  font-size: 10px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gr);
}
.optional { color: rgba(255,255,255,.18); font-weight: 400; }

/* Glass-edge gradient border technique */
.field-wrap {
  position: relative;
  background:
    linear-gradient(var(--sf), var(--sf)) padding-box,
    linear-gradient(135deg, var(--g) 0%, transparent 38%, transparent 80%, var(--g) 100%) border-box;
  border: .5px solid transparent;
  border-radius: 8px;
  transition: background .3s;
}
.field-wrap:focus-within {
  background:
    linear-gradient(var(--sf), var(--sf)) padding-box,
    linear-gradient(135deg, var(--g) 0%, rgba(0,230,62,.4) 38%, rgba(0,230,62,.4) 62%, var(--g) 100%) border-box;
}

.field-wrap input,
.field-wrap textarea,
.field-wrap select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-family: var(--fb);
  font-size: 14px;
  color: var(--wh);
  border-radius: 8px;
  -webkit-appearance: none;
  appearance: none;
}
.field-wrap input::placeholder,
.field-wrap textarea::placeholder { color: rgba(255,255,255,.18); }

.field-wrap select { cursor: none; }
.field-wrap select option {
  background: var(--pn);
  color: var(--wh);
}

.field-wrap textarea { resize: vertical; min-height: 140px; }

/* Select arrow */
.field-wrap--select { position: relative; }
.select-arrow {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--gr);
  pointer-events: none;
}

/* =========================================================
   SUBMIT
========================================================= */
.form-submit {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 8px;
}

.submit-btn {
  padding: 18px 52px;
  background: var(--g);
  color: var(--bk);
  border: none;
  border-radius: 4px;
  font-family: var(--fb);
  font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  cursor: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  flex-shrink: 0;
}
.submit-btn:hover {
  background: #1fff55;
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0,230,62,.25);
}

.form-note {
  font-size: 11px; color: var(--gr);
  letter-spacing: .06em; line-height: 1.6;
}

/* =========================================================
   FORM SUCCESS STATE
========================================================= */
@keyframes glitch-out {
  0%   { opacity: 1; transform: translateX(0);   filter: none; }
  15%  { opacity: 1; transform: translateX(-6px); filter: brightness(1.8) saturate(0); }
  30%  { opacity: .7; transform: translateX(8px);  filter: brightness(2.4) hue-rotate(90deg); }
  50%  { opacity: .4; transform: translateX(-3px); filter: brightness(1.2); }
  75%  { opacity: .15; transform: translateX(4px); }
  100% { opacity: 0;  transform: translateX(0); }
}

@keyframes scan-sweep {
  0%   { transform: translateY(-100%); opacity: 1; }
  100% { transform: translateY(120%);  opacity: 0; }
}

@keyframes fs-reveal {
  from { opacity: 0; transform: translateY(18px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

.contact-form.glitch-out {
  animation: glitch-out .42s ease forwards;
  pointer-events: none;
}

.form-success {
  display: none;
  width: 100%; max-width: 760px;
  text-align: center;
  position: relative; z-index: 1;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.form-success.active {
  display: flex;
}

/* Scan line sweep */
.fs-scan {
  position: absolute;
  inset: -60px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,230,62,.12) 48%,
    rgba(0,230,62,.22) 50%,
    rgba(0,230,62,.12) 52%,
    transparent 100%
  );
  pointer-events: none;
  animation: scan-sweep .9s cubic-bezier(.4,0,.2,1) forwards;
}

.fs-mark {
  width: 52px; height: 52px;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 14px rgba(0,230,62,.6));
  animation: fs-reveal .5s .3s ease both;
}

.fs-label {
  font-size: 10px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--g);
  margin-bottom: 18px;
  animation: fs-reveal .5s .45s ease both;
}

.fs-h {
  font-family: var(--fd);
  font-size: clamp(52px, 8vw, 96px);
  line-height: .92; letter-spacing: .01em;
  color: var(--wh);
  margin: 0 0 24px;
  animation: fs-reveal .5s .55s ease both;
}
.fs-h span { color: var(--g); }

.fs-sub {
  font-size: 14px; color: rgba(255,255,255,.4);
  line-height: 1.75; max-width: 380px;
  margin: 0 0 48px;
  animation: fs-reveal .5s .65s ease both;
}
.fs-sub span { color: rgba(255,255,255,.7); }

.fs-actions {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  animation: fs-reveal .5s .78s ease both;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
  .contact-page  { padding: 140px 28px 100px; }
  .form-row      { grid-template-columns: 1fr; }
  .form-submit   { flex-direction: column; align-items: flex-start; }
  .submit-btn    { width: 100%; text-align: center; justify-content: center; }
  .contact-pills { gap: 8px; }
  .contact-pills-divider { display: none; }
}
