/* ========== 📦 Reusable Layout Rules ========== */

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

@media (max-width: 768px) {
  .contact {
    display: block;       /* ✅ allow normal flow */
    height: auto;         /* ✅ let it grow */
  }
}

/* Outer box (desktop only) */
.content-wrapper {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  max-width: 800px;
  width: 100%;
  height: 100%;
  display: flex;
  box-sizing: border-box;
  overflow: hidden;
}

/* Inner scrollable and padded content */
.content-inner {
  height: 90%;
  width: 90%;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  overflow-y: auto;

  scrollbar-width: none;
  -ms-overflow-style: none;
}
.content-inner::-webkit-scrollbar {
  display: none;
}

/* Typography */
.content-inner h2 {
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  color: white;
}

.content-inner p {
  color: #eaeaea;
  text-align: center;
  margin-bottom: 0;
}

/* 🔽 MOBILE LAYOUT ADJUSTMENTS */
@media (max-width: 768px) {
  .bg-overlay {
    display: block;
  }

  .content-wrapper {
    height: auto !important;  /* ✅ allow content height */
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .content-inner {
    width: 100% !important;
    height: auto !important;
    /* padding: 25px !important; */
    overflow-y: visible !important;
  }
}

@media (max-width: 480px) {
  .content-inner {
   /* padding: 15px !important; */
  }
}

/* ========== 📨 Page-Specific: Contact Form ========== */

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact-form input,
#contact-form textarea {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #555;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

#contact-form textarea {
  resize: vertical;
}

#contact-form button {
  padding: 12px;
  font-size: 1rem;
  background-color: #9e42f5;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

#contact-form button:hover {
  background-color: #7d2fd1;
}

#contact-form textarea[name="message"] {
  min-height: 280px;
}

/* Contact note */
.contact-note {
  text-align: center;
  font-size: 0.9rem;
  color: #eaeaea;
}

.contact-note a {
  color: #9e42f5;
  text-decoration: none;
}

/* 🔽 Mobile override for textarea height */
@media (max-width: 768px) {
  #contact-form textarea[name="message"] {
    min-height: 140px;
  }
}

@media (max-width: 480px) {
  #contact-form textarea[name="message"] {
    min-height: 100px;
  }
}
