* {
  margin: 0;
  padding: 0;
}
.input,
.title {
  font-weight: 500;
}
.btn,
.title {
  line-height: 1;
}
.input-container span:before,
.square {
  left: 50%;
}
.containers,
.form,
.map-section,
form {
  overflow: hidden;
}
.contact-hero-container {
  position: relative;
  width: 100%;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  z-index: 0;
}
.contact-bg-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #2a0fd9, #282e68, #1e3c72, #2a5298);
  background-size: 400% 400%;
  animation: 8s infinite bgGradientMove;
  z-index: -1;
}
@keyframes bgGradientMove {
  0%,
  100% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.contact-floating-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.contact-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: linear infinite floatParticles;
}
@keyframes floatParticles {
  from {
    transform: translateY(100vh);
  }
  to {
    transform: translateY(-10vh);
  }
}
.contact-content {
  position: relative;
  z-index: 1;
  animation: 2s ease-in-out fadeInEffect;
}
@keyframes fadeInEffect {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-button {
  padding: 12px 24px;
  font-size: 1rem;
  background: #fff;
  color: #ff4b2b;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
.contact-button:hover {
  background: #ff4b2b;
  color: #fff;
  transform: scale(1.1);
}

.containers {
  z-index: 0;
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 2rem;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form {
  width: 100%;
  max-width: 820px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.contact-form {
  background-color: navy;
  position: relative;
}
.circle {
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 20%, navy);
  position: absolute;
}
.contact-info,
.input-container,
form {
  position: relative;
}
.circle.one {
  width: 130px;
  height: 130px;
  top: 130px;
  right: -40px;
}
.circle.two {
  width: 80px;
  height: 80px;
  top: 10px;
  right: 30px;
}
.contact-form:before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background-color: navy;
  transform: rotate(45deg);
  top: 50px;
  left: -13px;
}
form {
  padding: 2.3rem 2.2rem;
  z-index: 10;
}
.title {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}
.btn,
.information,
.input {
  font-size: 0.95rem;
}
.input-container {
  margin: 1rem 0;
}
.input {
  width: 100%;
  outline: 0;
  border: 2px solid #fafafa;
  background: 0 0;
  padding: 0.6rem 1.2rem;
  color: #fff;
  letter-spacing: 0.5px;
  border-radius: 25px;
  transition: 0.3s;
}
textarea.input {
  padding: 0.8rem 1.2rem;
  min-height: 150px;
  border-radius: 22px;
  resize: none;
  overflow-y: auto;
}
.input-container label,
.input-container span {
  padding: 0 0.4rem;
  pointer-events: none;
  position: absolute;
}
.input-container label {
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #fafafa;
  font-size: 0.9rem;
  font-weight: 400;
  z-index: 1000;
  transition: 0.5s;
}
.input-container.textarea label {
  top: 1rem;
  transform: translateY(0);
}
.btn {
  padding: 0.6rem 1.3rem;
  background-color: #fff;
  border: 2px solid #fafafa;
  color: navy;
  border-radius: 25px;
  outline: 0;
  cursor: pointer;
  transition: 0.3s;
  margin: 0;
}
.btn:hover {
  background-color: transparent;
  color: #fff;
}
.input-container span {
  top: 0;
  left: 25px;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: transparent;
  z-index: 500;
}
.social-media p,
.text {
  color: #333;
}
.input-container span:after,
.input-container span:before {
  content: "";
  position: absolute;
  width: 10%;
  opacity: 0;
  transition: 0.3s;
  height: 5px;
  background-color: navy;
  top: 50%;
  transform: translateY(-50%);
}
.input-container span:after {
  right: 50%;
}
.input-container.focus label {
  top: 0;
  transform: translateY(-50%);
  left: 25px;
  font-size: 0.8rem;
}
.input-container.focus span:after,
.input-container.focus span:before {
  width: 50%;
  opacity: 1;
}
.contact-info {
  padding: 2.3rem 2.2rem;
}
.contact-info .title {
  color: navy;
}
.text {
  margin: 1.5rem 0 2rem;
}
.information {
  display: flex;
  color: #555;
  margin: 0.7rem 0;
  align-items: center;
}
.icon {
  width: 28px;
  margin-right: 0.7rem;
}
.social-media {
  padding: 2rem 0 0;
}
.social-icons {
  display: flex;
  margin-top: 0.5rem;
}
.social-icons a {
  width: 35px;
  height: 35px;
  border-radius: 5px;
  background: linear-gradient(45deg, navy, navy);
  color: #fff;
  text-align: center;
  line-height: 35px;
  margin-right: 0.5rem;
  transition: 0.3s;
}
.social-icons a:hover {
  transform: scale(1.05);
}
.contact-info:before {
  content: "";
  position: absolute;
  width: 110px;
  height: 100px;
  border: 22px solid navy;
  border-radius: 50%;
  bottom: -77px;
  right: 50px;
  opacity: 0.3;
}
.big-circle,
.big-circle:after {
  border-radius: 50%;
  position: absolute;
}
.big-circle {
  width: 500px;
  height: 500px;
  background: linear-gradient(to bottom, navy, navy);
  bottom: 40%;
  right: 45%;
  transform: translate(-40%, 38%);
}
.big-circle:after {
  content: "";
  width: 360px;
  height: 360px;
  background-color: #fafafa;
  top: calc(50% - 180px);
  left: calc(50% - 180px);
}
.square {
  position: absolute;
  height: 400px;
  top: 50%;
  transform: translate(181%, 11%);
  opacity: 0.2;
}
@media (max-width: 850px) {
  .form {
    grid-template-columns: 1fr;
  }
  .contact-info:before {
    bottom: initial;
    top: -75px;
    right: 65px;
    transform: scale(0.95);
  }
  .contact-form:before {
    top: -13px;
    left: initial;
    right: 70px;
  }
  .square {
    transform: translate(140%, 43%);
    height: 350px;
  }
  .big-circle {
    bottom: 75%;
    transform: scale(0.9) translate(-40%, 30%);
    right: 50%;
  }
  .text {
    margin: 1rem 0 1.5rem;
  }
  .social-media {
    padding: 1.5rem 0 0;
  }
}
@media (max-width: 480px) {
  .input-container.focus {
    padding: 1.5rem;
  }
  .big-circle,
  .contact-info:before,
  .square {
    display: none;
  }
  .contact-info,
  form {
    padding: 1.7rem 1.6rem;
  }
  .information,
  .social-media p,
  .text {
    font-size: 0.8rem;
  }
  .title {
    font-size: 1.15rem;
  }
  .social-icons a {
    width: 30px;
    height: 30px;
    line-height: 30px;
  }
  .icon {
    width: 23px;
  }
  .btn,
  .input {
    padding: 0.45rem 1.2rem;
  }
}
.map-section {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
  height: 400px;
}
.map-section:hover {
  transform: scale(1.02);
}
.map-section iframe {
  width: 100%;
  height: 500px;
  border: none;
  border-radius: 12px;
}
