/* contact form section (form = left & text = right) */
.contact-section {
  display: flex;
  justify-content: center;
  /* align-items: flex-start; */
  background-color: var(--primaryColor);
  color: var(--accentColor);
  /* min-height: 80vh; */
  gap: 12rem; 
}

/* this to equal the size of two boxes of flex box */
.contact-section > * {
  flex: 1;
}


/* FOAM area (left side) */

.first-lastName-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
}

.first-lastName-row div {
  display: flex;
  flex: 1 1 45%;
  flex-direction: column;
}

.first-lastName-row input {
  width: 100%;
}


.contact-form-area {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* small text on top of the input boxes */
.contact-form-area label {
  margin-bottom: 0rem;
}

.contact-form-area input,
.contact-form-area textarea {
  margin-bottom: 1.5rem;
  padding: 0.8rem;
  border: none;
  border-radius: 10px;
  background-color: var(--secondaryColor);
  font-size: 1rem;
}


.contact-form-area input:focus,
.contact-form-area textarea:focus {
  outline: 2px solid var(--secondaryColor);
  background-color: var(--accentColor);
}

.contact-form-area input:hover,
.contact-form-area textarea:hover {
  outline: 2px solid var(--secondaryColor);
  background-color: var(--accentColor);
}


#message {
  height: 30vh;
}




/* right size (word) */
.contact-text {
  flex: 1;
  text-decoration: none;
  color: var(--accentColor);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-text h1 {
  font-size: 7rem;
  border: none;
  outline: none;
  text-decoration: none;
  border: none;
  margin-bottom: 1rem;
  color: var(--accentColor);
}

.contact-text p {
  font-size: 1.5rem;
  line-height: 1.6;
  max-width: 320px;
}


.submit-button {
    text-align: center; 
    margin-top: 1.5rem;
}

.submit-button .send-btn {
    display: inline-block;   
    background-color: var(--accentColor);
    color: var(--accentColor);
    padding: 12px 10px;      
    border-radius: 20px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 2rem;         
    min-width: 120px;        
    transition: all 0.3s ease;
}

.submit-button .send-btn:hover {
    background-color: var(--primaryColor);
    color: var(--accentColor);
}









/* ----------------------------------------------------------------- */
/* Responsive CSS for tablet & mobile */


/* ---------- TABLET!!! ---------- */
@media (max-width: 1024px) {
  .contact-section {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 5rem;
    padding: 4rem 2rem;
  }
.contact-form-area {
  max-width: 600px; 
  width: 100%;
  margin: 0 auto; 
}

  .contact-text h1 {
    font-size: 6rem;
  }

  .contact-text p {
    font-size: 1.2rem;
    /* max-width: 400px; */
    margin: 0 auto;
  }
}

/* ---------- MOBILE!!! ---------- */
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column-reverse;
    align-items: center;
    gap: 3rem;
    padding: 2rem 1rem;
  }

 
  .first-lastName-row {
    flex-direction: column;
    gap: 1rem;
  }

  .first-lastName-row div {
    flex: 1 1 100%;
    width: 100%;
  }

.contact-form-area {
  /* increasing length of box */
  max-width: 400px; 
  width: 100%;
  margin: 0 auto; 
}

  .contact-form-area input,
  .contact-form-area textarea {
    width:100%;
    font-size: 1rem;
  }

  .contact-text h1 {
    font-size: 4rem;
  }

  .contact-text p {
    font-size: 1rem;
    /* max-width: 300px; */
    margin: 0 auto;
  }
}



