/* === CONTACT PAGE LAYOUT =================================== */

/* main wrapper */
.contact-main {
  width: 100%;
  max-width: 1000px;          /* comfortable on desktop */
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
}

/* page title */
.contact-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  color: #101013;
}

/* white card */
.contact-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  padding: 2.5rem 3rem;
}

/* form fields */
.field {
  margin-bottom: 1.8rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #101013;
}

.field input,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #d6d6d6;
  background: #fafafa;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #ffffff;
}

/* submit button */
.contact-submit {
  display: inline-block;
  background: var(--brand);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  margin-top: 0.5rem;
}

.contact-submit:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

/* === RESPONSIVE BEHAVIOUR ================================== */

@media (max-width: 768px) {
  .contact-main {
    padding: 2.5rem 1.25rem 3rem;
  }

  .contact-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .contact-main {
    /* FIX: Increased padding from 1rem to 1.5rem to guarantee beige space on small screens */
    padding: 2rem 1.5rem 2.5rem; 
  }

  .contact-title {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
  }

  .contact-card {
    /* FIX: Adjusted padding to 1rem to work well with the 1.5rem wrapper padding */
    padding: 1.5rem 1rem;
    border-radius: 14px;
  }

  .field input,
  .field textarea {
    font-size: 0.95rem;
  }
}