.ucf-wrap,
.ucf-wrap * {
  box-sizing: border-box;
}

.ucf-field {
  margin-bottom: 16px;
}

.ucf-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.ucf-input,
.ucf-textarea,
.ucf-select {
  display: block;
  width: 100%;
  max-width: 640px;
  padding: 8px 10px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  background: #fff;
  color: #2c3338;
  font-size: 14px;
  line-height: 1.5;
}

.ucf-input:focus,
.ucf-textarea:focus,
.ucf-select:focus {
  border-color: #2271b1;
  outline: 1px solid #2271b1;
  outline-offset: 0;
}

.ucf-textarea {
  min-height: 140px;
  resize: vertical;
}

.ucf-button {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #2271b1;
  border-radius: 4px;
  background: #2271b1;
  color: #fff;
  cursor: pointer;
}

.ucf-button:hover,
.ucf-button:focus {
  background: #135e96;
  border-color: #135e96;
}

.ucf-error {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #d63638;
  background: #fcf0f1;
  color: #1d2327;
}

.ucf-wrap .ucf-error ul {
  margin: 8px 0 8px 1.5em;
  list-style: disc;
}

.ucf-wrap .ucf-error p {
  margin: 0 0 8px;
}

.ucf-wrap .ucf-error p:last-child {
  margin-bottom: 0;
}

.ucf-wrap .ucf-notice {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #72aee6;
  background: #f0f6fc;
  color: #1d2327;
}

.ucf-wrap .ucf-notice ul {
  margin: 0 0 0 1.5em;
  list-style: disc;
}

.ucf-wrap .ucf-notice li {
  margin-bottom: 4px;
}

.ucf-wrap .ucf-notice li:last-child {
  margin-bottom: 0;
}

.ucf-success {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #00a32a;
  background: #edfaef;
  color: #1d2327;
}

.ucf-note {
  font-size: 0.9em;
}

.ucf-wrap .ucf-required {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.85em;
  font-weight: 600;
  color: #d63638;
}

.ucf-wrap .ucf-file-input {
  display: block;
  width: 100%;
  max-width: 640px;
  padding: 8px 0;
}

.ucf-wrap .ucf-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.6;
}

.ucf-wrap .ucf-checkbox-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
  cursor: pointer;
}

.ucf-wrap .ucf-checkbox-label input[type="checkbox"],
.ucf-wrap input.ucf-privacy-agree[type="checkbox"] {
  display: inline-block;
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0.35em 0 0 0;
  padding: 0;
  border: 1px solid #8c8f94;
  opacity: 1;
  visibility: visible;
  position: static;
  flex: 0 0 16px;
}

.ucf-wrap .ucf-button:disabled,
.ucf-wrap .ucf-button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.ucf-wrap .ucf-input,
.ucf-wrap .ucf-textarea,
.ucf-wrap .ucf-select {
  display: block;
  width: 100%;
  max-width: 640px;
}

.ucf-wrap .ucf-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.ucf-wrap .ucf-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.6;
  cursor: pointer;
}

.ucf-wrap .ucf-radio-label input[type="radio"] {
  display: inline-block;
  appearance: auto;
  -webkit-appearance: radio;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  opacity: 1;
  visibility: visible;
  position: static;
  flex: 0 0 16px;
}

.ucf-wrap .ucf-sub-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95em;
  font-weight: 600;
}

.ucf-wrap .ucf-visit-preferred-list {
  display: grid;
  gap: 12px;
}

.ucf-wrap .ucf-visit-preferred-item {
  max-width: 320px;
}

.ucf-wrap .ucf-datetime-input {
  max-width: 320px;
}
