/* CONTACT SECTION */
.contact-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-section h1 {
  font-size: 2.5em;
  color: white;
  margin-bottom: 15px; /* change to move heading down or up */
  text-align: center;
  font-family: "Audiowide", sans-serif;
}

.contact-intro {
  color: #aaa;
  text-align: center;
  margin-bottom: 50px; /* change to move intro text down or up */
  font-size: 1.1em;
  line-height: 1.6;
}

.contact-container {
  display: grid;
  grid-template-columns: 2fr 1fr; /* 2fr = form takes 2x more space, 1fr = info sidebar */
  gap: 50px; /* change to increase/decrease space between form and sidebar */
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px; 
  min-height: 80px; /* adds space for error/success message so sidebar doesn't shift */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px; /* space between label and input */
}

.form-group label {
  color: #00d4ff;
  font-weight: bold;
  font-size: 0.95em;
  font-family: "Audiowide", sans-serif;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px; /* change to add/remove internal padding */
  background-color: #222;
  border: 1px solid #444;
  border-radius: 5px; /* change to make corners more/less rounded */
  color: white;
  font-size: 1em;
  font-family: Arial, sans-serif;
  transition: border-color 0.3s ease; /* smooth color change on focus */
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #00d4ff; /* cyan border on click */
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3); /* glow effect around input */
}

.form-group textarea {
  resize: vertical; /* only resize up/down */
  min-height: 150px; /* change to make text box taller/shorter */
}

/* CONTACT INFO SIDEBAR */
.contact-info {
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 30px; /* change to add/remove inside space */
  height: fit-content; /* keeps sidebar height matching content */
}

.contact-info h2 {
  color: #00d4ff;
  font-size: 1.5em;
  margin-bottom: 25px; /* change to move heading down or up */
  font-family: "Audiowide", sans-serif;
}

.info-item {
  margin-bottom: 25px; /* space between items */
  padding-bottom: 25px;
  border-bottom: 1px solid #333; /* line between items */
}

.info-item:last-child {
  border-bottom: none; /* removes line from last item */
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-item h3 {
  color: #00d4ff;
  font-size: 1em;
  margin-bottom: 8px;
  font-family: "Audiowide", sans-serif;
}

.info-item p {
  color: #aaa;
  line-height: 1.6;
}

.info-item a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: #00a8cc; /* darker cyan on hover */
}

/* FORM MESSAGES */
.form-message {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
  animation: slideDown 0.3s ease;
}

.error-message {
  background-color: #3a1a1a;
  border: 1px solid #ff0000;
  color: #ff6b6b;
}

.success-message {
  background-color: #1a3a1a;
  border: 1px solid #00d400;
  color: #00ff00;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SUBMIT BUTTON*/
.submit-btn {
  padding: 15px; /* change to make button taller/wider */
  background-color: #00d4ff;
  color: black;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: "Audiowide", sans-serif;
  margin-top: 10px; /* change to move button down or up */
}

.submit-btn:hover {
  background-color: #00a8cc; /* darker cyan on hover */
}

.submit-btn:active {
  transform: translateY(0); /* button returns to normal when clicked */
}

/* MOBILE - stacks form and sidebar vertically */
@media (max-width: 768px) {
  .contact-section {
    padding: 40px 20px;
  }

  .contact-section h1 {
    font-size: 2em;
  }

  .contact-container {
    grid-template-columns: 1fr; /* single column layout */
    gap: 30px;
  }

  .contact-info {
    order: -1; /* moves sidebar above form on mobile */
  }
}

/* TABLET */
@media (min-width: 481px) and (max-width: 768px) {
  .contact-section h1 {
    font-size: 2.2em;
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  .contact-section h1 {
    font-size: 3em;
  }
}
