/* ======================================================
   CONTACT PAGE CSS — PREMIUM, ACCESSIBLE
   Features:
   - Gradient shimmer background
   - Particle animation
   - Glassmorphic contact card
   - Floating labels for inputs
   - Shimmer button animation
   - Success overlay animation
   - Responsive & mobile-friendly
====================================================== */

/* ================= CONTACT PAGE STRUCTURE ================= */
.contact-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: #f5f7fa;
  font-family: 'Inter', sans-serif;
}

/* ================= GRADIENT SHIMMER BACKGROUND ================= */
.contact-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0,201,167,0.12),
    rgba(10,37,64,0.18),
    rgba(0,201,167,0.12)
  );
  background-size: 400% 400%;
  animation: shimmer 18s ease infinite;
  z-index: 0;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ================= PARTICLES ================= */
#particles {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ================= CONTACT CARD ================= */
.contact-card {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  animation: cardIn 0.8s ease forwards;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= INPUT FIELDS ================= */
.field {
  position: relative;
  margin-bottom: 1.8rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 1rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
  transition: border-color 0.3s ease;
}

.field label {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
  transition: 0.3s ease;
  background: #fff;
  padding: 0 0.4rem;
}

.field input:focus,
.field textarea:focus {
  border-color: #00c9a7;
  outline: none;
}

.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 0.8rem;
  color: #00c9a7;
}

/* ================= SUBMIT BUTTON ================= */
.submit-btn {
  width: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: #00c9a7;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background-color: #00b391;
}

.submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
}

.submit-btn:hover::after {
  animation: shimmerBtn 1.2s ease;
}

@keyframes shimmerBtn {
  to { transform: translateX(100%); }
}

/* ================= SUCCESS OVERLAY ================= */
.success-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  border-radius: 16px;
}

.success-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.checkmark svg {
  width: 80px;
  height: 80px;
  stroke: #00c9a7;
  stroke-width: 4;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: draw 0.8s ease forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.success-overlay p {
  margin-top: 1rem;
  font-weight: 700;
  color: #0a2540;
  text-align: center;
  font-size: 1rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 600px) {
  .contact-card {
    padding: 2rem 1.5rem;
  }

  .submit-btn {
    padding: 0.9rem;
  }
}
