@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

.contact {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.contact {
  width: 100%;
  background: #ffffff; /* White background */
  padding: 25px 40px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  border-radius: 8px;
}

.text {
  text-align: center;
  font-size: 41px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: #333333; /* Dark gray text */
  margin-bottom: 30px;
}

form {
  padding: 30px 0 0 0;
}

.form-row {
  display: flex;
  flex-direction: row;
  margin: 32px 0;
  width: 100%;
  gap: 20px;
}

.input-data {
  position: relative;
  width: 100%;
}

.input-data input,
.textarea textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  font-size: 17px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2); /* Soft gray border */
}

.input-data input:focus ~ label,
.textarea textarea:focus ~ label,
.input-data input:valid ~ label,
.textarea textarea:valid ~ label {
  transform: translateY(-20px);
  font-size: 14px;
  color: #555555; /* Medium gray for focus */
}

.textarea textarea {
  resize: none;
  padding-top: 10px;
}

.input-data label {
  position: absolute;
  pointer-events: none;
  bottom: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  color: #999999; /* Light gray for placeholder text */
}

.textarea label {
  width: 100%;
  bottom: 40px;
  background: #ffffff; /* Matches background */
}

.input-data .underline {
  position: absolute;
  bottom: 0;
  height: 2px;
  width: 100%;
}

.input-data .underline:before {
  position: absolute;
  content: "";
  height: 2px;
  width: 100%;
  background: #555555; /* Medium gray underline */
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.input-data input:focus ~ .underline:before,
.input-data input:valid ~ .underline:before,
.textarea textarea:focus ~ .underline:before,
.textarea textarea:valid ~ .underline:before {
  transform: scale(1);
}

.submit-btn .input-data {
  overflow: hidden;
  height: 45px !important;
  width: 25% !important;
}

.submit-btn .input-data .inner {
  height: 100%;
  width: 300%;
  position: absolute;
  left: -100%;
  background: #555555; /* Gray gradient background for button */
  transition: all 0.4s;
}

.submit-btn .input-data:hover .inner {
  left: 0;
}

.submit-btn .input-data input {
  background: none;
  border: none;
  color: #ffffff; /* White text on gray button */
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

/* Remove border for time input */
input[type="time"] {
  border: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.2); /* Match other inputs */
  font-size: 17px;
}

input[type="time"]:focus {
  outline: none; /* No outline on focus */
}

/* Consistent underline animation for time input */
input[type="time"]:focus ~ .underline:before,
input[type="time"]:valid ~ .underline:before {
  transform: scale(1);
}

/* Responsive Adjustments */
@media (max-width: 700px) {
  .text {
    font-size: 30px;
  }
  form {
    padding: 10px 0 0 0;
  }
  .form-row {
    display: block;
  }
  .input-data {
    margin: 35px 0 !important;
  }
  .submit-btn .input-data {
    width: 40% !important;
  }
}
