/* 课程/招生预约表单共用 */

.course-booking-form,
.site-booking-form {
  margin: 0;
}

.course-field {
  display: block;
  margin-bottom: 14px;
}

.booking-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.booking-form-row .course-field {
  margin-bottom: 0;
}

.course-field-label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}

.course-field-label em {
  color: #8B1C31;
  font-style: normal;
}

.course-field select,
.course-field input,
.course-field textarea {
  width: 100%;
  font-size: 13px;
  font-family: inherit;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  color: #333;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.course-field select:focus,
.course-field input:focus,
.course-field textarea:focus {
  outline: none;
  border-color: #8B1C31;
  background: #fff;
}

.course-field textarea {
  resize: vertical;
  min-height: 88px;
}

.course-booking-submit {
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: #8B1C31;
  border: none;
  cursor: pointer;
  transition: background 0.25s;
}

.course-booking-submit:hover {
  background: #731525;
}

.course-booking-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.course-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.course-booking-msg {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 2px;
}

.course-booking-msg.is-error {
  color: #a94442;
  background: #fdf2f2;
  border: 1px solid #f5c6cb;
}

.course-booking-msg.is-success {
  color: #2f6b2f;
  background: #f2faf2;
  border: 1px solid #c8e6c9;
}

.course-field-captcha .course-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.course-captcha-row input {
  flex: 1;
  min-width: 0;
}

.course-captcha-row img {
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  background: #fff;
}

@media (max-width: 600px) {
  .booking-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .booking-form-row .course-field {
    margin-bottom: 14px;
  }
}
