.section-contact {
  padding: 4.8rem;
  max-width: 120rem;
  margin: 0 auto;
  margin-top: 12rem;
  position: relative;
}

.contact-grid {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 100fr;
  background-color: rgb(245, 245, 245);
  border-radius: 1.8rem;
  box-shadow: 0 0 2.4rem rgba(0, 0, 0, 0.3);

  /* background: #f5f5f5; */
  /* background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 60%,
    rgba(255, 255, 255, 0) 100%
  ); */

  background-image: linear-gradient(
      90deg,
      rgb(215, 208, 200, 1) 0%,
      rgb(233, 230, 226, 0.9) 50%,
      rgb(255, 255, 255, 0.2) 100%
    ),
    url(../BackgroundPicturesResized/ContactUsImage.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* background-attachment: fixed; */
}

.client-heading {
  color: #333;
  font-size: 4.8rem;
  margin-bottom: 2.8rem;
}

.padding-class {
  padding: 3.2rem;
  z-index: 1;
  width: 80%;
  /* background: rgba(255, 255, 255, 0.1);  */
}

.contact-paragraph {
  margin-bottom: 2.4rem;
  font-size: 1.8rem;
  color: #666;
}

.contactForm span {
}

.placeholder-color {
  color: #666;
}

.input-name {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 1.2rem;
  color: #666;
}

.textarea-center {
  text-align: left;
  /* justify-self: center; */
}

#msgContent {
  resize: none;
}

.btn {
  background: none;
  border: 2px solid #333;
  padding: 1.6rem 3.2rem;
  background-color: #000000;
  color: #fff;
  border-radius: 0.8rem;
  font-size: 1.8rem;
  font-weight: 500;
  text-transform: uppercase;
  box-shadow: 0 0 8rem 1.6rem rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.btn:hover {
  /* background-color: #555; */
  /* border-color: #555; */
  transform: scale(1.03);
}

.contactme-background {
  /* background-image: url("../PicturesV2/dubai-s-stunning-skyline-wallpaper.jpg");
  background-position: center;
  background-size: cover;
  border-radius: 0 20px 20px 0; */
  /* background: rgba(0, 0, 0, 0.0000000001);
  transition: opacity 1s ease-in-out;
  opacity: 1; */
  /* position: absolute; */
  /* top: 0; */
  /* left: 0; */
  /* width: 100%; */
  /* height: 100%; */
  /* backdrop-filter: blur(10px); */
  background: rgba(255, 255, 255, 0.1);
  /* border-radius: 0 20px 20px 0; */
  z-index: 1;
  transition: opacity 1s ease-in-out;
  opacity: 1;
}

form {
  display: grid;
  grid-template-columns: 100fr;
  gap: 1.2rem;
}

form div:nth-child(3),
form div:last-child {
  grid-column: 1/-1;
}

textarea,
input {
  width: 100%;
  border: none;
  background: none;
  background-color: #fff;
  font-family: inherit;
  font-size: 1.8rem;
  border-radius: 10px;
  padding: 10px;
  color: #333;
  transition: all 0.3s;
}

textarea:hover,
input:hover {
  transform: scale(1.015);
}

input {
  /* border: 2px solid #333; */
  padding: 1.2rem;
}

input::placeholder {
  color: #999;
  font-family: inherit;
}

textarea::placeholder {
  color: #999;
  font-family: inherit;
}

/* *:focus {
  outline-offset: 0.1rem;
  outline: 3px solid rgba(133, 107, 70, 0.297);
} */

/* @keyframes focusAnimation {
  0% {
    outline-offset: 0;
    outline-color: rgba(133, 107, 70, 0);
  }
  100% {
    outline-offset: 0.1rem;
    outline-color: rgba(133, 107, 70, 0.297);
  }
}

*:focus {
  outline: 3px solid rgba(133, 107, 70, 0.297);
  animation: focusAnimation 0.3s ease-in-out forwards;
} */

.error-message {
  color: red;
  font-size: 1.4rem;
  display: block;
  margin-top: 0.5rem;
  visibility: hidden; /* Set default visibility to hidden */
}

.input-error {
  outline: 0.2rem solid red !important;
}

.alert {
  visibility: hidden;
  opacity: 0;
  color: green;
  font-size: 1.8rem;
  transition: opacity 0.5s ease-in-out;
}

.alert.show {
  visibility: visible;
  opacity: 1;
  animation: fadeIn 0.5s forwards;
}

.alert.hide {
  animation: fadeOut 0.5s forwards;
}

@media (max-width: 90em) {
  form {
    padding: 0;
  }
}

@media (max-width: 63em) {
  html {
    font-size: 50%;
  }

  form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 34em) {
  .section-contact {
    padding: 4.8rem 2.4rem;
  }
  .contact-grid {
    grid-template-columns: 100fr;
  }
  .contactme-background {
    background-position: bottom;
  }
}

/* Add this to your existing CSS */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Smooth Blur Effect */
/* .blurred {
  animation: blurIn 0.5s forwards;
}

.unblurred {
  animation: blurOut 0.5s forwards;
} */

/* Smooth Blur Effect */
.blurred {
  animation: blurIn 1s forwards;
}

.unblurred {
  animation: blurOut 1s forwards;
}

@keyframes blurIn {
  0% {
    filter: blur(0);
    backdrop-filter: blur(0);
  }
  100% {
    filter: blur(5px);
    backdrop-filter: blur(5px);
  }
}

@keyframes blurOut {
  0% {
    filter: blur(5px);
    backdrop-filter: blur(5px);
  }
  100% {
    filter: blur(0);
    backdrop-filter: blur(0);
  }
}

/* Smooth Animated Green Circle */
#success-animation {
  z-index: 100;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* border-radius: 50%; */
  opacity: 1;
  /* animation: fadeInOut 3s forwards; */
  display: none;
  width: 100%;
  /* padding: 2.4rem; */
  height: 100%;
}

/* tekst */

.checkmark-tekst {
  position: relative;
  z-index: 100;
  font-size: 4.8rem;
  color: #7ac142;
  font-weight: bold;
  opacity: 0;
  transform: translateY(-20px);
  /* animation: fade-in 0.7s ease forwards; */
  text-align: center;
  opacity: 0; /* Sakrij element na početku */
  animation: fade-in 0.7s ease-in-out 1 forwards,
    fade-out 0.7s ease-in-out 1 forwards;
  animation-delay: 0s, 3.2s; /* 3s kašnjenje za fade-in, 1s za fade-in + 3s kašnjenje = 4s za fade-out */
}

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/*  circle */

.wrapper-check {
  position: relative;
  z-index: 100;
  /* animation: fade-out 0.7s ease forwards; */
  opacity: 0; /* Sakrij element na početku */
  animation: fade-in 0.7s ease-in-out 1 forwards,
    fade-out 0.7s ease-in-out 1 forwards;
  animation-delay: 0s, 3.2s; /* 3s kašnjenje za fade-in, 1s za fade-in + 3s kašnjenje = 4s za fade-out */
}

/* Fade-in animacija */
@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-out animacija */
@keyframes fade-out {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-50px);
  }
}

/* @keyframes fade-out {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(50px);
  }
} */

.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #7ac142;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.checkmark {
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  margin: 2.4rem auto;
  box-shadow: inset 0px 0px 0px #7ac142;
  animation: fill 0.4s ease-in-out 0.4s forwards,
    scale 0.3s ease-in-out 0.9s both;
}
.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes scale {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}
@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 12rem #7ac142;
  }
}

.background-blur {
  /* background-color: red; */
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.background-postion {
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 550px) {
  .padding-class {
    width: 85%;
  }

  /* .contact-grid {
    background-image: linear-gradient(
      90deg,
      rgb(215, 208, 200, 1) 0%,
      rgb(233, 230, 226, 0.7) 60%,
      rgb(255, 255, 255, 0.3) 100%
    );
  } */
}

@media (max-width: 400px) {
  .padding-class {
    width: 100%;
  }

  /* .contact-grid {
    background-image: linear-gradient(
        90deg,
        rgb(215, 208, 200, 1) 0%,
        rgb(233, 230, 226, 0.7) 60%,
        rgb(255, 255, 255, 0.2) 100%
      ),
      url(./gijs-coolen-XaWUCdAdP6E-unsplash.jpg);
  } */
}
