/* ══════════════════════════════════════════
   CONTACT PAGE — contact.css
   Inherits: style.css (nav, footer, buttons,
   reveal, variables, mobile-panel)
══════════════════════════════════════════ */

/* Active state on Contact button in nav */
.btn-contact-active {
  background: #fff !important;
  color: var(--purple-d) !important;
  box-shadow: 0 0 0 2px var(--purple-l);
}

/* ── PAGE BACKGROUND ── */
body { background: var(--dark); }

/* ── MAIN WRAPPER ── */
.contact-main {
  min-height: 100vh;
  padding: 100px 8% 80px;
  position: relative;
  overflow: hidden;
}

/* Ambient background blobs */
.contact-main::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 20% 10%, rgba(123,47,190,0.28), transparent),
    radial-gradient(ellipse 40% 50% at 85% 70%, rgba(92,45,145,0.18), transparent),
    radial-gradient(ellipse 30% 30% at 60% 30%, rgba(176,111,232,0.08), transparent);
}
.contact-main > * { position: relative; z-index: 1; }

/* ── HERO ── */
.contact-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.contact-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.contact-title em {
  font-style: normal;
  color: var(--purple-l);
}

.contact-sub {
  font-size: 0.97rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto;
}

/* ── GRID: FORM + SIDEBAR ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* ── FORM CARD ── */
.contact-form-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 2.4rem 2.2rem;
  backdrop-filter: blur(12px);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.form-group:last-of-type { margin-bottom: 1.4rem; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--light-gray);
  letter-spacing: 0.02em;
}
.req { color: var(--purple-l); margin-left: 1px; }

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(138,138,154,0.6);
  font-size: 0.85rem;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple-l);
  background: rgba(123,47,190,0.08);
}

/* Submit button — gradient like screenshot 2 */
.contact-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(90deg, #00d4b4 0%, #7b2fbe 50%, #9b59d0 100%);
  background-size: 200% 100%;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-position 0.4s ease, transform 0.2s, opacity 0.2s;
  letter-spacing: 0.01em;
}
.contact-submit svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact-submit:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
}
.contact-submit:active { transform: translateY(0); opacity: 0.9; }

/* Feedback messages */
.form-success,
.form-error {
  display: none;
  margin-top: 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  text-align: center;
}
.form-success { background: rgba(0,200,150,0.12); color: #00c896; border: 1px solid rgba(0,200,150,0.25); }
.form-error   { background: rgba(220,60,60,0.12);  color: #f87171; border: 1px solid rgba(220,60,60,0.25); }
.form-success.show,
.form-error.show { display: block; }

/* ── SIDEBAR ── */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sidebar-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  backdrop-filter: blur(12px);
}
.sidebar-card h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}

/* Info items (email, phone) */
.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.info-item:last-child { margin-bottom: 0; }
.info-item:hover {
  border-color: rgba(123,47,190,0.4);
  background: rgba(123,47,190,0.08);
}
.info-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(123,47,190,0.18);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 16px; height: 16px; color: var(--purple-l); }
.info-label {
  font-size: 0.73rem;
  color: var(--gray);
  margin-bottom: 0.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.info-value {
  font-size: 0.87rem;
  color: var(--white);
  font-weight: 500;
}

/* Why contact */
.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}
.why-item:last-child { margin-bottom: 0; }
.why-dot {
  width: 10px; height: 10px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4b4, var(--purple-l));
  margin-top: 4px;
  box-shadow: 0 0 8px rgba(0,212,180,0.5);
}
.why-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}
.why-text { font-size: 0.8rem; color: var(--gray); line-height: 1.5; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .contact-main { padding: 90px 5% 60px; }
  .contact-form-card { padding: 1.6rem 1.2rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-sidebar { grid-template-columns: 1fr; }
}