@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Dancing+Script:wght@400..700&family=Flamenco&family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Jost:ital,wght@0,100..900;1,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Mulish:ital,wght@0,500;1,500&family=Pacifico&family=Piazzolla:ital,opsz,wght@0,8..30,100..900;1,8..30,100..900&family=Poppins:wght@500;600;700;800&family=Roboto:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rubik", sans-serif;
}

html {
  color: rgb(96, 101, 123);
}

body {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: rgb(255, 255, 255);
}

.container {
  padding: 30px;
  margin-top: 80px;
}

h2 {
  color: rgb(43, 45, 56);
  text-align: center;
  font-size: 48px;
  letter-spacing: -0.2px;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

p {
  max-width: 670px;
  text-align: center;
  margin-top: 24px;
  margin-bottom: 100px;
}

textarea {
  width: 100%;
  height: 316px;
  padding: 18px;
  position: relative;
  resize: none;
  box-shadow: 0 12px 48px 0px rgb(109 117 141 / 20%);
  border: 0.5px solid rgba(231, 233, 245);
  border-radius: 16px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
  background-color: #fff;
}

textarea:focus {
  border: 0.3px solid rgb(43, 45, 56, 0.3);
  outline: none;
}

p,
textarea {
  font-size: 18px;
  letter-spacing: 1px;
  word-spacing: 2px;
  line-height: 1.6;
}

button {
  background-color: rgb(17, 166, 131);
  color: #fff;
  border-radius: 6px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
  padding: 16px 32px;
  border: none;
  font-size: 18px;
  letter-spacing: 1px;
  margin: auto;
  display: flex;
  position: relative;
  margin-top: -80px;
  cursor: pointer;
}

button:focus,
button:hover {
  background-color: rgb(42, 201 164);
  box-shadow: 0 5px 30px 0 rgba(0, 0, 0, 0.1);
}

.counter-container {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding: 0 10px 0 10px;
}

/* =========================
   FIXED Mobile Responsive Design
   ========================= */

/* Tablets & small laptops */
@media (max-width: 992px) {
  h2 {
    font-size: 38px;
  }

  p {
    font-size: 17px;
    margin-bottom: 60px;
  }

  textarea {
    min-height: 260px;
  }
}

/* Tablets & large phones */
@media (max-width: 768px) {
  body {
    padding: 20px;
    align-items: flex-start;
  }

  .container {
    margin-top: 30px;
    padding: 20px;
  }

  h2 {
    font-size: 32px;
  }

  p {
    font-size: 16px;
    margin-bottom: 40px;
  }

  textarea {
    min-height: 220px;
    padding: 16px;
    font-size: 16px;
  }

  button {
    margin-top: 24px; /* ✅ no negative margin */
    padding: 14px 26px;
    font-size: 16px;
  }

  .counter-container {
    margin-top: 20px;
    font-size: 14px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  h2 {
    font-size: 24px;
  }

  p {
    font-size: 14.5px;
    margin-bottom: 30px;
  }

  textarea {
    min-height: 180px;
    font-size: 15px;
    border-radius: 12px;
  }

  button {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    font-size: 15px;
    justify-content: center;
  }

  .counter-container {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
  }
}
