/* ==========================================================
   Contact us page — Kalpokotha
   ========================================================== */
:root {
  --bg: #000;
  --text: #d4d4d8;
  --bright: #e4e4e7;
  --muted: #a1a1aa;
  --border: #26262c;
  --accent: #6366f1;
  --pad-x: clamp(20px, 7vw, 100px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  overflow-x: hidden;
}

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.page { position: relative; z-index: 2; }

/* ---------- 1. Sentence + globe ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(60px, 10vh, 110px) 20px 0;
  text-align: center;
}
.hero h1 {
  color: var(--bright);
  font-size: clamp(32px, 5.4vw, 70px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  animation: rise 1.1s .1s both;
}
.globebox {
  width: min(100%, 900px);
  margin-top: clamp(0px, 2vw, 20px);
  animation: fade 1.6s .5s both;
}
#globe { display: block; width: 100%; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 2. Contact card ---------- */
.contact { padding: 0 var(--pad-x); }
.eyebrow {
  margin-bottom: 18px;
  text-align: center;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.card {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(14, 14, 18, .72);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
}

.field { margin-bottom: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .02em;
}
input, textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #2a2a30;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  color: var(--bright);
  font: inherit;
  font-size: 16px;                       /* 16px stops iOS from zooming into the field */
  font-weight: 300;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
input::placeholder, textarea::placeholder { color: #52525b; }
input:focus, textarea:focus {
  border-color: #4f52d8;
  background: rgba(99, 102, 241, .06);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .18);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }

.submit {
  width: 100%;
  margin-top: 6px;
  padding: 15px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s, transform .25s, box-shadow .25s;
}
.submit:hover { background: #7b7ef5; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99, 102, 241, .35); }
.submit:active { transform: none; }
.submit:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }

/* spam-trap field: off screen, not display:none (bots skip display:none less often than you think) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* result message under the button */
.status {
  display: none;
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
}
.status.show { display: block; }
.status.ok  { color: #86efac; background: rgba(34, 197, 94, .08);  border-color: rgba(34, 197, 94, .3); }
.status.err { color: #fca5a5; background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .3); }
.submit:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 3px; }

/* ---------- 3. White line + back button ---------- */
.rule {
  width: min(calc(100% - 2 * var(--pad-x)), 900px);
  height: 1px;
  margin: clamp(60px, 8vw, 100px) auto 0;
  border: 0;
  background: #fff;
}
.back-wrap { padding: clamp(40px, 6vw, 70px) 0 clamp(70px, 9vw, 110px); text-align: center; }
.back {
  display: inline-block;
  padding: 14px 34px;
  border: 1px solid #2a2a30;
  border-radius: 14px;
  background: rgba(24, 24, 28, .8);
  color: var(--bright);
  font-size: 16px;
  text-decoration: none;
  transition: border-color .3s, background .3s, transform .3s;
}
.back:hover { border-color: #3b3b8f; background: rgba(40, 40, 80, .5); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .row2 { grid-template-columns: 1fr; }
  .card { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1, .globebox { animation: none; }
  html { scroll-behavior: auto; }
}