/* =====================================================
   WeCARE PT – Contact/Appointment Form (Adaptive / Responsive)
   Goals:
   - Never overflow viewport on mobile
   - Full-width inputs/buttons
   - Comfortable tap targets without being "too big"
   - Prevent iOS zoom + horizontal scroll
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }

.g-form {
  width: 100% !important;
  max-width: 100% !important;   /* mobile-first: never cap width */
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 12px;
  min-width: 0;
}

.g-form label, .g-label { width: 100% !important; min-width: 0; }

.g-label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.g-input,
.g-form input,
.g-form select,
.g-form textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block !important;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #d0d5dd;
  font-size: 16px;              /* prevents iOS zoom */
  line-height: 1.2;
  background: #fff;
}

.g-input:focus,
.g-form input:focus,
.g-form select:focus,
.g-form textarea:focus {
  outline: 2px solid rgba(17,17,17,.18);
  border-color: #111;
}

/* Force submit to look like a button even if theme resets */
.g-form button,
button.g-btn,
.g-btn {
  width: 100% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #111 !important;
  color: #fff !important;
  border: 2px solid #111 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  text-align: center !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.g-form button:hover,
.g-btn:hover {
  background: #000 !important;
  border-color: #000 !important;
}

.g-fineprint { font-size: 12px; color: #6b7280; margin: 0; }

/* Make iframes responsive (maps) without causing overflow */
iframe { max-width: 100% !important; width: 100% !important; }

/* Desktop polish: cap width ONLY on larger screens */
@media (min-width: 769px) {
  .g-form {
    max-width: 520px !important;
    margin: 0 auto !important;
  }
}

/* Small phones: slightly tighter spacing */
@media (max-width: 420px) {
  .g-form { gap: 10px; }
  .g-input,
  .g-form input,
  .g-form select,
  .g-form textarea { padding: 11px 11px; border-radius: 11px; }
  .g-form button, .g-btn { padding: 13px 14px !important; border-radius: 11px !important; }
}


/* Ensure anchor scroll positions below sticky header */
#appointment-form{scroll-margin-top:110px}
