/* =====================
   CONTACT VIEW
   ===================== */

.contact-form-wrapper {
  width: 100%;
  max-width: 560px;
  padding: 0 15px;
}

.contact-form-title {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

.contact-fields {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

/* Force any <p> inside contact-fields to occupy a full row (matches Bootstrap .row > * { width: 100% }) */
.contact-fields > p {
  width: 100%;
  flex-basis: 100%;
}

/* Half-width input fields (Full Name, Email) */
.contact-field-half {
  width: 50%;
  padding: 0 12px;
  display: flex;
  flex-direction: column-reverse;
}

/* Full-width field (Message textarea) */
.contact-field-full {
  width: 100%;
  padding: 0 12px;
}

.contact-field-full .form-floating {
  display: flex;
  flex-direction: column-reverse;
}

/* Labels above inputs — larger size, correct spacing */
.contact-field-half .form-control + label,
.contact-field-full .form-floating .form-control + label {
  font-size: var(--menu-font-size);
  margin-top: 0;
  margin-bottom: 4px;
}

.contact-submit-wrapper {
  width: 60%;
  margin: 0 auto;
  padding: 0 12px;
}

@media (min-width: 1200px) { .contact-form-wrapper { max-width: 576px; } }
@media (min-width: 1400px) { .contact-form-wrapper { max-width: 666px; } }

@media (max-width: 991px) {
  .contact-form-wrapper {
    max-width: 100%;
  }

  .contact-field-half {
    width: 100%;
  }

  .contact-submit-wrapper {
    width: 83.333%;
  }
}

@media (max-width: 480px) {
  .contact-submit-wrapper {
    width: 100%;
  }
}
