/* =========================================================
   CYRTIX ACADEMY — CONTACT PAGE
   Premium • Cyber • Professional
========================================================= */

/* ---------------------------------------------------------
   SECTION
--------------------------------------------------------- */
.contact-section {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0,224,255,0.10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255,111,76,0.10), transparent 45%),
    linear-gradient(180deg, #0b1220, #070c16);
}

/* Subtle grid overlay */
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.25;
  pointer-events: none;
}

/* ---------------------------------------------------------
   CONTAINER
--------------------------------------------------------- */
.contact-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--cx-space-4);
  position: relative;
  z-index: 2;
}

/* ---------------------------------------------------------
   HEADINGS
--------------------------------------------------------- */
.contact-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: var(--cx-weight-bold);
  color: var(--cx-slate-50);
  text-align: center;
  letter-spacing: -0.02em;
}

.contact-subtitle {
  margin-top: var(--cx-space-2);
  text-align: center;
  color: var(--cx-slate-400);
  font-size: var(--cx-text-base);
  line-height: 1.6;
}

/* ---------------------------------------------------------
   CARD
--------------------------------------------------------- */
.contact-card {
  margin-top: var(--cx-space-10);
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.02)
    );
  border: 1px solid var(--cx-steel-800);
  border-radius: var(--cx-radius-xl);
  padding: clamp(1.8rem, 4vw, 2.4rem);
  backdrop-filter: blur(14px);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.02);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.55),
    0 0 0 1px rgba(0,224,255,0.15);
}

/* ---------------------------------------------------------
   GRID
--------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--cx-space-4);
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   FORM ELEMENTS
--------------------------------------------------------- */
.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  background: rgba(10,16,28,0.9);
  border: 1px solid var(--cx-steel-800);
  border-radius: var(--cx-radius-md);
  padding: 0.7rem 0.85rem;
  color: var(--cx-slate-200);
  font-size: var(--cx-text-sm);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-card textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-card input::placeholder,
.contact-card textarea::placeholder {
  color: var(--cx-slate-500);
}

/* Focus */
.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
  outline: none;
  border-color: var(--cx-cyan-400);
  background: rgba(12,20,34,0.95);
  box-shadow:
    0 0 0 2px rgba(0,224,255,0.18),
    inset 0 0 0 1px rgba(0,224,255,0.15);
}

/* ---------------------------------------------------------
   ERRORS
--------------------------------------------------------- */
.contact-card .errorlist {
  margin-bottom: var(--cx-space-2);
  color: var(--cx-crimson-400);
  font-size: var(--cx-text-xs);
  list-style: none;
  padding-left: 0;
}

/* ---------------------------------------------------------
   SUBMIT BUTTON
--------------------------------------------------------- */
.contact-submit {
  margin-top: var(--cx-space-7);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  background:
    linear-gradient(
      135deg,
      var(--cyber-coral),
      #ff896c
    );
  color: #fff;

  padding: 0.75rem 1.4rem;
  border-radius: var(--cx-radius-md);
  font-weight: var(--cx-weight-semibold);
  letter-spacing: 0.02em;

  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.contact-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 10px 28px rgba(255,111,76,0.45),
    0 0 0 1px rgba(255,111,76,0.4);
}

.contact-submit:active {
  transform: translateY(0);
}

/* ---------------------------------------------------------
   ACCESSIBILITY
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .contact-submit {
    transition: none;
  }
}
