/* ================= CONTACT PAGE ONLY ================= */

/* Keep page centered */
.contact-page {
  background: var(--bg);
  color: var(--text);
}

/* Main container */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem 1rem 4rem;
}

/* Card */
.contact-card {
  width: 100%;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 2.5rem 2.5rem 2.2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  text-align: center;
  animation: fadeUp 1s ease forwards;
}

.contact-card h2 {
  font-size: 2rem;
  margin-bottom: .5rem;
  color: var(--text);
}

.contact-card p {
  color: #555;
  margin-bottom: 2rem;
}

/* Input wrapper */
.input-box {
  position: relative;
  margin-bottom: 1.5rem;
}

/* Left icon */
.input-box i {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.1rem;
}

/* Text input */
.input-box input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 45px;
  border-radius: 50px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 1rem;
  background: #fff;
  transition: .3s;
  box-sizing: border-box;
}

.input-box input:focus {
  border-color: #00b4d8;
  box-shadow: 0 0 8px rgba(0,180,216,0.3);
}

/* Button */
.contact-btn {
  width: 100%;
  margin-top: .5rem;
  border-radius: 50px;
}

/* Toast */
#toast {
  position: fixed;
  top: 20px;
  right: 20px;
  bottom: auto;
  background: #28c76f;
  color: #fff;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: all .4s ease;
  z-index: 99999;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Dark-mode tweaks for contact card only */
.dark .contact-card {
  background: rgba(22, 27, 34, 0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.dark .input-box input {
  background: #111;
  border-color: #333;
  color: #fff;
}

.dark .input-box i {
  color: #bbb;
}

.dark #toast {
  background: #22bb66;
}

/* ================= RESPONSIVE FIXES ================= */

/* Tablets + mobile */
@media (max-width: 768px) {
  .contact-section {
    padding: 5.5rem 1rem 3rem;
  }

  .contact-card {
    padding: 2rem 1.7rem 1.8rem;
  }

  /* Override global input 90% width from style.css */
  .contact-card .input-box input {
    width: 100% !important;
  }
}

/* Very small phones */
@media (max-width: 480px) {
  .contact-section {
    padding: 5rem 1rem 2.5rem;
  }

  .contact-card {
    padding: 1.8rem 1.4rem 1.6rem;
  }

  .contact-card h2 {
    font-size: 1.7rem;
  }
}
