/* === Contact Form Card === */

.contact-card {
  display: grid;
  grid-template-columns: 40% 60%;
  max-width: 1100px;
  margin: 3rem auto;
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at top, #081a32, #081a32);
  box-shadow: 0 10px 20px #cfcfcf;
  color: #fff;
}

/* Left image */
.contact-image {
  background-image: url("/img/ContactMe_2.jpg"); /* update path */
  background-size: cover;
  background-position: center;
}

/* Right side */
.contact-form {
  padding: 3rem;
}

.contact-form h2 {
  font-size: 2.2rem;
  margin-bottom: 0.25rem;
}

.contact-form .subtitle {
  font-size: 1rem;
  color: white;
  margin-bottom: 2rem;
}

/* Layout */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

label span {
  color: #ff4d4d;
}

/* Inputs */
input,
textarea {
  background: transparent;
  border: 2px solid #fff;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;;
}

/* Button */
.submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: #2563eb;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(30, 64, 175, 0.4);
}

/* Feedback Message */
.form-message {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 20px;
}

.form-message.success {
  color: #4ade80;
}

.form-message.error-message {
  color: #ff4d4d;
}

/* Error Inputs */
input.error,
textarea.error {
  border-color: #ff4d4d;
}

/* Wiggle Animation */
@keyframes wiggle {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.wiggle {
  animation: wiggle 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-image {
    height: 220px;
  }

  .row {
    grid-template-columns: 1fr;
  }
}
