* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}
body {
  background-color: #eee;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7em;
  /* font-family: Georgia, 'Times New Roman', Times, serif; */
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-info {
  display: flex;
  margin: 5% 10% 5% 8%;
  /* justify-content: center; */
}

.box {
  padding: 10px;
  width: 400px;
  /* background: rgba(0, 0, 0, 0.6); */
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  flex: 2;
}

.box h2 {
  padding-top: 20px;
  color: rgb(0, 0, 0);
  text-align: center;
}
.box .inputBox {
  position: relative;
}
.box .inputBox input {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  letter-spacing: 1px;
  color: rgb(10, 10, 10);
  margin-bottom: 30px;
  border: none;
  border-bottom: 1px solid rgb(15, 15, 15);
  outline: none;
  background: transparent;
}
.box .inputBox label {
  position: absolute;
  top: 0;
  left: 0;
  letter-spacing: 1px;
  padding: 10px 0;
  font-size: 16px;
  color: rgb(12, 12, 12);
  pointer-events: none;
  transition: 0.5s;
}

.box .inputBox input:focus ~ label,
.box .inputBox input:valid ~ label {
  top: -18px;
  left: 0;
  color: #03a9f4;
  font-size: 12px;
}

.box input[type='submit'] {
  border: none;
  outline: none;
  /* color: rgb(10, 10, 10); */
  color: white;
  background: #03a9f4;
  padding: 10px 20px;
  margin: 10px 0px;
  cursor: pointer;
  border-radius: 5px;
  /* transition: font-weight 0.8s ease; */
}

textarea {
  border: none;
  border-bottom: 1px solid rgb(15, 15, 15);
  outline: none;
  background: transparent;
  width: 100%;
  margin-bottom: 15px;
}

.box input[type='submit']:hover {
  font-weight: bold;
}

.my-contact {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
  margin-left: 30px;
  border-radius: 10px;
}

i {
  margin-top: 20px;
  color: dodgerblue;
}

.my-contact p {
  margin: 8px 0;
}

.title {
  font-weight: 500;
}

@media (max-width: 650px) {
  .box {
    width: 100%;
  }

  .contact-info {
    flex-direction: column-reverse;
    align-items: center;
  }
  .box {
    width: 100%;
    margin: 10%;
    flex: 1;
  }
  .my-contact {
    width: 100%;
    margin-left: 0px;
  }
}
