/* ============================================================
   MEDITECH GROUP — Form Pages (Online-Reporting / Online-Inquiry / Product-Registration)
   Brand: #98292b, Inter, white/clean minimal
   ============================================================ */

/* ============================================================
   FORM HERO — matching products.html pl-hero
   ============================================================ */
.fm-hero {
  background: linear-gradient(135deg, #1a2332 0%, #2a3654 40%, #1e2842 100%);
  position: relative;
  overflow: hidden;
  padding: 48px 0;
}
.fm-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(152,41,43,.06);
}
.fm-hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -40px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
}
.fm-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.fm-hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.55);
  margin-bottom: 12px;
}
.fm-hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.fm-hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,.7);
  max-width: 720px;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   FORM SECTION — main form container
   ============================================================ */
.fm-section {
  background: #fff;
  padding: 48px 0;
}
.fm-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section title with left accent --- */
.fm-sec-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 28px;
  padding-left: 16px;
  border-left: 3px solid var(--primary);
}
.fm-sec-title:first-child {
  margin-top: 0;
}

/* --- Intro / instruction block --- */
.fm-intro {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  padding: 20px 24px;
  background: #f8f9fb;
  border-radius: 8px;
  border: 1px solid #edf0f4;
}
.fm-intro p {
  margin: 0 0 8px;
}
.fm-intro p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   FORM FIELD ROW
   ============================================================ */
.fm-field {
  margin-bottom: 24px;
}
.fm-field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.fm-required {
  color: var(--primary);
  margin-left: 2px;
}

/* --- Text input --- */
.fm-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
}
.fm-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(152,41,43,.08);
}
.fm-input::placeholder {
  color: #b0b8c4;
}

/* --- Textarea --- */
.fm-textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  resize: vertical;
}
.fm-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(152,41,43,.08);
}
.fm-textarea::placeholder {
  color: #b0b8c4;
}

/* --- Radio group --- */
.fm-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.fm-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}
.fm-radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: border-color .2s;
  flex-shrink: 0;
}
.fm-radio input[type="radio"]:checked {
  border-color: var(--primary);
}
.fm-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* --- Select --- */
.fm-select {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  transition: border-color .2s, box-shadow .2s;
}
.fm-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(152,41,43,.08);
}

/* ============================================================
   CAPTCHA
   ============================================================ */
.fm-captcha {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.fm-captcha-img {
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  user-select: none;
}
.fm-captcha-input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.fm-captcha-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(152,41,43,.08);
}
.fm-captcha-input::placeholder {
  color: #b0b8c4;
}

/* ============================================================
   SUBMIT + FOOTER NOTE
   ============================================================ */
.fm-submit-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.fm-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.fm-submit-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(152,41,43,.3);
  transform: translateY(-1px);
}
.fm-submit-btn svg {
  width: 16px;
  height: 16px;
}
.fm-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.fm-note strong {
  color: var(--primary);
  font-weight: 500;
}

/* --- Divider between sections --- */
.fm-divider {
  border: none;
  border-top: 1px solid #edf0f4;
  margin: 36px 0;
}

/* --- Two-column field row --- */
.fm-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) {
  .fm-field-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .fm-hero {
    padding: 48px 0;
  }
  .fm-hero h1 {
    font-size: 32px;
  }
  .fm-hero-desc {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .fm-section {
    padding: 40px 0 60px;
  }
  .fm-hero {
    padding: 40px 0;
  }
  .fm-hero h1 {
    font-size: 28px;
  }
  .fm-radio-group {
    gap: 16px;
  }
  .fm-captcha {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .fm-hero h1 {
    font-size: 24px;
  }
  .fm-hero-desc {
    font-size: 14px;
  }
  .fm-sec-title {
    font-size: 16px;
  }
  .fm-submit-btn {
    width: 100%;
    justify-content: center;
  }
}
