/**
 * YouHealIt Contact Form Styles
 * Place at: wp-content/themes/youhealit/css/contact-form.css
 * Scoped to .yhc-form-wrap to avoid conflicts
 */

.yhc-form-wrap {
  max-width: 680px;
  margin: 0 auto;
  font-family: inherit;
}

.yhc-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Two column layout for name + phone */
.yhc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .yhc-two-col {
    grid-template-columns: 1fr;
  }
}

.yhc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yhc-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.01em;
}

.yhc-required {
  color: #c0392b;
  margin-left: 2px;
}

.yhc-field input,
.yhc-field select,
.yhc-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.yhc-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.yhc-field input:focus,
.yhc-field select:focus,
.yhc-field textarea:focus {
  outline: none;
  border-color: #2d7dd2;
  box-shadow: 0 0 0 3px rgba(45, 125, 210, 0.12);
}

.yhc-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

/* Honeypot — invisible to real users */
.yhc-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

/* Submit button */
.yhc-submit-wrap {
  margin-top: 4px;
}

.yhc-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: #2d7dd2;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.1s ease;
  letter-spacing: 0.02em;
  min-width: 180px;
}

.yhc-submit:hover {
  background: #1a6abf;
}

.yhc-submit:active {
  transform: scale(0.98);
}

.yhc-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Error message */
.yhc-error-msg {
  background: #fdf0ef;
  border: 1.5px solid #e74c3c;
  border-radius: 6px;
  padding: 12px 16px;
  color: #c0392b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.emergency-contact {
  margin-left: 30pximportant;
}
