:root {
  --color-dark-blue: #233871;
  --color-light-blue: #4f608d;
  --color-gray-blue: #4f608d;
  --color-sky-blur: #48ace0;
  --color-purple: #6248b0;
  --color-orange: #be6c3e;
  --color-footer: #c0d5e9;
  --text-size-h2: clamp(0.9rem, 2vw + 1rem, 5rem);
  --text-size-p: clamp(10px, 16px + 1vw, 25px);
  --text-size-h1: clamp(0.4rem, 2vw + 8vw, 4rem);
  --text-size-input: clamp(10px, 12px + 0.5vw, 20px);
}

@import url(https://necolas.github.io/normalize.css/);
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Display:wght@300;400;500;600;700;800&display=swap");
@import url("https://necolas.github.io/normalize.css/");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Display:wght@300;400;500;600;700;800&family=Noto+Sans:wght@100;200;300;400;500;600;700;800&display=swap");
/* arabic font */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700;800&display=swap");

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
  outline: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans", sans-serif;
}
.contact-section {
  width: 100%;
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-repeat: no-repeat;
  background-size: cover;

  background-image: linear-gradient(
      90deg,
      rgba(2, 0, 36, 0.5739028887922357) 0%,
      rgba(9, 9, 121, 0.4394491072796306) 35%,
      rgba(0, 212, 255, 0.3806255778678659) 100%
    ),
    url(../img/contact.jpg);
  animation: transitionIn 0.75s;
  position: relative;
}
.contact-ctn {
  display: flex;
  height: 60vh;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 90%;
  flex-direction: column;
}

.ctn-title {
  font-size: var(--text-size-h1);
  text-align: center;
  color: white;
  width: 100%;
  margin-bottom: 0;
  margin: 10 20px;
}
.ctn-subtitle {
  color: #ffffffad;
  text-align: center;
  font-size: clamp(5px, 24px +1vw, 40px);
  font-style: normal;
  text-align: center;
  padding-top: 20px;
  font-weight: 600;
}

.contact {
  width: 100%;
  min-height: 400px;
  margin-top: auto;
  bottom: -300px;
  position: absolute;

  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  margin-left: 10px;
  margin-right: 10px;
}
.card {
  min-width: 400px;
  height: 300px;
  background-color: white;
  border-radius: 25px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.contactUs-section {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content {
  width: 80%;
  padding: 20px 60px 40px 40px;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content .left-side {
  width: 25%;
  height: 100%;
  position: relative;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.content .left-side::before {
  content: "";
  position: absolute;
  height: 70%;
  width: 2px;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #afafb6;
}

.left-side .details .text-one,
.left-side .details .text-two {
  font-size: 14px;
  color: rgba(128, 128, 128, 0.463);
}
.content .left-side .details {
  margin: 14px;
  text-align: center;
}

.content .left-side .details i {
  font-size: 30px;
  color: var(--color-dark-blue);
  margin-bottom: 10px;
}

.content .left-side .details .topic {
  font-size: 18px;
  font-weight: 500;
}
.content .right-side {
  width: 75%;
  margin-left: 90px;
}

.content .right-side .topic-text {
  font-size: 23px;
  font-weight: 600;
  color: var(--color-dark-blue);
}

.right-side .input-box {
  height: 50px;
  width: 100%;
  margin: 15px 0;
}
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
}
.right-side .input-box input,
.right-side .input-box textarea {
  height: 100%;
  width: 100%;
  border: none;
  border-radius: 6px;
  background-color: #f0f1f8;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 15px;
  resize: none;
  margin-top: 5px;
  font-size: var(--text-size-input);
  color: var(--color-gray-blue);
}

.liner-container .input-box .error,
.right-side .input-box .error {
  border: 1.3px solid rgb(240, 19, 19);
  background-color: #ffadbe38;
}

.input-box .label {
  font-weight: 600;
  color: #233871;

  padding-bottom: 10px;
}

.right-side .message {
  min-height: 100px;
  margin-top: 20px;
}
form .envoyerBtn {
  color: white;
  font-size: 18px;
  outline: none;
  cursor: pointer;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  background-color: var(--color-dark-blue);
  transition: all 0.3s ease;
  margin-top: 25px;
}

.envoyerBtn:hover {
  background-color: var(--color-light-blue);
}

.error-text {
  color: #ff0033;
  margin: 0 5px;
  display: none;
  font-size: 12px;
  padding-top: 5px;
}

.input-box.error .error-text {
  display: block;
}

.liner-container {
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 10px;
}

.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  animation: rotate 1s linear infinite;
  display: none;
}
.loader::before,
.loader::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 5px solid #fff;
  animation: prixClipFix 2s linear infinite;
}
.loader::after {
  inset: 8px;
  transform: rotate3d(90, 90, 0, 180deg);
  border-color: var(--color-dark-blue);
}

@media (max-width: 950px) {
  .contactUs-section .content {
    width: 90%;
    padding: 30px 35px 40px 35px;
  }
}

@media (max-width: 820px) {
  .contactUs-section {
    margin: 40px 0;

    display: flex;
    align-items: center;
    justify-content: center;
  }
  .contactUs-section .content {
    flex-direction: column-reverse;

    padding: 20px;
  }
  .content .left-side {
    width: 100%;
    flex-direction: row;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .content .right-side {
    width: 100%;
    margin-left: 0px;
    padding: 0px;
  }

  .content .left-side::before {
    display: none;
  }
}

@media (max-width: 496px) {
  .liner-container {
    flex-direction: column;
  }
}
@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes prixClipFix {
  0% {
    clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
  }
  50% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
  }
  75%,
  100% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
  }
}
