.clinic-form-wrap {
  max-width: 580px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #d0e3f5;
  border-radius: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.clinic-form-wrap::before {
  content: "お問い合わせ";
  display: block;
  background: #185FA5;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .05em;
  padding: 24px 32px 20px;
}

.clinic-form-wrap .wpcf7 {
  padding: 0 24px !important;
}

.clinic-form-wrap .wpcf7-form {
  padding: 28px 0 !important;
  box-sizing: border-box !important;
}

.clinic-form-wrap .cf-group {
  margin-bottom: 20px;
}

.clinic-form-wrap .cf-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #185FA5;
  margin-bottom: 7px;
}

.clinic-form-wrap .cf-badge {
  display: inline-block;
  background: #E6F1FB;
  color: #185FA5;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 7px;
  border-radius: 4px;
}

.clinic-form-wrap input.wpcf7-text,
.clinic-form-wrap input.wpcf7-email,
.clinic-form-wrap input.wpcf7-tel {
  width: 100% !important;
  max-width: 100% !important;
  height: 42px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
  color: #1a1a2e !important;
  background: #f7fafd !important;
  border: 1.5px solid #B5D4F4 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.clinic-form-wrap input.wpcf7-text:focus,
.clinic-form-wrap input.wpcf7-email:focus,
.clinic-form-wrap input.wpcf7-tel:focus {
  border-color: #185FA5 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.clinic-form-wrap textarea.wpcf7-textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  color: #1a1a2e !important;
  background: #f7fafd !important;
  border: 1.5px solid #B5D4F4 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.clinic-form-wrap textarea.wpcf7-textarea:focus {
  border-color: #185FA5 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.clinic-form-wrap select.wpcf7-select {
  width: 100% !important;
  max-width: 100% !important;
  height: 42px !important;
  padding: 0 40px 0 14px !important;
  font-size: 14px !important;
  color: #1a1a2e !important;
  background: #f7fafd !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23378ADD' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  border: 1.5px solid #B5D4F4 !important;
  border-radius: 8px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.clinic-form-wrap select.wpcf7-select:focus {
  border-color: #185FA5 !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

.clinic-form-wrap .cf-radio-wrap .wpcf7-list-item label {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 14px !important;
  color: #1a1a2e !important;
  background: #f0f5fb !important;
  border: 1.5px solid #B5D4F4 !important;
  border-radius: 8px !important;
  padding: 8px 20px !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.clinic-form-wrap .cf-radio-wrap .wpcf7-list-item input[type="radio"] {
  accent-color: #185FA5 !important;
  margin: 0 !important;
}

.clinic-form-wrap .cf-radio-wrap .wpcf7-list-item:has(input:checked) label {
  background: #E6F1FB !important;
  border-color: #185FA5 !important;
  color: #185FA5 !important;
  font-weight: 500 !important;
}

.clinic-form-wrap .cf-divider {
  border: none;
  border-top: 1px solid #d0e3f5;
  margin: 4px 0 20px;
}

.clinic-form-wrap .cf-cond-block {
  background: #EAF2FB;
  border-left: 3px solid #378ADD;
  border-radius: 0 8px 8px 0;
  padding: 20px;
  margin-bottom: 20px;
}

.clinic-form-wrap .cf-cond-title {
  font-size: 12px;
  font-weight: 500;
  color: #185FA5;
  letter-spacing: .05em;
  margin-bottom: 14px;
}

.clinic-form-wrap .wpcf7-conditional {
  margin-top: 16px;
}

.clinic-form-wrap .cf-submit-wrap {
  margin-top: 24px;
  text-align: center;
}

.clinic-form-wrap .wpcf7-form input[type="submit"].btn.btn-primary {
  display: inline-block !important;
  width: auto !important;
  min-width: 200px !important;
  height: 52px !important;
  margin: 0 auto !important;
  background-color: #185FA5 !important;
  background: #185FA5 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: .1em !important;
  border: none !important;
  border-radius: 26px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  padding: 0 48px !important;
}

.clinic-form-wrap .wpcf7-form input[type="submit"].btn.btn-primary:hover {
  background-color: #0C447C !important;
  background: #0C447C !important;
}

.clinic-form-wrap .cf-note {
  font-size: 12px;
  color: #378ADD;
  text-align: center;
  margin-top: 12px;
}

.clinic-form-wrap .wpcf7-not-valid-tip {
  font-size: 12px !important;
  color: #A32D2D !important;
  margin-top: 4px;
  display: block;
}

.clinic-form-wrap .wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  text-align: center;
  border: none !important;
}