:root{
  --bg:#0b0c10;
  --fg:#e8eaf0;
  --muted:#a7adbd;

  /* match your global nav height */
  --nav-h: 66px;

  --line: rgba(255,255,255,.10);
  --shadow: 0 14px 60px rgba(0,0,0,.45);
}

*{ box-sizing: border-box; }

/* Ensure base page stays dark even before video paints */
body.contact{
  background: var(--bg);
  color: var(--fg);
}

/* =========================================================
   Fullscreen video background + overlay
   ========================================================= */
.contact__bg{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: 0;
  filter: saturate(1.05) contrast(1.05);
}

/* Readability overlay */
.contact__overlay{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(900px 650px at 20% 25%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(11,12,16,.55), rgba(11,12,16,.82));
}

/* Keep contact content above video */
main.contact{
  position: relative;
  z-index: 2;
}

/* =========================================================
   NAV — same height + same “nice” dark look
   ========================================================= */

/* subtle fade behind nav so white never shows through */
body.contact::before{
  content:"";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 999;     /* behind nav */
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(11,12,16,.92),
    rgba(11,12,16,.72),
    rgba(11,12,16,0)
  );
}


/* Force nav to render like your other pages, and keep height stable */
body.contact .nav-wrap{
  position: sticky;
  top: 0;
  z-index: 1000;

  /* do NOT add padding here; it changes height */
  background: linear-gradient(
    to bottom,
    rgba(11,12,16,.86),
    rgba(11,12,16,.30)
  );
  border-bottom: 1px solid rgba(255,255,255,.06);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* If your global nav uses line-height/padding, this keeps links readable */
body.contact .nav__links a{
  color: rgba(255,255,255,.72);
}
body.contact .nav__links a:hover{
  color: rgba(255,255,255,.92);
}
body.contact .nav__links a.active{
  color: rgba(255,255,255,.94);
  background: rgba(255,255,255,.06);
}

/* =========================================================
   PAGE LAYOUT
   ========================================================= */

.contact{
  min-height: calc(100vh - var(--nav-h));
  padding: 1.25rem 0 3rem;
}

/* Smaller portrait: reduce left column width */
.contact__panel{
  width: min(1250px, calc(100% - 2rem));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 380px 1fr; /* smaller left */
  gap: 0;

  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(8, 13, 22, 0.661);
  box-shadow: var(--shadow);
}

/* LEFT: photo column */
.contact__left{
  position: relative;
  background: rgba(255, 255, 255, 0.086);
  min-height: 420px;
}

.contact__left img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: 50% 22%;
  display:block;
  filter: saturate(1.02) contrast(1.02);
}

.contact__fade{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(11, 12, 16, 0.264), rgba(11,12,16,.78)),
    linear-gradient(90deg, rgba(11,12,16,.45), rgba(11,12,16,.10));
}

/* RIGHT: content + form */
.contact__right{
  padding: 2.2rem 2.2rem;
  background: rgba(255, 255, 255, 0.045);
}

.contact__title{
  margin: 0 0 .6rem;
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: .3px;
}

.contact__lead{
  margin: 0 0 1.2rem;
  color: rgba(255,255,255,.84);
  line-height: 1.7;
  max-width: 64ch;
}

/* Social links row */
.contact__links{
  display:flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.4rem;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.86);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.pill:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}

/* Form wrap */
.formWrap{
  margin-top: 1.1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

.formTitle{
  margin: 0 0 .9rem;
  font-size: 1.25rem;
  font-weight: 850;
}

/* Form styling */
.form{
  display:flex;
  flex-direction: column;
  gap: .9rem;
}

.row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

label span{
  display:block;
  font-size: .92rem;
  color: rgba(255,255,255,.80);
  margin-bottom: .35rem;
}

/* Inputs */
input, textarea{
  width:100%;
  padding: .85rem .95rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.28);
  color: var(--fg);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

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

input::placeholder, textarea::placeholder{
  color: rgba(255,255,255,.45);
}

input:focus, textarea:focus{
  border-color: rgba(255, 255, 255, 0.767);
  box-shadow: 0 0 0 3px rgba(255,255,255,.10);
  background: rgba(0,0,0,.34);
}

/* Button */
.btnSend{
  margin-top: .25rem;
  padding: .9rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  font-weight: 850;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, border-color .2s ease, background .2s ease;
  width: fit-content;
}
.btnSend:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
}

.status{
  margin: .15rem 0 0;
  color: rgba(255,255,255,.78);
  min-height: 1.2em;
}

/* Responsive */
@media (max-width: 980px){
  .contact__panel{
    grid-template-columns: 1fr;
  }
  .contact__left{
    min-height: 260px;
  }
  .contact__right{
    padding: 1.6rem 1.2rem;
  }
  .row{
    grid-template-columns: 1fr;
  }
}
