/* ============================= */
/* Contact Page Layout */
/* ============================= */

.contact-wrap{
  max-width: 760px;
  margin: 0 auto;
  padding: 12px;
}

.contact-card{
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
}

.contact-header-img{
  display: block;
  width: 100%;
  height: auto;
}

/* ============================= */
/* Form Area */
/* ============================= */

.contact-form-area h1 {
  font-size: 22px;          /* reduce size */
  line-height: 1.3;         /* improve readability */
  max-width: 85%;         /* prevents edge-to-edge stretching */
  margin: 0 auto 20px auto; /* center + space below */
  padding: 0 10px;          /* small side breathing room */
  text-align: center;
}

.contact-form-area{
  background: #CCFFCC;
  padding: 24px 16px;
}

.contact-grid{
  display: grid;
  grid-template-columns: max-content min(360px, 70vw);
  gap: 14px 18px;
  align-items: center;

  width: fit-content;
  margin: 0 auto;           /* true visual centering */
}

.contact-grid label{
  text-align: right;
  white-space: nowrap;      /* keeps labels from wrapping oddly */
}

.contact-grid input,
.contact-grid textarea{
  width: 100%;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  background: #ffffff;
}

.contact-grid textarea{
  height: 180px;
  resize: vertical;
}

.contact-actions{
  margin-top: 18px;
  text-align: center;
}

.contact-actions button{
  padding: 10px 22px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #000;
  color: #fff;
  font-weight: bold;
}

.contact-actions button:hover{
  background: #333;
}

/* Honeypot */
.contact-hidden-field{
  position: absolute;
  left: -9999px;
}

/* ============================= */
/* Footer */
/* ============================= */

.contact-footer{
  text-align: center;
  padding: 14px 10px 18px;
  font-size: 13px;
  color: #666;
}

/* ============================= */
/* Responsive */
/* ============================= */

@media (max-width: 640px){
  .contact-grid{
    grid-template-columns: 1fr;
    width: 100%;
  }

  .contact-grid label{
    text-align: left;
  }
}