:root {
  /* Color system */
  --clr-primary: #2563eb;          /* blue‑600 */
  --clr-primary-dark: #1e4dd8;     /* blue‑700 */
  --clr-bg: #f6f9ff;               /* very light blue */
  --clr-text: #1f2937;             /* gray‑800 */

  /* Layout helpers */
  --radius: 0.75rem;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/*
 * Contact Page Styles
 * -------------------------------------------------------------------------- */

/* Body background for contact page */
.body-contact {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.6)), url('../images/top_image/image1000.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

/* ---------- Form container ---------- */
#contactForm {
  max-width: 640px;
  height: auto;
  padding: clamp(1.5rem, 2vw + 1rem, 2.5rem);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin: 100px auto 150px;
}

/* ---------- Form items ---------- */
#contactForm .form-item {
  margin-block: 1.25rem;
}

#contactForm label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--clr-text);
}

/* Shared input styles */
#contactForm input,
#contactForm textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db; /* gray‑300 */
  border-radius: 0.5rem;
  background: #f9fafb;       /* gray‑50 */
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#contactForm input:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.3);
  background: #fff;
}

#contactForm textarea {
  min-height: 8rem;
  resize: vertical;
}

/* ---------- Submit button ---------- */
#contactForm .form-submit {
  margin-top: 2rem;
  text-align: center;
  max-width: 200px;
  margin: auto;
}

#contactForm .form-submit input {
  cursor: pointer;
  user-select: none;
  border: none;
  padding: 0.9rem 3rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  border-radius: 2rem;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

#contactForm .form-submit input:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.25);
}

#contactForm .form-submit input:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ---------- Helper text / error (optional) ---------- */
#contactForm .input-error {
  color: #dc2626; /* red-600 */
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  #contactForm {
    padding: 1.25rem;
    margin: 100px 5rem 150px;
  }

  /* On mobile, remove the background image to reduce load times */
  .body-contact {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.6));
  }
}
