.contact-form {
  width: 70%;
  text-align: center;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  position: relative;
}

.disabled-field {
  background-color: rgba(25, 20, 20, 0.8) !important;
  cursor: not-allowed !important;
  color: #a0a0a0 !important;
}

.contact-form-fade {
  width: 100% !important;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.contact-form-fade.animated {
  opacity: 1;
  transform: scale(1);
}

.contact-form-header {
  font-size: 6vw;
  color: white;
  text-align: center;
  display: block;
  flex-direction: row;
}

.contact-form-content {
  width: 100%;
  text-align: justify;
  margin-top: 2%;
  margin-bottom: 2%;
  color: white;
  font-size: 1vw;
  line-height: 1.5vw;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.contact-form-description {
  display: inline-block;
  text-align: center;
  width: 100%;
  color: white;
  font-size: 0.9vw;
}

.contact-form-decorative-bar {
  display: flex;
  justify-content: center;
  /* Center horizontally */
  width: 30%;
  overflow: hidden;
  /* Hide the overflowing content */
}

.contact-form-decorative-bar>.DecorativeBar {
  width: 300%;
  /* Expand the DecorativeBar to three times its size */
  margin-left: -100%;
  /* Shift it left by 100% of its own width */
}


.message-fail-box {
  border-left: 4px solid #f15bb5;
  box-shadow: 0 0 15px rgba(241, 91, 181, 0.4);
  animation: pulse-error 3s ease-in-out;
}

.contact-message-info {
  color: #e6e6fa;
  /* Light lavender text */
  font-size: 1.1rem;
  text-shadow: 0 0 5px rgba(230, 230, 250, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.message-fail-box .contact-message-info::before {
  content: "✕";
  color: #f15bb5;
  font-size: 1.4rem;
}

.email-sent-container {
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem auto;
  width: 80% !important;
  max-width: 500px;
  backdrop-filter: blur(10px);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  background: linear-gradient(to right, #222c58, #5e2d8b);
  color: #fff;
  animation: fadeIn 0.5s ease-in-out;
}

.email-sent-container h3 {
  margin-bottom: 0.5rem;
}

.email-sent-container p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  width: auto !important;
  text-align: center !important;
}

.send-another-button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: white;
  color: #232c59;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.send-another-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.sending-loader {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  margin: 1rem auto;
  width: 25%;
  min-width: 250px;
  padding: 1.25rem;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-left: 4px solid #8400c2c9;
  background: linear-gradient(to right,
      rgba(10, 15, 35, 0.8),
      rgba(40, 20, 65, 0.8));
  color: #e0f7ff;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}


.sending-loader-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sending-loader .spinner {
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-left-color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-success {
  0% {
    box-shadow: 0 0 0 rgba(155, 93, 229, 0.4);
  }

  50% {
    box-shadow: 0 0 20px rgba(155, 93, 229, 0.6);
  }

  100% {
    box-shadow: 0 0 0 rgba(155, 93, 229, 0.4);
  }
}


@keyframes pulse-error {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  10% {
    opacity: 1;
    transform: translateY(0);
  }

  90% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.contact-form-hint-span {
  width: 50%;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
  margin-top: 2%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 50vh;
  border: 1px solid white;
  color: white;
  font-size: 1.5vh;
  text-align: left;
  vertical-align: center;
  padding: 4%;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder {
  align-items: flex-start;
  background: linear-gradient(to right, #7e4eff, #ff4185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 2%;
  font-size: 2vh;
  width: fit-content;
}

.contact-form-button {
  margin-top: 5%;
  width: 100%;
  background: url('../assets/contact form button.png');
  background-size: cover;
  background-position: center;
  color: white;
  border: none;
  padding: 6% 15% 6% 15%;
  cursor: pointer;
}

.send-message-button {
  width: 100%;
  position: relative;
}


.contact-form textarea {
  width: 100%;
  margin-top: 2%;
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 50px;
  border: 1px solid white;
  color: white;
  font-size: 1.5vh;
  text-align: left;
  vertical-align: center;
  padding: 4%;
  resize: none;
  min-height: 100px;
  /* Minimum height of the textarea */
}



.contact-form textarea::placeholder {
  align-items: flex-start;
  background: linear-gradient(to right, #7e4eff, #ff4185);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 2%;
  font-size: 2vh;
  width: fit-content;
}

.contact-form textarea::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.5);
  /* Thumb color */
  border-radius: 10px;
  /* Thumb border radius */
  height: 30px;
}

.contact-form textarea::-webkit-scrollbar {
  width: 8px;
  /* Width of the scrollbar */
}

.contact-form textarea::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.2);
  /* Track color */
}


@media (max-width: 970px) {
  .contact-form {
    width: 90%;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
  }

  .contact-form-button {
    width: 100%;
    height: auto;
    background-size: contain;
    background-repeat: no-repeat;
  }

  .contact-form textarea {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: calc(10% + 20px);
    border: 1px solid white;
    color: white;
    text-align: left;
    vertical-align: center;
    padding: 5%;
    resize: none;
    min-height: 100px;
    /* Minimum height of the textarea */
  }
}

@media (max-width: 480px) {
  .email-sent-container {
    padding: 1.25rem 1rem;
  }

  .email-sent-container h3 {
    font-size: 1.25rem;
  }

  .email-sent-container p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .send-another-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
}