* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 10px;
}

.contact-wrap {
    margin: 200px auto;
}

.contact-form {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: auto;
  height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.form-slider {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease-in-out;
  position: absolute;
}


.slide {
  width: 100%;
  padding: 40px;
  height: 500px;
  flex-shrink: 0;
  box-sizing: border-box;
  min-width: 0;
}

.form-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #009ade;
}

.input-box {
  margin-bottom: 20px;
}

.select-box {
  margin-bottom: 20px;
}

.input, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 10px;
  font-size: 16px;
  color: #333;
  transition: all 0.2s ease-in-out;
}

.input:focus, select:focus {
    border-color: #009ade;
    outline: none;
}

textarea.input {
  resize: none;
  min-height: 100px;
}

.sbtn {
  display: block;
  margin: 30px auto 0 auto;
  width: 40%;
  padding: 10px;
  background-color: #009ade;
  border: none;
  color: white;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.sbtn:hover {
  background-color: #0075b8;
}

.success-message {
  background-color: #f9f9f9;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.success-message h2 {
  font-size: 28px;
  color: #009ade;
}

.success-message p {
  font-size: 16px;
  color: #555;
  margin: 20px 0;
}

.back-btn {
  padding: 10px 20px;
  background-color: #009ade;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  align-self: center;
}

.back-btn:hover {
  background-color: #0075b8;
}

@media screen and (max-width: 768px) {
  .contact-form {
    width: 95%;
  }

  .slide {
    padding: 20px;
  }

  .sbtn {
    width: 100%;
    font-size: 14px;
    padding: 10px;
    border-radius: 20px;
  }

  .form-title {
    font-size: 22px;
    text-align: center;
  }

  .success-message h2 {
    font-size: 24px;
  }

  .success-message p {
    font-size: 16px;
  }

  .back-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}