/* Container & heading */
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.contact h1 {
  font-family: "Playfair Display SC", serif;
  font-size: clamp(2.5rem, 5vw, 3rem);
  color: #3e4350;
  margin-bottom: 8px;
  text-align: center;
}

.contact .muted {
  color: #6b596b;
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* Grid layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

/* Honeypot anti-spam field */
.hp-field {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.95);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 12px;
  font-weight: 600;
  color: #424d57;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #e6d7e0;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
}

.btn {
  margin-top: 16px;
  padding: 12px 16px;
  border: none;
  background: #99bbfa;
  color: white;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: #99b8fa;
  transform: translateY(-2px);
}

/* Contact Info Panel */
.contact-info {
  background: rgba(245, 249, 255, 0.95);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info h3 {
  color: #3e4350;
  margin-bottom: 6px;
  font-family: "Playfair Display SC", serif;
  font-size: 1.6rem;
}

.contact-info p {
  margin: 0;
  color: #3d3d3d;
  font-size: 1rem;
  line-height: 1.4;
}

/* Consent box */
.consent-box {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f7f9fc;
  border: 1px solid #e3e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Checkbox row */
.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #3e4350;
}

.consent-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #99bbfa;
  cursor: pointer;
}

.consent-checkbox span {
  display: block;
}

/* Privacy link */
.consent-checkbox a {
  color: #5b82e5;
  text-decoration: underline;
}

.consent-checkbox a:hover {
  text-decoration: none;
}

/* reCAPTCHA note */
.recaptcha-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #777;
}

.recaptcha-note img {
  height: 20px;
  opacity: 0.85;
}

.contact-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
}



/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact h1,
  .contact .muted {
    text-align: center;
  }
}

/* Mobile refinements */
@media (max-width: 650px) {

  .container {
    margin: 24px auto;
    padding: 0 14px;
  }

  .contact-form,
  .contact-info {
    padding: 20px;
  }

  .contact-form label {
    font-size: 0.95rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
  }

  .btn {
    width: 100%;
    font-size: 1rem;
    padding: 14px;
  }

  /* Consent improvements on mobile */
  .consent-box {
    padding: 14px;
  }

  .consent-checkbox {
    font-size: 0.85rem;
    gap: 10px;
  }

  .consent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

  .recaptcha-note {
    font-size: 0.7rem;
    gap: 6px;
  }

  .recaptcha-note img {
    height: 18px;
  }

  .contact-img {
    height: 180px;
  }
}
