.contact-card {
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  /* background: linear-gradient(rgba(10, 12, 30, 0.95), rgba(10, 12, 30, 0.95)),
    url("assets/wave-lines.svg"); */
  background: url("../assets/images/service/contactCardBg.png") center/cover
    no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  padding: 40px;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}

.contact-text {
  flex: 1;
  min-width: 250px;
  text-align: top;
}

.contact-text h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.contact-text p {
  font-size: 0.95rem;
  color: #d0d3e0;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  font-size: 0.95rem;
  outline: none;
}

.contact-form textarea {
  min-height: 100px;
  resize: none;
}

.contact-form button {
  background-color: #242b7c;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #3a49c4;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1rem 2rem;
  }

  .contact-form {
    min-width: 100px;
    width: 100%;
  }
}

/* ================= contact form state on submission ============  */

#submit-btn {
  position: relative;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

#submit-btn.loading .spinner {
  display: inline-block;
}

#submit-btn.loading .btn-text {
  opacity: 0.8;
}

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