﻿
.success-message {
  padding: 30px;
  text-align: center;
  background-color: #f0fdf4;
  border: 1px solid #10b981;
  border-radius: 8px;
}

  .success-message h2 {
    color: #047857;
    margin-bottom: 10px;
  }

  .success-message p {
    color: #065f46;
  }

.contact-wrapper {
  max-width: 560px;
  margin: 60px auto;
  padding: 0 20px;
  font-family: "Inter", system-ui, sans-serif;
}

h1 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 32px;
  color: #111827;
}

.form-field {
  margin-bottom: 24px;
  position: relative;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

.req {
  color: #ef4444;
  margin-left: 4px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  transition: border-color .2s, box-shadow .2s;
}

  .input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
    outline: none;
  }

  .input.error {
    border-color: #ef4444;
    background: #fff7f7;
  }

.error-msg {
  font-size: 13px;
  color: #ef4444;
  margin-top: 6px;
  display: block;
  min-height: 18px; /* keeps layout stable */
}

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--primary-color);
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}

  .btn-primary:hover {
    background: #2563eb;
  }

.contact-wrapper,
.contact-wrapper * {
  box-sizing: border-box;
}

#contactForm.submitting {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

  #contactForm.submitting .btn-primary {
    opacity: 0.6;
    cursor: not-allowed;
  }

@media(max-width:480px) {
  h1 {
    font-size: 26px
  }
}
