/* =============================================
   Bitcrack Cyber — Contact Page (Light Theme v1)
   Corporate, clean
   ============================================ */

:root {
  --bg:#ffffff; --bg-card:#ffffff; --bg-elevated:#f8f8f8; --bg-surface:#f5f5f5;
  --text:#111111; --text-secondary:#404040; --text-muted:#737373;
  --accent:#dc2626; --accent-hover:#b91c1c; --accent-muted:rgba(220,38,38,0.08);
  --border:rgba(0,0,0,0.08); --border-light:rgba(0,0,0,0.12);
  --radius:8px; --radius-lg:12px; --transition:0.2s ease;
  --font:"Inter",system-ui,-apple-system,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);-webkit-font-smoothing:antialiased;overflow-x:hidden}
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 2rem}
a{color:inherit}

.btn{display:inline-flex;align-items:center;gap:0.5rem;padding:0.85rem 1.75rem;font-size:0.9rem;font-weight:600;font-family:var(--font);border-radius:6px;border:1px solid transparent;text-decoration:none;cursor:pointer;transition:all var(--transition);white-space:nowrap}
.btn-primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.btn-primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}

.section-label{display:inline-block;font-size:0.75rem;font-weight:600;text-transform:uppercase;letter-spacing:0.12em;color:var(--accent);margin-bottom:0.75rem}


/* =========================================================
   HERO
   ========================================================= */
.contact-hero {
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
  background: var(--bg-surface);
}

.contact-hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.contact-hero-content h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #111111;
}

.contact-hero-content p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   CONTACT SECTION
   ========================================================= */
.contact-section {
  padding: 3rem 0 6rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}


/* =========================================================
   FORM
   ========================================================= */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.contact-form-wrap h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111111;
}

.form-subtitle {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row .form-field {
  margin-bottom: 0;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.required {
  color: var(--accent);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: #f8f8f8;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #a3a3a3;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23737373' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
}

.form-field select option {
  background: #ffffff;
  color: var(--text);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Success — hidden by default; JS sets style.display="flex" to show */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

.form-success i {
  font-size: 3rem;
  color: #22c55e;
  margin-bottom: 1rem;
}

.form-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111111;
}

.form-success p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}


/* =========================================================
   SIDEBAR
   ========================================================= */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sidebar-card:hover {
  border-color: var(--border-light);
}

.sidebar-card--urgent {
  border-color: rgba(220,38,38,0.15);
  background: linear-gradient(180deg, rgba(220,38,38,0.03), transparent 60%);
}

.sidebar-card--urgent:hover {
  border-color: rgba(220,38,38,0.3);
}

.sidebar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.sidebar-card h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111111;
}

.sidebar-card > p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact list */
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
}

.sidebar-list li:last-child {
  margin-bottom: 0;
}

.sidebar-list i {
  color: var(--text-muted);
  font-size: 0.78rem;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-list a:hover {
  color: #111111;
}

/* Regions */
.sidebar-regions {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-regions li {
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.sidebar-regions li:last-child {
  border-bottom: none;
}


/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .contact-hero {
    padding: 8rem 0 4rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .contact-hero {
    padding: 7rem 0 3rem;
  }

  .contact-hero-content h1 {
    font-size: 2rem;
  }

  .contact-section {
    padding: 2rem 0 4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 1.75rem;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .form-footer .btn {
    justify-content: center;
  }

  .form-note {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .contact-hero {
    padding: 6rem 0 2.5rem;
  }

  .contact-hero-content h1 {
    font-size: 1.75rem;
  }

  .contact-hero-content p {
    font-size: 1rem;
  }

  .contact-form-wrap {
    padding: 1.25rem;
  }

  .sidebar-card {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* Inline error message (hidden by default; JS sets style.display="flex") */
.form-error {
  display: none;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.06);
  border-radius: 6px;
  color: #b91c1c;
  font-size: 0.88rem;
  line-height: 1.5;
}
.form-error i {
  font-size: 1rem;
  color: #dc2626;
  margin-top: 0.1rem;
  flex-shrink: 0;
}
