/* =========================
   CONTACT SECTION
========================= */
.section-title {
  margin-top: -40px;
  margin-bottom: 40px;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.8px;
}

#contact {
  width: 90%;
  max-width: 400px;
  margin: auto; /* horizontal centering, vertical spacing from base.css */
  padding: 25px; /* inner spacing, can be adjusted per design */
  background: rgba(15,23,42,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(77,166,255,0.2);
  border-left: 4px solid #4facfe; /* blue left line */
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-left 0.3s ease;
}

#contact:hover {
  transform: translateY(-3px);
  border-left: 4px solid #00d4ff;
  box-shadow: 0 15px 30px rgba(0,212,255,0.25), 0 15px 35px rgba(0,0,0,0.3);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#contact input,
#contact textarea {
  width: 100%;
  resize: vertical;
  outline: none;
  background: #121c44;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  transition: all 0.3s ease;
}

#contact textarea {
  resize: vertical;      /* only allow vertical resizing */
  min-height: 25px !Important;     /* starting height */
  max-height: 200px;     /* optional max height */
  overflow: auto;        /* show scrollbar if content exceeds max-height */
  box-sizing: border-box;/* include padding in width */
}

#contact input:focus,
#contact textarea:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 10px rgba(0,212,255,0.2);
}

.contact-btn {
  width: 100%;
  max-width: 320px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg,#00d4ff,#4facfe);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  align-self: center;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,212,255,0.4);
}

/* Mobile adjustments */
@media(max-width:480px){
  #contact {
    width: 95%;
    padding: 20px;
    border-left-width: 3px;
  }
  .input-row { flex-direction: column; gap: 8px; }
  #contact input, #contact textarea { font-size: 12px; padding: 14px; }
  .contact-btn { width: 100%; }
}

/* Optional: small text and counters */
#charCounter {
  align-self: flex-start;
  text-align: left;
  font-size: 14px;
  color: #888;
}

#formStatus {
  font-size: 12px;
  margin-top: 1px;
  margin-bottom: 1px;
}

#messageBox {
  text-align: left;
}


