main {
  height: 100vh;
}

.animation-section {
  flex: 1;
  background-image: url("../images/bookYourService/illustration.png");
  background-repeat: no-repeat;
  background-size: cover;
  margin-right: -8%;
}

.form-section {
  background-image: url("../images/bookYourService/Paint.png");
  background-repeat: no-repeat;
  background-size: cover;
  width: 60%;
}

.form-container {
  margin-left: 20%;
  margin-top: 80px;
  height: 680px;
  width: 536px;
}

.card-container {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  padding: 24px;
  background-color: #ffffff;
  box-shadow: 0px 0px 18px 0px #00000029;
  transition: transform 1s;
  transform-style: preserve-3d;
}

.content {
  position: absolute;
  height: 100%;
  width: 90%;
  backface-visibility: hidden;
}

.confirmation {
  transform: rotateY(180deg);
}

.form {
  gap: 32px;
}

.form-header h4 {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #6a99ff;
}

.form-header p {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: #4b5563;
}

form label {
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

form label span {
  color: #ff3b3b;
}

.input-group input,
select {
  border: 1px solid #e5e7eb;
  border-radius: 10px !important;
  padding: 12px;
  font-size: 16px;
}

.top-input-group {
  gap: 16px;
}

.input-group {
  margin: 10px 0px;
  flex-direction: column;
}

.phone-number-input-group .input-container {
  border: 1px solid #e5e7eb;
  border-radius: 10px !important;
  padding: 12px;
  margin-top: 4px;
  gap: 8px;
}

.phone-number-input-group .vertical-line {
  width: 1px;
  height: 16px;
  background-color: #d1d5db;
}

.phone-number-input-group p {
  color: #1f2937;
}

.phone-number-input-group input {
  border: none;
  padding: 0px;
}

label a {
  text-decoration: underline !important;
  color: #2469ff !important;
}

.submit-btn {
  width: 100%;
}

.submit-btn button {
  border: none;
  background-color: #011594;
  color: #ffffff;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  width: 100%;
  padding: 12px 20px;
}

.checkbox-input {
  gap: 5px;
}

.checkbox-input input {
  margin-top: 5px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.confirmation {
  gap: 32px;
  height: 100%;
}

.confirmation-text {
  gap: 2px;
}

.confirmation-text h6 {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: #111827;
}

.confirmation-text p {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #6b7280;
}

.visit-us-container {
  gap: 24px;
}

.visit-us-container .horizontal-line:first-child {
  width: 150px;
  background: linear-gradient(
    90deg,
    rgba(229, 231, 235, 0) 0.39%,
    #e5e7eb 100%
  );

  height: 1px;
}

.visit-us-container .horizontal-line:last-child {
  width: 150px;
  background: linear-gradient(
    90deg,
    #e5e7eb 0.39%,
    rgba(229, 231, 235, 0) 100%
  );
  height: 1px;
}

.visit-us-container > .d-flex:first-child {
  gap: 8px;
}

.visit-us-container > .d-flex:first-child p {
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0px;
  font-size: 14px;
  white-space: nowrap;
}

.visit-us-container > .d-flex:last-child {
  gap: 20px;
}

.visit-us-container > .d-flex:last-child p {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #111827;
  margin-top: 6px;
}

@media screen and (max-width: 1200px) {
  .form-container {
    margin-left: 10%;
  }
}

@media screen and (max-width: 1050px) {
  main {
    flex-direction: column;
    height: max-content !important;
    padding-bottom: 0px;
  }

  main > div:not(:first-child) {
    width: 100% !important;
    justify-content: center !important;
  }

  main .animation-section {
    min-height: 1000px;
    margin-right: 0px;
    margin-bottom: -10%;
  }

  .form-section {
    background-image: url("../images/bookYourService/paint-rotated.png");
    padding: 150px 0px 50px 0px;
  }

  .form-container {
    margin: 0px;
  }
}

@media screen and (max-height: 880px) {
  main {
    height: 850px;
  }
}

@media screen and (max-width: 767px) {
  main .animation-section {
    min-height: 800px;
  }
}

@media screen and (max-width: 560px) {
  .form-section {
    padding-right: 10px;
    padding-left: 10px;
  }

  .form-container {
    margin-right: 10px;
    margin-left: 10px;
    width: 100%;
  }

  .card-container {
    width: 100%;
  }
}

@media screen and (max-width: 500px) {
  main .animation-section {
    min-height: 400px;
    margin-bottom: -15%;
  }
  .top-input-group {
    flex-direction: column;
    gap: 0px;
  }

  .form-container {
    height: 777px;
  }

  .visit-us-container .horizontal-line {
    width: 20%;
  }
}

@media screen and (max-width: 405px) {
  main .animation-section {
    margin-bottom: -20%;
  }

  .form-container {
    height: 677px;
  }

  .card-container {
    padding: 16px;
  }

  .form {
    gap: 16px;
  }

  .form-header {
    gap: 4px;
  }

  .form-header h4 {
    font-size: 18px;
    margin-bottom: 0px;
  }

  .form-header p {
    font-size: 14px;
    line-height: 20px;
  }

  form label {
    font-size: 12px;
  }

  .input-group input,
  .input-group select,
  .phone-number-input-group p {
    font-size: 14px;
  }

  .confirmation-text h6 {
    font-size: 16px;
    line-height: 24px;
  }

  .confirmation-text p,
  .visit-us-container > .d-flex:first-child p,
  .visit-us-container > .d-flex:last-child p {
    font-size: 12px;
  }
}

@media screen and (max-width: 360px) {
  .form-container {
    height: 697px;
  }
}

@media screen and (max-width: 340px) {
  .form-container {
    height: 714px;
  }
}
