* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background-color: #fff;
  color: #000;
}

.contact-section {
  padding: 40px 20px;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  align-items: flex-start;
  padding: 20px;
  /* ensure divider stretches properly */
}

.contact-form {
  flex: 1 1 55%;
}

.contact-info {
  flex: 1 1 35%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  /* adds spacing between heading, paragraph, contact items */
}

h2 {
  font-size: 28px;
  margin-bottom: 0;
  /* now handled by gap */
}

.contact-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
  /* now handled by gap */
  line-height: 1.6;
  /* improves readability */
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.form-group {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-size: 12px;
}

.required {
  color: red;
  margin-left: 4px;
}

input,
textarea {
  padding: 10px;
  border: 1px solid #999;
  border-radius: 4px;
  font-size: 14px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  background-color: transparent;
  color: black;
  padding: 12px 20px;
  border: solid 2px red;
  margin-top: 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.submit-btn:hover {
  background-color: red;
  color: white;
}

.info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  /* reduced to be more consistent with vertical spacing */
  font-size: 14px;
}

.info i {
  color: #333;
  transition: color 0.4s ease;
}

.info i:hover {
  color: red;
}

.social-icons {
  margin-top: 10px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icons a {
  font-size: 20px;
  margin-right: 15px;
  cursor: pointer;
  transition: color 0.4s ease;
}

.social-icons i:hover {
  color: red;
}

.divider {
  width: 1px;
  background-color: #ccc;
  height: 100%;
  /* key fix: makes divider fill height */
  min-height: 400px;
  /* ensures visibility if containers are short */
  align-self: stretch;
  /* ensures it stretches within flexbox */
}

.contact-info h2{
  color: red;
}
/* Responsive Tablet */
@media (max-width: 1024px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info {
    order: -1;
  }

  .form-row {
    margin-bottom: 25px;
  }

  .form-row .form-group {
    flex: 1 1 100%;
  }

  .divider {
    display: none;
  }
}

/* Responsive Mobile */
@media (max-width: 780px) {
  .form-row {
    flex-direction: column;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }

  .social-icons i {
    margin-bottom: 10px;
  }

  .divider {
    display: none;
    /* hide the vertical line on mobile */
  }
}