/* ==========================================================
   Kebha Dreamhacker Hub — Contact Us Page
   Theme: Light Purple
   ========================================================== */

:root {
  --purple-50:  #f7f3fc;
  --purple-100: #efe6fa;
  --purple-200: #e0cdf5;
  --purple-300: #cba7ec;
  --purple-400: #ab7ce0;
  --purple-500: #8e5fd1;
  --purple-600: #7347b8;
  --purple-700: #5c3792;
  --text-dark:  #2e2340;
  --text-muted: #6b6079;
  --white: #ffffff;
  --error: #d64545;
  --success: #2f9e5c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(142, 95, 209, 0.15);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--purple-50);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { text-decoration: none; color: inherit; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--purple-100);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--purple-700);
}
.logo span { color: var(--purple-400); font-weight: 400; }

.main-nav a {
  margin-left: 28px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--purple-600);
}

/* ---------- Hamburger toggle (mobile) ---------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  background: var(--purple-50);
  border: 1.5px solid var(--purple-300);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--purple-600);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.menu-toggle:hover { border-color: var(--purple-500); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.contact-hero {
  background: linear-gradient(135deg, var(--purple-200), var(--purple-100));
  padding: 64px 0 48px;
  text-align: center;
}
.contact-hero h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
  color: var(--purple-700);
}
.contact-hero p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* ---------- Form section ---------- */
.contact-form-section {
  padding: 56px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  border: 1px solid var(--purple-100);
}
.contact-form-card h2 {
  margin-top: 0;
  color: var(--purple-700);
}
.form-subtext {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: -6px;
}
.required { color: var(--error); }

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--text-dark);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--purple-200);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--purple-50);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(142, 95, 209, 0.18);
  background: var(--white);
}
textarea { resize: vertical; }

.field-error {
  display: block;
  color: var(--error);
  font-size: 0.82rem;
  margin-top: 4px;
  min-height: 1em;
}

/* Honeypot: visually hidden, still reachable by simple bots that fill everything */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-group #captchaQuestion {
  color: var(--purple-600);
  font-weight: 700;
}

.btn-submit {
  background: var(--purple-500);
  color: var(--white);
  border: none;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-submit:hover { background: var(--purple-600); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
}
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }

/* ---------- Side panel ---------- */
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.info-card {
  background: var(--purple-100);
  border-radius: var(--radius);
  padding: 26px;
}
.info-card h3 {
  margin-top: 0;
  color: var(--purple-700);
}
.info-card details {
  border-bottom: 1px solid var(--purple-200);
  padding: 10px 0;
}
.info-card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
}
.info-card p {
  color: var(--text-muted);
  margin: 8px 0 0;
  font-size: 0.9rem;
}

/* ---------- Address / Phone / Email strip ---------- */
.contact-details-strip {
  background: var(--purple-600);
  color: var(--white);
  padding: 48px 0;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.detail-item h4 {
  margin: 10px 0 6px;
  font-size: 1.05rem;
}
.detail-icon { font-size: 1.8rem; }
.detail-item p { color: var(--purple-100); margin: 0; }
.detail-item a { color: var(--white); font-weight: 600; }
.detail-item a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text-dark);
  color: var(--purple-100);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links a {
  margin-right: 20px;
  color: var(--purple-200);
  font-size: 0.88rem;
}
.footer-links a:hover { color: var(--white); }
.copyright { font-size: 0.82rem; color: var(--purple-300); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; text-align: center; }

  .menu-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--purple-100);
    box-shadow: var(--shadow);
    padding: 12px 24px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    margin-left: 0;
    padding: 12px 4px;
    color: var(--purple-700);
    border-bottom: 1px solid var(--purple-100);
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a:hover,
  .main-nav a.active { color: var(--purple-500); }
}
