* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Google Sans", sans-serif;
}

body {
  display: flex;
 font-family: "Google Sans", sans-serif;
}



.left {
  width: 60%;
  padding: 40px;
  margin-left: 40px;
  margin-top: 80px;
  margin-bottom: 40px;
  background: white;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
}

h2{
  font-family: "Google Sans", sans-serif;
  font-size: 22px;
  color: #000;

}

label {
  font-family: "Google Sans", sans-serif;
  font-size: 14px;
  color: #000;
  margin-bottom: 5px;
  display: block;
  margin-top: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}



input {
  padding: 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
}

textarea {
  width: 100%;
  min-height: 120px;
  resize: none;
  border: 1px solid #ccc;
  outline: none;
  background-image: none;
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
}
textarea:focus {
  border: 1px solid lightgreen;
}
.form-group textarea {
  width: 100%;
  height: 300px;
  margin-top: 20px;
 
}

.form-group:has(textarea) {
  grid-column: span 2;
  
}

.textarea-group {
  position: relative;
  grid-column: span 2; /* makes it full width in your 2-column grid */
}

.textarea-group textarea {
  padding: 20px 10px 10px 10px; /* extra top padding for label */
}

.textarea-group label {
  position: absolute;
  top: 20px;
  left: 10px;
  color: #999;
  font-size: 14px;
  pointer-events: none;
  transition: 0.2s ease all;
  background: white;
  padding: 0 5px;
}

.textarea-group textarea:focus + label,
.textarea-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 12px;
  color: lightgreen;
}


/* RIGHT SIDE */
.right {
  width: 40%;
  background: rgb(13, 8, 57);
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  padding: 30px;
  display: flex;
  align-items: flex-start;
}

/* BUTTONS */
button {

background:lightgreen;
color: #000;;
padding:10px 30px;
text-decoration:none;
font-weight:bold;
margin-left: 50px;
margin-top: 200px;
border-bottom: 4px solid transparent;
border-top: 1px solid transparent;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
transition:0.5s;
cursor: pointer;
}

button:hover {
border-bottom: 3px solid #000;
border-top: 1px solid #000;
border-left: 1px solid #000;
border-right: 1px solid #000;
}

.home-btn {
 background:lightgreen;
color: #000;;
padding:10px 30px;
text-decoration:none;
font-weight:bold;
margin-left: 50px;
margin-top: 200px;
border-bottom: 4px solid transparent;
border-top: 1px solid transparent;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
transition:0.5s;
cursor: pointer;
caret-color: transparent;
}

.home-btn:hover {
  border-bottom: 3px solid #000;
  border-top: 1px solid #000;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
}


@media (max-width: 768px) {

  body {
    flex-direction: column;
  }

  .left {
    width: 100%;
    margin: 0;
    padding: 20px;
    box-shadow: none;
  }

  .right {
    position: static;   
    width: 100%;
    height: auto;
    justify-content: center;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .form-grid {
    grid-template-columns: 1fr; /* single column */
  }

  .form-group:has(textarea) {
    grid-column: span 1;
  }

  .textarea-group {
    grid-column: span 1;
  }

   button,
  .home-btn {
    width: 100%;
    margin: 0;
    text-align: center;
  }

    h2 {
    font-size: 22px;
  }

  input,
  textarea {
    font-size: 16px; /* better for mobile typing */
  }

  .form-group textarea {
    height: 200px;
  }
}


@media (min-width: 769px) and (max-width: 1024px) {

  body {
    flex-direction: row;
  }

  /* LEFT SIDE */
  .left {
    width: 65%;
    margin-left: 20px;
    margin-top: 60px;
    padding: 25px;
  }

  /* RIGHT SIDE */
  .right {
    width: 35%;
    padding: 20px;
  }

  /* FORM GRID (still 2 columns, but more breathing room) */
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  /* TEXTAREA */
  .form-group textarea {
    height: 220px;
  }

  /* BUTTONS (fix spacing issue) */
  button,
  .home-btn {
    margin-left: 0;
    margin-top: 100px;
    width: 80%;
  }

  /* TYPOGRAPHY */
  h2 {
    font-size: 26px;
  }

  input,
  textarea {
    font-size: 15px;
  }

  @media (min-width: 769px) and (max-width: 1024px) {

  body {
    flex-direction: row;
  }

  /* LEFT SIDE */
  .left {
    width: 65%;
    margin-left: 20px;
    margin-top: 60px;
    padding: 25px;
  }

  /* RIGHT SIDE */
  .right {
    width: 35%;
    padding: 20px;
  }

  /* FORM GRID (still 2 columns, but more breathing room) */
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  /* TEXTAREA */
  .form-group textarea {
    height: 220px;
  }

  /* BUTTONS (fix spacing issue) */
  button,
  .home-btn {
    margin-left: 0;
    margin-top: 100px;
    width: 80%;
  }

  
  h2 {
    font-size: 25px;
  }

  input,
  textarea {
    font-size: 14px;
  }
}

.right {
    display: flex;
    flex-direction: column;  
    align-items: center;      
    justify-content: center;  
    gap: 20px;                
  }

  button,
  .home-btn {
    width: 80%;
    margin: 0;                
    text-align: center;
  }

}

