.contact-section {
  width: 90%;
  padding: 40px 0;
  margin-top: 19rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header h3 {
  font-size: clamp(2.1rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  background-image: linear-gradient(rgb(133, 133, 133), rgb(255, 255, 255));
  color: transparent;
  background-clip: text;
}

.contact-header p {
  max-width: 600px;
  line-height: 1.6;
  color: var(--c-light_gray);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 40% 60%;
  border-radius: 12px;
  background-color: var(--c-mate);
  background-image: -webkit-linear-gradient(
      top,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.35)
    ),
    url("/images/bg02.webp");
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.info-card {
  padding: 30px;
}

.info_wrap {
  padding-left: 30px;
}

.divider {
  padding-left: 0;
  padding-right: 0;
  border-right: 1px solid var(--c-line);
}

.info-card h3 {
  font-size: 1.3rem;
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--c-white);
}

.contact-item {
  margin-bottom: 3rem;
}

.contact-item p {
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: var(--c-white);
}

.contact-item a {
  color: var(--c-light_gray);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--c-white);
}

.social-link {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
}

.social-link p {
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: var(--c-white);
}

.social-link a {
  display: inline-block;
  margin-right: 15px;
  color: var(--c-light_gray);
  text-decoration: none;
  padding: 8px 15px;
  font-weight: 300;
  background-color: var(--c-primary);
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5);
  background-image: -webkit-linear-gradient(
      top,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.35)
    ),
    url(/images/bg02.webp);
  box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.35),
    inset 0px 2px 1px 0px rgba(255, 255, 255, 0.35);
  transition: 0.3s;
  white-space: nowrap;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.social-link a:hover {
  color: var(--c-white);
  background-color: var(--c-lightblue);
}

.form-group {
  margin-bottom: 22px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: #2d2d2d;
  border-radius: 8px;
  color: var(--c-light_gray);
  font-size: 16px;
  transition: border-color 0.3s;
  border: 1px solid #414141;
}

.form-control:focus {
  outline: none;
  color: var(--c-white);
}

textarea.form-control {
  min-height: 120px;
  resize: none;
}

.spinner {
  width: 20px;
  height: 20px;
  display: none;
  position: absolute;
  top: 27%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.info-card-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.contact-div {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-btn {
  width: fit-content;
  padding: 12px 14px;
  margin-top: 13px;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  position: relative;
  border-radius: 8px;
  color: var(--c-light_gray);
  background-color: var(--c-primary);
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5);
  background-image: -webkit-linear-gradient(
      top,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.35)
    ),
    url(/images/bg02.webp);
  box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.35),
    inset 0px 2px 1px 0px rgba(255, 255, 255, 0.35);
  transition: 0.3s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.message-btn:hover {
  color: var(--c-white);
  background-color: var(--c-lightblue);
}

.message-btn.loading {
  pointer-events: none;
}

.message-btn.loading #btnText {
  visibility: hidden;
}

.message-btn.loading #loadingSpinner {
  display: block;
}

.span-div {
  width: 100%;
  height: 2px;
  margin-top: 2px;
  margin-left: 9px;
}

.error-message {
  font-size: 0.8rem;
  text-align: left;
  color: hsl(0, 100%, 65%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.error-message.show {
  opacity: 1;
}

.success-message {
  width: 100%;
  opacity: 0;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 1rem;
  color: var(--c-secondary);
  transform: translateY(-10px);
  transition: opacity 0.1s ease, transform 0.1s ease;
}

.success-message.show {
  opacity: 1;
  transform: translateY(0);
}

.success-message.hide {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 1020px) {
  .contact-section {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-section {
    margin-top: 4rem;
  }

  .divider {
    border-right: 0;
  }
}

@media (max-width: 768px) {
  .info-card h3 {
    font-size: 1.1rem;
  }

  .contact-item p {
    font-size: 15px;
  }

  .message-btn,
  .social-link a {
    font-size: 15px;
  }
}

@media (max-width: 490px) {
  .contact-section {
    margin-top: 0;
  }

  .info-card {
    padding: 20px;
  }

  .info_wrap {
    padding-left: 0;
  }
}
